Format of document templates

Hi Splynx team,
is any posibility to change format of specific document template?
For example: if subsriber is not company, to generate template which format is A5, for company A4.

On template you can define:
A3:

<style type="text/css">
    @page {
        sheet-size: A3;
        margin-top: 1cm;
        margin-bottom: 1cm;
        margin-left: 1.5cm;
        margin-right: 1.5cm;
    }
	</style>

A5:

<style type="text/css">
    @page {
        sheet-size: A5;
        margin-top: 1cm;
        margin-bottom: 1cm;
        margin-left: 1.5cm;
        margin-right: 1.5cm;
    }

etc…

more info:
https://mpdf.github.io/css-stylesheets/supported-css.html (@page)

paper size: https://en.wikipedia.org/wiki/Paper_size

2 Likes

Thanks, seems solved :slight_smile: