Skip to content

LePdf 0.2.0

Latest

Choose a tag to compare

@LeRalf LeRalf released this 09 Nov 12:29

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() and css() 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.