Skip to Content

How to convert HTML to PDF

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on May 30, 2013 at 04:21 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.