Skip to Content
avatar image
Former Member

HOW TO CREATE PDF FILES IN SAP HCI

Hi Experts,

I want to create the PDF files in the SAP HCI. Can some one please help me in creating the same.

Regards,

Vijay

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Feb 28, 2017 at 09:43 PM

    Hi Vijay,

    If you want to create PDF files with your own Java code, you can use the Apache PDFBox library, which is open source.
    https://pdfbox.apache.org/
    For a more convenient way to create your PDF, you can use XSL-FO. The XSL stylesheet will be processed by Apache FOP
    https://xmlgraphics.apache.org/fop/
    A combination of XSL-T and XSL-FO will easily transform your PI message XML into a PDF file.
    You find many sources and examples related to PDF creation. You can create the PDF in Java mapping or an adapter module.
    However, you need to upload all Apache libraries and any font or graphic which you want to use for your PDF to PO.

    The company Java4Less provides a graphical tool for creating XSL-FO files and a PI adapter module which you can use.
    There is an example which creates an invoice PDF from Idoc INVOIC02.

    http://www.java4less.com/fopdesigner/fodesigner.php?info=sappi

    Could you tell me, what kind of PDF you want to create? How do you want to process it further?

    Regards

    Stefan

    Add comment
    10|10000 characters needed characters exceeded