Hi,
When i open a pdf document like this :
LibPdfDoc = new Document(Rect, LeftMargin, RightMargin, TopMargin,
BottomMargin);
LibWriter = PdfWriter.getInstance(LibPdfDoc, new
FileOutputStream(PDFFileName));
LibPdfDoc.open();
LibContent = LibWriter.getDirectContent();
LibContent.beginText();
After i write into document like this :
Bf = Fonts[UseFont].getBaseFont();
LibContent.setFontAndSize(Bf, Fonts[UseFont].getSize());
LibContent.setHorizontalScaling(Spacing);
LibContent.showTextAligned(AlignType(Align), Str, Lib.PointsPixels(X),
LibPdfDoc.top() - YTmp, 0);
Then i add a new page
LibContent.endText();
LibPdfDoc.newPage(); OR LibWriter.newPage();
LibContent.beginText();
.... AND when i write text in the new page with the previous function "...
showTextAligned ..."
IT DOESN'T WORK, the text is written in the first page
Why ???
What's the problem ?
What's the solution ?
Thank's a lot
Regards
Miguel
------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
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