Thank you. I was able to merge using HTMLWorker. Now I am trying to use
TextMarginFinder.


1T3XT info wrote:
> 
> Gaba wrote:
>> Hi
>> 
>> I have a requirement where I need to merge a PDF with dynamically
>> generated
>> HTML content from Rich Text Area.The HTML content is stored in a String
>> variable. The formatting of the content in the HTML has to be preserved
>> while merging. For e.g. if text in HTML is bold, red in color and
>> italics,
>> it should be merged to PDF with the formatting.
> 
> Use HTMLWorker.
> 
>> Moreover the html content
>> should be one line below the last paragraph in the PDF. I don't want to
>> add
>> a new page. Content should wrap at the end of line and should rollover to
>> new page if it cannot fit an existing page.
> 
> Use TextMarginFinder (will only work if you don't have a text footer,
> otherwise you'll find the baseline position of the footer).
> 
>> Creating a new PDF after merging existing pdf and the html file is fine.
> 
> No, it's not. Use PdfStamper and ColumnText to add the new content.
> -- 
> This answer is provided by 1T3XT BVBA
> http://www.1t3xt.com/ - http://www.1t3xt.info
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 
> Buy the iText book: http://www.itextpdf.com/book/
> Check the site with examples before you ask questions:
> http://www.1t3xt.info/examples/
> You can also search the keywords list:
> http://1t3xt.info/tutorials/keywords/
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Merging-PDF-and-a-HTML-tp28392422p28437992.html
Sent from the iText - General mailing list archive at Nabble.com.


------------------------------------------------------------------------------
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to