I've been working with iText.Net for a while and have
truly enjoyed it. Just recently I started working on
an XML based template system. All of the pdfs kept
coming out as A4 sized pages instead of what I actually
set the document as and the margins wouldn't adjust to
the margins I specified either. So after some
researching tracing back through the source code for
iTextdotNet it turns out that for some reason in
com.lowagie.text.xml.SAXiTextHandler line 440 it is
statically setting the page size. I verfied that this
was the culprit by changing the pagesize there and
recompiling iTextdotNet. Using the new set or dlls I
ran my test program and tracked the pagesize and it
actually came out whatever size I specified in the
SAXiTextHandler on line 440 instead of what I had
originally set before passing it to XMLParser.parse().
Since I'm not a J# person this is about as much
assistance as I can give. I'll do anything more I can
just let me know.
Log in to post a comment.