On Monday 04 June 2007, Stewart Meyers wrote: > Whenever NewPage() is called for RtfWriter, it places a paragraph with a > NewPage (/page) marker in the document. The problem is that the paragraph > which contains the new page takes up some height in the document. Is there > a way to set the font of the paragraph which contains the NewPage marker > (i.e. 1 pt.) so that it takes up very little space? No there is no way to set the font-size for this. I see two workarounds. Either remove the code from the RtfNewPage class or use the RtfDirectContent class to just add the "\page" code.
> Similarly a paragraph is created when a Table is added to the document,
> then another Table is added right after. I need to do this occasionally in
> order to free up memory, but it always adds space after the Table is
> written. Like above, I need to set that paragraph marker to something very
> small.
You are best of editing com.lowagie.text.rtf.table.RtfTable and removing the
paragraph code there.
Greetings,
Mark
--
"Elves and Dragons!" I says to him. "Cabbages and potatoes are better
for you and me."
-- J. R. R. Tolkien
My GPG public key is available at:
http://www.edu.uni-klu.ac.at/~mhall/data/security/MarkHall.asc
pgpD49SGhLpPt.pgp
Description: PGP signature
------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/
_______________________________________________ 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/
