Skip to Content
0
Sep 07, 2011 at 10:52 AM

How to convert HTML to PDF

447 Views

Hi all,

I have a requirement in which I'll get required data in HTML form which I have to convert to PDF in adobe forms.

Problem is that when I'm using FM 'SOTR_TAGS_REMOVE_FROM_STRING' it removes all the html tags and giving plain text ,and I have to show the content which are bold as bold and the content which are Italic as Italic

so there is any way how I can do it .

In web I came through article which say I can do it but I have to convert HTML to XHTM then to XSL-FO which is finally converted to PDF but it is done in Java is there is any way in ABAP

The conversion consists of three steps:

Convert the HTML to XHTML

Convert the XHTML document to XSL-FO (Extensible Stylesheet Language Formatting Objects) using an XSL stylesheet and an XSLT transformer

Pass the XSL-FO document to a formatter to generate the target PDF document