phpdftk API Documentation

OCUsage
in package
implements Serializable

Optional content usage dictionary — ISO 32000-2 §8.11.4.4, Table 104.

Holds the nine usage sub-dictionaries that let viewers decide whether an OCG should be visible for printing, viewing, exporting, etc. Each entry is a PdfDictionary containing the usage-specific keys (e.g. /Language /Lang /Preferred for /Language).

Attached to OCG::$usage (now OCUsage|PdfDictionary|null).

Attributes
#[RequiresPdfVersion]
\Phpdftk\Pdf\Core\PdfVersion::V1_5

Table of Contents

Interfaces

Serializable
Contract for anything that can emit raw PDF syntax via `toPdf()`.

Properties

$creatorInfo  : PdfDictionary|null
$export  : PdfDictionary|null
$language  : PdfDictionary|null
$pageElement  : PdfDictionary|null
$print  : PdfDictionary|null
$user  : PdfDictionary|null
$view  : PdfDictionary|null
$zoom  : PdfDictionary|null

Methods

toPdf()  : string

Properties

Methods

toPdf()

public toPdf() : string
Return values
string

        
On this page

Search results