cancel
Showing results for 
Search instead for 
Did you mean: 

How to convert HTML to PDF

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

I see your solution looks a little conplex, actually, trasfer html to pdf can be rechived via two ways, one is just printing html web page to pdf direclty, another way is to download and install a pdf to html converting dll control, and develop and debug in visual studio.