Moderator
6 months, 2 weeks ago
#58071
:: title
“,
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”: “
“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.