Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot open embedded pdf from pdf reader #10

Open
mbertucci47 opened this issue Aug 13, 2024 · 2 comments
Open

cannot open embedded pdf from pdf reader #10

mbertucci47 opened this issue Aug 13, 2024 · 2 comments

Comments

@mbertucci47
Copy link
Contributor

(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
Copy link
Contributor

collections are imho quite confusing ...

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

image

@mbertucci47
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants