Hi all,
Thanks for iText!
If I set the first paragraph in a page to have a spacingBefore value
set, I've noticed that the paragraph does not actually obey the space
before. Here is some code to demonstrate:
Document pdfdoc = new Document(PageSize.LETTER);
PdfWriter writer = PdfWriter.getInstance(pdfdoc,
new FileOutputStream("book.pdf"));
pdfdoc.open();
Paragraph pdfpara= new Paragraph();
pdfpara.setSpacingBefore(pdfdoc.getPageSize().getHeight()/2);
pdfpara.add(new Chunk(
"This should appear near the middle of the page."));
pdfdoc.add(pdfpara);
pdfdoc.close();
Bug? Feature? Is there a workaround?
Thanks!
--Rob
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar