You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.
The allowed options to --pagesize are fixed at (A3|A4|A5|Legal|Letter|Tabloid). Just wondering if I'm missing something simple to allow a custom page size?
I've tried inline css width: 300mm; height: 300mm; on the html/body/element being rendered, also tried params like --page-width 300mm from wkhtmltopdf - all with no luck.
The text was updated successfully, but these errors were encountered:
Turns out there is a workaround for this available right now. Custom page sizes can be achieved with the use of the css @page rule. E.g. <style type="text/css" media="all">@page {size: 300mm 300mm;}. Big hat tip to @jaymiejones86 for this.
The allowed options to --pagesize are fixed at (A3|A4|A5|Legal|Letter|Tabloid). Just wondering if I'm missing something simple to allow a custom page size?
I've tried inline css
width: 300mm; height: 300mm;
on the html/body/element being rendered, also tried params like--page-width 300mm
from wkhtmltopdf - all with no luck.The text was updated successfully, but these errors were encountered: