setPaper()
. However, this won't work if in your actual HTML you're rendering you have page size definition such as this:
@page { margin: 0; padding: 0; size: 210mm 297mm; } html { margin: 0; padding: 0; } body { margin: 0; padding: 0; }This will override whatever you set with
setPaper()
. Either remove it, or edit it.
No comments:
Post a Comment