I am using pdfkit module to create pdf documents in node js. I could not change the page size of pdf document. i tried the following code.. Even its not working.
var PDFDocument = require('pdfkit');
var doc = new PDFDocument;
doc.addPage
size: 'legal'
layout: 'landscape'
doc.addPage
size: [612.00 * 1008.00]
layout: 'landscape'
Please suggest some idea for this problem..
doc.addPage({
size: 'LEGAL'
layout: 'landscape'
});
Above code worked for me.