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.
<html>
<head>
<meta name="pdfkit-page-width" content="8.5in"/>
<meta name="pdfkit-page-height" content="14in"/>
</head>
Hello World!
</html>
Frappe Framework: v15.43.0 (version-15)
wkhtmltopdf: 0.12.6.1 (with patched qt)