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

Any support for embedded files? #25

Open
jalevin opened this issue Sep 8, 2018 · 2 comments
Open

Any support for embedded files? #25

jalevin opened this issue Sep 8, 2018 · 2 comments
Labels
feature New feature

Comments

@jalevin
Copy link

jalevin commented Sep 8, 2018

Is there currently any support for embedded files?

From the looks of it, I would need to read in content streams not attached to a specific page.

Thanks

@gunnsth
Copy link
Contributor

gunnsth commented Sep 8, 2018

@jalevin We currently don't have a dedicated function for this like reader.GetEmbeddedFiles()..., BUT I believe it should be pretty easy to do with our current functionality.

Is your requirement to retrieve embedded files from PDF and/or embed files into PDF?

As per section 7.11.4 Embedded File Streams (p. 111 and 112 of PDF32000_2008) embedded file streams are referenced from the PDF document name dictionary. So should be able to find all the references there (not tied to a specific page). And further description of each embedded file stream is in Table 45 and table 46.

For implementation within UniDoc, I would suggest creating a model.PdfEmbeddedFile struct to contain the dictionary and methods to load and write it out.

@jalevin
Copy link
Author

jalevin commented Sep 9, 2018

We will need to both embed and retrieve. Looking into retrieving now.

@gunnsth gunnsth transferred this issue from unidoc/unidoc May 24, 2019
@gunnsth gunnsth added the feature New feature label Jun 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature
Projects
None yet
Development

No branches or pull requests

2 participants