Skip to content

Changing the Document size

Jeremy Woertink edited this page Jan 7, 2015 · 4 revisions

The PDFDocument takes some options when initializing.

var doc = new PDFDocument({
  size: 'legal',
  layout: 'landscape' // default is portrait
});

Other size options include letter.

Clone this wiki locally