Manuals

 

SetaPDF_Stamper::addFile()

Description

class SetaPDF_Stamper extends SetaPDF {
mixed addFile ( array $file ) }

With this method you can add a single pdf file to the stamping process.

Parameters

$file

An array with the following keys:

  • "in": The path to the original PDF document
  • "out": The path oder the name of the resulting PDF document
  • "compression": Turn compression of new content streams on or off

The key "compression" is optional. The default value is false

Return value

True - if everything works as expected - an SetaPDF_Error object if an error occurs.