Skip to content
New issue

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

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

Already on GitHub? # to your account

Extract embedded Xml file from PDF using javascript #7459

Closed
anantapl opened this issue Jun 30, 2016 · 6 comments
Closed

Extract embedded Xml file from PDF using javascript #7459

anantapl opened this issue Jun 30, 2016 · 6 comments

Comments

@anantapl
Copy link

I Have a pdf which has an embedded xml file.

I want to Extract and read the data from xml file which is embedded with PDF using javascript.
Please help me to do so. and I want to know that can it be done using pdf.js.

@timvandermeij
Copy link
Contributor

PDF.js is able to parse the PDF file, so you could probably write something to extract that. If it is an attachment then there is already support for that, otherwise you have to write it youself. Closing as answered.

@anantapl
Copy link
Author

anantapl commented Jul 1, 2016

I dont want to extract PDF file, i want to extract XML file which is embedded or attached with the PDF and I have the PDF, Can i extract the data from xml file @timvandermeij ?

@timvandermeij
Copy link
Contributor

Yes, that's what I said. PDF.js parses the PDF file and is able to give you the data of the XML file, probably as a FileSpec dictionary.

@anantapl
Copy link
Author

anantapl commented Jul 4, 2016

Thanks Can you please share code for extracting embedded xml file in php using pdf.js

@timvandermeij
Copy link
Contributor

PDF.js is written in JavaScript, so PHP will not be of much use here. There is already support for attachments, but you will have to write other code yourself as we do not provide support for writing custom solutions.

@anantapl
Copy link
Author

anantapl commented Jul 4, 2016

Ok thanks.

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

No branches or pull requests

2 participants