setasign\SetaPDF2\Core\Document\Catalog\Names
EmbeddedFiles Class allowing access to embedded files.
File: /SetaPDF v2/Core/Document/Catalog/Names/EmbeddedFiles.php
Old class name (alias):
\SetaPDF_Core_Document_Catalog_Names_EmbeddedFiles
Class hierarchy
Summary
Properties
Methods
__construct()
add()
Adds an embedded file by its file specification.
Parameters
- $name : string
The unique name in the name tree for embedded files. This string shall be a PDF string in PDFDoc encoding or UTF-16BE.
- $fileSpecification : \SetaPDF_Core_FileSpecification
Exceptions
Throws \setasign\SetaPDF2\Core\DataStructure\Tree\KeyAlreadyExistsException
get()
Get an embedded file by its name.
Parameters
- $name : string
Exceptions
getAll()
remove()
Remove an embedded file.
Parameters
- $name : string
No encoding is used. The name needs to be passed as it is registered in the name tree.
- $removeObjects : bool
If this is set to false only the registration in the name tree is removed. By default also the embedded streams will be deleted.