Hello,
I've found a bug in "margin mirroring": the first line in every page after the first one has wrong margins. The problem is present also in one example from the book: "HelloWorldMirroredMargins".
If you look at the result in
http://examples.itextpdf.com/results/part1/chapter01/hello_mirrored_margins.pdf the first line on the second page has wrong margins (it retains margins of the odd pages) while the following lines in the second page have correct margins. The problem is probably caused by the method "carriageReturn" in the PdfDocument class: see the attachment for a possible solution.
1121c1121,1124
<               line = overflowLine;
---
>               line = new PdfLine(indentLeft(), 
> overflowLine.getOriginalWidth(),
>                               overflowLine.widthLeft(), 
> overflowLine.alignment,
>                               overflowLine.isNewlineSplit(), 
> overflowLine.line,
>                               overflowLine.isRTL());       
------------------------------------------------------------------------------
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to