Create and modify PDF documents in any JavaScript environment
Examples and documentation: * https://github.com/Hopding/pdf-lib#create-form * https://github.com/Hopding/pdf-lib#fill-form * https://github.com/Hopding/pdf-lib#creating-and-filling-forms * https://github.com/Hopding/pdf-lib#fonts-and-unicode
rotate
option to PDFPage.drawEllipse
and PDFPage.drawSvgPath
(thanks @soadzoor!)
customName
option to PDFDocument.embedFont
and PDFDocument.embedStandardFont
to allow deterministic output from PDFDocument.save
(thanks @ztoben and @trevtrich!)
blendMode
option to all PDFPage
drawing methods (thanks @bockoblur!):
dashArray
, dashPhase
, borderDashArray
, and borderDashPhase
options to PDFPage
drawing methods to allow control of dashes borders and lines (thanks @soadzoor!):
borderLineCap
option to PDFPage
drawing methods (thanks @soadzoor!):
opacity
and borderOpacity
options to all page drawing methods (thanks @soadzoor!):
objectNumber=0
when parsing:
PDFDocument.attach
method to add attachments to a document (thanks @sebastinez!):
capNumbers: boolean
option to PDFDocument.load(...)
to allow capping parsed numbers to Number.MAX_SAFE_INTEGER
:
PDFPage.drawLine(...)
API to remove breaking change introduced in https://github.com/Hopding/pdf-lib/pull/437:
PDFPage
methods for setting width/height/size to handle pages with CropBoxes:
PDFObject
subclasses to access underlying values:
PDFDocument
for reading document metadata (thanks @timKraeuter!):