C A wrote: > 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,
Yes. > and then continue on to the next page, No. > but it is hidden on second page, No, it's not hidden: it's simply not there. > so it looks like the image is cut off after the > first page. Yes. Although this should only happen when the image is too big to fit on a complete page. > I have considered re-architecting my parser so that I add content > directly to the document (as opposed to a Section), Yes, that's what I would do. > 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. Hmm... that's right. > What am I missing here? How does Flying Saucer do it? They have an HTML to PDF convertor that uses iText for the PDF production. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info ------------------------------------------------------------------------------ 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/
