HTML to PDF/RTF Java converter and tools › Forums › PD4ML Forums › Technical questions / Troubleshooting › PD4ML v3 to v4 migration: How to have the same rendering ? › Reply To: PD4ML v3 to v4 migration: How to have the same rendering ?
Thank you for your response.
I just tested with the recent snapshot and I confirm that it fixes the border issue 🙂
Now the generated PDF is different from yours:
– I have 2 pages instead of 1
– The table is truncated in my PDF
– The size of my PDF is 10 Ko and yours is 103 Ko
Attached my generated doc.
I use the PD4ML class as follow:
PD4ML pd4ml = new PD4ML(PD4ML_LICENCE); pd4ml.readHTML(new ByteArrayInputStream(html.getBytes())); File pdf = File.createTempFile("result", ".pdf"); FileOutputStream fos = new FileOutputStream(pdf); pd4ml.writePDF(fos); Desktop.getDesktop().open(pdf);