Since Acrobat obviously isn't able to convert XML to PDF from command line, I'm trying to achieve it using LaTeX.
I found the minted package doing a quite good (and simple) job since it uses pygments to do the formatting and then puts back the formatted text into my document.
The package is working fine except when it comes to long lines in the input XML document that I'm trying to convert to PDF: the generated XML content in the PDF exceeds the right border of the document:

Finally, to put in a question:
Is there any way that I can tell pygments which page width to use for the output (and possibly keep a nice indent when it has to break a line, just like the Internet Explorer does when displaying XML files)?
Yes, I could use the listings package instead, but with that one, AFAIK I have to define the keywords to get a reasonable highlighting for the XML content, right?
listingspackage for my needs... – eckes Feb 08 '11 at 06:34mintednow has abreaklinesfeature. – Keelan Apr 22 '15 at 19:38