I know there are plenty of discussion on this already.
I am trying to setup my A5 page print format on ERPNext using the below code. The print format is unsuccessful. When I am generating PDF it always default to A4 page size.
Can you please let me know what I am doing wrong? Is there is anything I need to other than this?
N.B: Option One works fine. But did not succeed with Option Two. Only the orientation works in Option Two. frappe overwrites this meta data with the Print Settings attributes called pdf_page_size
I have successfully set Custom Page size for each Print format with pdfkit-page-width and pdfkit-page-height. Example shown here is for Legal paper size.