Hi all,
This may be a dumb question, but I have searched all over for an answer
without any luck (hopefully I didn't just miss it).
I am building an HTML parser of sorts which takes html elements and converts
them to PDF elements. The PDF elements are all added to a Chapter or
Section. When I reach a large image, often it will start at the bottom of
one page, and then continue on to the next page, but it is hidden on second
page, so it looks like the image is cut off after the first page.
Some of what I have tried:
Both vals for writer.setStrictImageSequence(); - no change
Putting the image in a Paragraph, and calling
paragraph.setKeepTogether(true); - no change
Calculating the remaining space on the page and adding a new page. This
doesn't seem to work because a Section does not have a method like
writer.getVerticalPosition(false); so I don't actually know how much space I
have left.
I have considered re-architecting my parser so that I add content directly
to the document (as opposed to a Section), but because of html element
nesting, I would still end up with nested PDF elements that have not been
added to the document when I call writer.getVerticalPosition(false) -
meaning it would still likely give me an invalid value.
What am I missing here?
Thanks,
Chris Austin
------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions:
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/