Manuals

 

SetaPDF_StamperPRO::addFile()

Description

class SetaPDF_StamperPRO extends SetaPDF_Stamper {
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
  • "ownerpw": The owner password if the document is encrypted.

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.