We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
The PDFDocument takes some options when initializing.
PDFDocument
var doc = new PDFDocument({ size: 'legal', layout: 'landscape' // default is portrait });
Other size options include letter, or you can use an array to specify dimensions. A list of available size options can be found here
letter
var doc = new PDFDocument({ layout: 'landscape', size: [200, 350] // a smaller document for small badge printers });
You can also change the default margin
var doc = new PDFDocument({ margin: 50 // defaults to 72, which is an inch on a 72 pixels per inch document });