node.js - PDF page size not changing using pdfkit in node js -


i using pdfkit module create pdf documents in node js. not change page size of pdf document. tried following code.. 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 idea problem..

doc.addpage({     size: 'legal'     layout: 'landscape' }); 

above code worked me.


Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -