Does anyone know how, or even if it is possible to...
# advancedpdf
s
Does anyone know how, or even if it is possible to set the locale for a custom PDF template? For transaction templates, the
.locale
variable matches the customer's language setting if the
inCustLocale
variable is set to true in a script, or if the user chooses Print in Customer's Locale in the UI. I have a custom template that combines an invoice template with a second document that is essentially a saved search showing service usage details added to the end of the bill. However, unlike the
render.transaction
method,
renderer.renderAsPdf
doesn't have a locale parameter that can be set, so
.locale
is always our system locale: en_US Is there any way to override this? Or, if not, is it possible to perhaps combine the two separate PDFs from
render.transaction
and
renderer.renderAsPdf
into a single PDF file?