HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › HTML/CSS rendering issues › Problem with output ledger type PDF Width › Re: Re: Problem with output ledger type PDF Width
July 14, 2011 at 13:14
#28591
As I wrote it was only schematic code. Put there some debug output and check if the condition is true at some point.
if ( actualRatio < desiredRatio * 1.1 && actualRatio > desiredRatio * 0.9 ) {
break;
}
The resulting document is 0 bytes, as it is reset by the line:
baos.reset();
Probably it makes sense to place the line just after
for ( int i = 0; i < 40; i++ ) {