Skip to content

Commit

Permalink
add embedfile compat (#667)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbertucci47 authored Aug 23, 2024
1 parent 77e65ff commit 61fdb01
Show file tree
Hide file tree
Showing 3 changed files with 86 additions and 4 deletions.
7 changes: 3 additions & 4 deletions _data/tagging-status.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2818,13 +2818,12 @@

- name: embedfile
type: package
status: unknown
status: compatible
included-in:
priority: 9
issues:
tests: false
tasks: needs tests
updated: 2024-07-17
tests: true
updated: 2024-08-23

- name: embrac
type: package
Expand Down
19 changes: 19 additions & 0 deletions tagging-status/testfiles/embedfile/embedfile-01.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
\DocumentMetadata
{
lang=en-US,
pdfversion=2.0,
pdfstandard=ua-2,
testphase={phase-III,math,title,table,firstaid}
}
\begin{filecontents}{test.txt}
a test file
\end{filecontents}
\documentclass{article}
\usepackage{embedfile}

\title{embedfile tagging test}

\embedfile{test.txt}
\begin{document}
text
\end{document}
64 changes: 64 additions & 0 deletions tagging-status/testfiles/embedfile/embedfile-02.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
\DocumentMetadata
{
lang=en-US,
pdfversion=2.0,
pdfstandard=ua-2,
testphase={phase-III,math,title,table,firstaid}
}
\begin{filecontents}{test.txt}
a test file
\end{filecontents}
\documentclass{article}
\usepackage{embedfile}
\embedfilesetup{
view=tile,
initialfile=example-image.pdf
}
\embedfilefield{file}{
type=file,
title={File name}
}
\embedfilefield{description}{
type=desc,
title={Description}
}
\embedfilefield{date}{
type=moddate,
title={Date}
}
\embedfilefield{size}{
type=size,
title={Size}
}
\embedfilefield{type}{
type=text,
title={Type},
visible=false
}
\embedfilesort{
type,
date=descending
}
\begin{document}
An example for embedded files as collection.
You need Acrobat Reader 8 or higher.

\embedfile[
desc={A test .txt file},
description.prefix={Test: },
type.value={TXT}
]{test.txt}

\embedfile[
desc={A test .pdf file},
description.prefix={Test: },
type.value={PDF}
]{example-image.pdf}

\embedfile[
desc={The source for this example},
description.prefix={Example: },
type.value={TEX}
]{\jobname.tex}

\end{document}

0 comments on commit 61fdb01

Please sign in to comment.