java - Convert HTML to PDF and add it to a paragraph -


i want add paragraph, containing html, document.
far know, itext supports adding html document directly via xmlworkerhelper.

furthermore want change font of html, can done css-file.

my approach similar code:

xmlworkerhelper worker = xmlworkerhelper.getinstance(); worker.parsexhtml(pdfwriter, document, fis); 

but solution writing document directly. want add html paragraph, may add additional formatting section.

go parsing html step step. in example, final pipeline pdfwriterpipeline isn't want (because pipeline writes stuff document). want replace final pipeline elementhandlerpipeline, converting html tags encountered elementlist.

once have list of element instances, it's decide (adding them paragraph 1 option).


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -