Forum

Vitali Kurdasov
Moderator
    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
6 months, 2 weeks ago #58071
Up
1
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.