Hello,

i am using itext the way it is described in
http://itextdocs.lowagie.com/tutorial/directcontent/pageevents/index.html#romeojuliet
.
I generate an xml and parse it with the XmlParser using an tagmap.
    "XmlParser.parse(document, substanceXMLInputSource, tagMap);"

The PdfWriter has a PdfPageEvent set, to realize an header with a logo
and a footer with "Page X of Y".

The document is created that way:

   "float topMargin = 136.0f;
    float leftMargin = 50.0f;
    float rightMargin = 50.0f;
    float bottomMargin = 50.0f;
    Document document = new Document(PageSize.A4, leftMargin,
rightMargin, topMargin, bottomMargin);"

My Problem is, that the document seams to ignore the given Margin an
uses the default Margin instead.

At the moment I set the margin in the PdfPageEvent again. That works,
but it is not a real solution because the new margin doesn't appears
on the first page (of course).

I would be great, if you could help me :)

Sincerely,
Julius Dannert

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to