I've been working with iText for a while and have truly enjoyed it. I've ran across a possible issue with XML to PDF. Normally when I set "itext.Document doc = new itext.Document(itext.PageSize.LETTER,72,72,35,72);" the output comes out as a normal 8.5x11 page with the proper margins. But when I do this with the sample code for xml to pdf I end up with a page that is much smaller with a rectagle of 612.0x792.0 and the margins are much smaller. This normally works when I create a normal pdf but for some reason converting from xml to pdf it's messed up. Anyone have any suggestions I've tried all sorts of different page sizes and margins and nothing changes. This is a little frustrating and would love to work out the solution so that I can use XML templates. Thanks in advance for any help you can give.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I've been working with iText for a while and have truly enjoyed it. I've ran across a possible issue with XML to PDF. Normally when I set "itext.Document doc = new itext.Document(itext.PageSize.LETTER,72,72,35,72);" the output comes out as a normal 8.5x11 page with the proper margins. But when I do this with the sample code for xml to pdf I end up with a page that is much smaller with a rectagle of 612.0x792.0 and the margins are much smaller. This normally works when I create a normal pdf but for some reason converting from xml to pdf it's messed up. Anyone have any suggestions I've tried all sorts of different page sizes and margins and nothing changes. This is a little frustrating and would love to work out the solution so that I can use XML templates. Thanks in advance for any help you can give.