Convert generic HTML to PDF? No template, just upload HTML and convert to PDF?

Tagged:
  • Christoph Pichlmann
        Has successfully completed the online course Intermediate (200)
        Has successfully completed the online course Advanced (300)
        Has successfully completed the online course Basics (100)
        Has successfully completed the online course Advanced (310)
        Has successfully completed the online course Advanced (320)
      1 week ago #57809

      Would that be posible?

      We need to convert an XML file to PDF.
      We’re thinking about converting it via SAP XSLT to HTML, and then convert the HTML to PDF with Simplifier – but it seems the PDF plugin cannot do this?

      Vitali Kurdasov
          Has successfully completed the online course Intermediate (200)
          Has successfully completed the online course Basics (100)
          Has successfully completed the online course Advanced (310)
          Has successfully completed the Intermediate Certification
        1 week ago #58071
        Up
        0
        Down
        ::

        Hi Christoph,

        the PDF Plugin can generate you a pdf in an Business Object from your HTML by using the method generatePdfFromHtml

        an example payload would be:
        {
        “htmlString”: “ title “,

        “config”: “{\”orientation\” : \”Portrait\”,\”page-size\” : \”A4\”,\”margin-top\” : \”1in\”,\”margin-bottom\” : \”1in\”,\”margin-left\” : \”1in\”,\”margin-right\” : \”1in\”,\”footer-center\” : \”[page] / [toPage]\”}”
        }

        you will get back an base64string as result that you then can show in the pdfviewer widget.

      Viewing 2 posts - 1 through 2 (of 2 total)

      You must be logged in to reply to this topic.