HTML to PDF / DOCX / RTF Java converter library › Forums › PD4ML v3 Archived Forums (Read Only) › General questions / FAQ › need servlet code for converting html string to pdf › Re: Re: need servlet code for converting html string to pdf
Hi,
I have been using the below sample code in my application. I have been using the demo jar.
PD4ML html = new PD4ML();<br />
html.setPageSize(new java.awt.Dimension(450, 450));<br />
html.setPageInsets(new java.awt.Insets(20, 50, 10, 10));<br />
html.setHtmlWidth(750);<br />
html.enableImgSplit(false);<br />
response.setHeader("Content-Disposition", "attachment; filename=test.pdf");<br />
<br />
URL base = new URL("file:D:/home.jsp");<br />
html.render(url, baos);<br />
Is this feature available in PD4ML library or in PD4Ml library PRO? I have to give this info to my procurement team.