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.adjustHtmlWidth(); pdf.enableImgSplit( false ); pdf.render( new StringReader(html), os ); os.close();
I have tried leaving out the call to adjustHtmlWidth and even making the Html and PageSize really large. No dice.
Any help?
Attachments:
File comment: HTML file from which PDF is generated test.html.zip [1.31 KiB]
Downloaded 71 times
File comment: PDF File generated 2JXN13TH.pdf [62.82 KiB]
Downloaded 77 times