Skip to content

wikis Search Results · repo:foliojs/pdfkit language:JavaScript

7 results  (152 ms)

7 results

infoliojs/pdfkit (press backspace or delete to remove)

Get a current page: doc . page Properties .width .height .margins .size:String .layout:String

The PDFDocument takes some options when initializing. var doc = new PDFDocument ( { size : 'legal' , layout : 'landscape' // default is portrait } ) ; Other size options include letter ...

Welcome to the pdfkit wiki! Change the Document Size

Starting form version 0.10, a standalone build (named pdfkit.standalone.js ) is distributed in the package or in the release, so most of the time this procedure is not needed. This is how to compile PDFKit ...

Using the IPP package to print PDFs. var ipp = require ( "ipp" ) , PDFDocument = require ( "pdfkit" ) ; var doc = new PDFDocument ( { margin : 0 } ) ; doc . fontSize ( 24 ) ; doc . ...

'Courier' 'Courier-Bold' 'Courier-Oblique' 'Courier-BoldOblique' 'Helvetica' 'Helvetica-Bold' 'Helvetica-Oblique' 'Helvetica-BoldOblique' ...

doc . text ( text : String ) doc . text ( text : String , options : Object ) doc . text ( text : String , x : Number , y : Number ) doc . text ( text : String , x : Number , y : Number , options : Object ...