Asker
Asker

Reputation: 21

PDF to XML transformation?

Can we convert PDF file to XML using XSLT Transformation?

Thanks

Upvotes: 0

Views: 2996

Answers (2)

Steven D. Majewski
Steven D. Majewski

Reputation: 2167

PDF is a binary format which would be difficult to handle in XSLT. Try using something like PDFBox http://pdfbox.apache.org/ to convert PDF to text and then convert the text to XML.

Upvotes: 0

kemiller2002
kemiller2002

Reputation: 115538

You can't. XSL is used to convert an XML document to another form of XML (or as pointed out some other) document. You'll need to convert it to xml first with something like this:

http://www.pdf2text.com/

Upvotes: 3

Related Questions