Manuals

 

FPDI_Protection_128_Pro::setSourceFile()

Description

class FPDI_Protection_128_Pro extends FPDI_Protection_128 {
integer setSourceFile ( string $filename[, string $password=''] ) }

Opens a file and reads the needed information. It returns the page count. The resulting PDF document is created with the highest version number of the imported documents.

Parameters

$filename

A valid path to a PDF file you want to take pages from. Only local files are allowed.

$password

The owner password if the document is encrypted.

Return Values

The page count of the source file.