ho-tex / embedfile

embedfile package for LaTeX
LaTeX Project Public License v1.3c
4 stars 3 forks source link

cannot open embedded pdf from pdf reader #10

Open mbertucci47 opened 3 months ago

mbertucci47 commented 3 months ago

(This might be user error, please close if so.) With Acrobat, I cannot figure out how to view the main pdf in which files are embedded. Here's an example file embedfile-test.tex based on the one in the doc.

\begin{filecontents}{test.txt}
a test file
\end{filecontents}
\documentclass{article}
\usepackage{hyperref}
\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}

In Acrobat, the view looks like this:

embedfile_pic

I don't see any way to view embedfile-test.pdf itself. Changing view to details or hidden does not seem to change anything. The same thing happens with pdfxchange.

Is this an issue with the pdf readers, embedfile, or my understanding of what should happen here?

u-fischer commented 3 months ago

collections are imho quite confusing ...

I can see the main file if I activate "Deckblatt" here

image

mbertucci47 commented 3 months ago

Interesting. I had to select "Disable new Acrobat" from the top left dropdown menu to get the same view. This seems to be Acrobat's fault for being confusing so please close if there's nothing that can be done from embedfile's perspective