iText pdf library
Website search

Why is it so difficult to convert XML to PDF?

Could anybody explain to me why is it so complicated to create a pdf file from xml sheet? Acrobat can create XML File but when I want to do this other way round it suddenly gets complicated. I would like to find some simple application which would allow me to create a pdf file out of xml. Is it possible?

Posted on StackOverflow on Jun 13, 2013 by DDEX

XML is a bunch of ingredients, PDF is the finished meal.

He or she who knows how to cook can create a wide variety of meals using the same ingredients. With a potato, he can create soup, mashed potatoes, crisps, french fries,... There's an almost endless list of possibilities.

He or she who can't cook, will stare at the potato and wonder: How on earth can I turn this ugly vegetable into a nice croquette?

The answer is: you need a recipe. That recipe could be an XSL:FO file, the XHTML specification, a DocBook implementation, an XFA template,... Without that recipe, you'll never be able to turn your XML into PDF.

Ready to use iText?

Try our iText 7 Library and add-ons FREE for 30 days. Test your proof of concept, and see if our solution is right for you.

Get my FREE trial

Still have questions? 

We're happy to answer your questions. Reach out to us and we'll get back to you shortly.

Contact us
Stay updated

Join 11,000+ subscribers and become an iText PDF expert by staying up to date with our new products, updates, tips, technical solutions and happenings.

Subscribe Now