<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>html to pdf converter</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=22815836" />
  <subtitle>html to pdf converter</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=22815836</id>
  <updated>2026-07-11T20:15:48Z</updated>
  <dc:date>2026-07-11T20:15:48Z</dc:date>
  <entry>
    <title>RE: html to pdf converter</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=26090428" />
    <author>
      <name>Pranoti Nandurkar</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=26090428</id>
    <updated>2013-07-01T13:46:41Z</updated>
    <published>2013-07-01T13:46:41Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Hi, &lt;br&gt;you can use iText converter to convert HTML to pdf:&lt;br&gt;&lt;br&gt;Java code using iText API is :&lt;br&gt; &lt;pre&gt;&lt;code&gt;
private void createPDF (){  
  
  String path = "D:/Deiva/Test.pdf";  
  PdfWriter pdfWriter = null;  
  
  //create a new document  
  Document document = new Document();  
  
  try {  
  
   //get Instance of the PDFWriter  
   pdfWriter = PdfWriter.getInstance(document, new FileOutputStream(path));  
  
   //document header attributes  
   document.addAuthor("betterThanZero");  
   document.addCreationDate();  
   document.addProducer();  
   document.addCreator("MySampleCode.com");  
   document.addTitle("Demo for iText XMLWorker");  
   document.setPageSize(PageSize.LETTER);  
  
   //open document  
   document.open();  
   InputStream is = new FileInputStream("D:/Deiva/CRs/Oncology/Phase5/CR1/HTMLPage/Article.html");  
  
   // create new input stream reader  
   InputStreamReader isr = new InputStreamReader(is);  
  
   //get the XMLWorkerHelper Instance  
   XMLWorkerHelper worker = XMLWorkerHelper.getInstance();  
   //convert to PDF  
   worker.parseXHtml(pdfWriter, document, isr);  
  
   //close the document  
   document.close();  
   //close the writer  
   pdfWriter.close();  
  
  } catch (Exception e) {  
      e.printStackTrace();  
  }  
  
 }  
&lt;/code&gt;&lt;/pre&gt;&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Pranoti Nandurkar</dc:creator>
    <dc:date>2013-07-01T13:46:41Z</dc:date>
  </entry>
  <entry>
    <title>RE: html to pdf converter</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=26088034" />
    <author>
      <name>Manish Yadav</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=26088034</id>
    <updated>2013-07-01T13:02:38Z</updated>
    <published>2013-07-01T13:02:38Z</published>
    <summary type="html">&lt;div class="quote-title"&gt;sasmita swain:&lt;/div&gt;&lt;blockquote&gt;Hi&lt;br /&gt;&lt;br /&gt;I am working on LR6.1 ga2.. i want to convert html page to pdf converter..can any body tell me how to convert one html page to pdf and that pdf i have to send in user mailid..&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;&lt;br /&gt;Sasmita&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Try     &lt;a href="http://pdfbox.apache.org/"&gt;Apache PDFBox&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Manish Banwari Lal Yadav</summary>
    <dc:creator>Manish Yadav</dc:creator>
    <dc:date>2013-07-01T13:02:38Z</dc:date>
  </entry>
  <entry>
    <title>RE: html to pdf converter</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=22815903" />
    <author>
      <name>Gaurav Jain</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=22815903</id>
    <updated>2013-03-20T04:05:12Z</updated>
    <published>2013-03-20T04:05:12Z</published>
    <summary type="html">You can use open office for the document conversions.&lt;br /&gt;Liferay has inbuilt features for integration with open-office.&lt;br /&gt;Some reference links: &lt;br /&gt;http://itsliferay.wordpress.com/2012/09/10/document-conversion-using-liferay-way/&lt;br /&gt;&lt;br /&gt;http://www.liferay.com/documentation/liferay-portal/6.1/user-guide/-/ai/openoffice&lt;br /&gt;&lt;br /&gt;http://www.liferay.com/documentation/liferay-portal/6.1/user-guide/-/ai/lp-6-1-ugen12-server-administration-0</summary>
    <dc:creator>Gaurav Jain</dc:creator>
    <dc:date>2013-03-20T04:05:12Z</dc:date>
  </entry>
  <entry>
    <title>html to pdf converter</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=22815835" />
    <author>
      <name>sasmita swain</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=22815835</id>
    <updated>2013-03-20T03:57:04Z</updated>
    <published>2013-03-20T03:57:04Z</published>
    <summary type="html">Hi&lt;br /&gt;&lt;br /&gt;I am working on LR6.1 ga2.. i want to convert html page to pdf converter..can any body tell me how to convert one html page to pdf and that pdf i have to send in user mailid..&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;&lt;br /&gt;Sasmita</summary>
    <dc:creator>sasmita swain</dc:creator>
    <dc:date>2013-03-20T03:57:04Z</dc:date>
  </entry>
</feed>
