Hello! Has anyone ever used BFO without FreeMarker...
# advancedpdf
m
Hello! Has anyone ever used BFO without FreeMarker? We need to create a PDF with a large number of lines (20k+). Since the template is very simple, we were considering generating the XML file with SuiteScript and then converting it to PDF with BFO. However, we're unsure if this is even possible. Thank you in advance
h
I think it's possible render.xmlToPdf. There's a limit of 10MB file with SuiteScript File module though.
m
Thank you heiu!
t
Freemarker is just the template engine. You can use any template engine you want to generate the BFO xml. I have personally used Handlebars and Trimpath as template engine. As long as the final xml conforms with BFO, you can generate the PDF using render.xmlToPdf or if you are using a suitlet and want to render it to the response, use ServerResponse.renderPdf
m
Thank you for the suggestion. We'll have a look at those libraries too.
s
Can confirm I’ve also used Handlebars and also no template at all in my suitescript, and both worked fine. But with as many lines as you have, the file size limit or execution count limit could come into play.
👍 1