Repository navigation
New: use an existing PDF as the base of a document.
open($file)takes over all pages of an existing PDF unchanged.stampImage()puts an image on a page, for example a signature from a signature pad (raw data, data URI or file; PNG, JPEG, GIF).stampHtml()puts an HTML box on a page.- Header, footer and margins are not added to opened pages.
write()andcss()throw an exception in this mode. - Uses the FPDI importer that is already part of mPDF. PDFs with compressed cross-reference streams cannot be imported and throw an exception.
Internal: path handling of save() moved to a shared helper, behaviour unchanged.