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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -