Table of Contents
The PDF stamp class allows you to use a page of an existing PDF document as a stamp appearance.
$stamp = new SetaPDF_Stamper_Stamp_Pdf( 'path/to/stamp.pdf', 1, SetaPDF_Core_PageBoundaries::CROP_BOX ); // or $document = SetaPDF_Core_Document::loadByFilename('path/to/stamp.pdf'); $stamp = new SetaPDF_Stamper_Stamp_Pdf( $document, 1, SetaPDF_Core_PageBoundaries::CROP_BOX );
Beside the general stamp properties the PDF stamp class offers following stamp properties:
Following methods are available to control which page and boundary box should be used from the initial document instance:
Get the current boundary box name.
Get the page number of the page that should be used for the stamp appearance.
Set the boundary box of the imported page.
Set the page number for the page which should be used for the stamp appearance.
Get the height of the pdf page stamp.
Get the width of the pdf page stamp.
Set the individual height if the pdf page stamp.
Set the individual width of the pdf page stamp.
The example simply uses the first page of this document as the stamp appearance: