Reputation: 21
Can we convert PDF file to XML using XSLT Transformation?
Thanks
Upvotes: 0
Views: 2996
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
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:
Upvotes: 3