Named Destinations
Table of Contents
Introduction
The addFile()
and addDocument()
methods accept a name and/or its configuration as an array for a named destination in their $nameConfig
parameter.
This way it is possible to access the desired page by this name.
Before revision 1330 this paramter only accepts a simple string and was named $name
. It was renamed to $nameConfig
and accepts an array now. In this array you can pass the name and the fitMode configuration, which is an additional array which will be forwarded to the SetaPDF_Core_Document_Destination::createDestinationArray()
method internally. This allows you more control above the created destination.
Example
This named destination could be used in an URI to open the document at the specific page.
To jump to the desired destinations see following URI examples that point to the above script (you need to view the document in your browser):