I cannot get my generated PDF file to have two columns like my HTML does.
I have tried setting the HtmlWidth and PageSize, but those just seem to make the pdf page bigger, but it still wants to put the text column under the image instead of next to it.
Here is a snip of my code:
os = new java.io.FileOutputStream(file);
PD4ML pdf = new PD4ML();
pdf.setPageSize( new Dimension(1024, 1024));
pdf.setPageInsets( new Insets(0, 0, 0, 0) );
pdf.setHtmlWidth( 1024 );
pdf.enableImgSplit( false );
pdf.render( new StringReader(html), os );
I have tried leaving out the call to adjustHtmlWidth and even making the Html and PageSize really large. No dice.