Index
- \SetaPDF
- Core
- Core
- Canvas
- Canvas
- ColorSpace
- ColorSpace
- DataStructure
- Document
- Document
- Encoding
- Encoding
- Filter
- Font
- Font
- Geometry
- IccProfile
- Image
- Image
- Parser
- Reader
- Resource
- Resource
- SecHandler
- SecHandler
- Text
- Text
- Type
- Writer
- Writer
- XObject
- XObject
- XmpHelper
- XmpHelper
- BitConverter
- EmbeddedFileStream
- Exception
- FileSpecification
- OutputIntent
- PageBoundaries
- PageFormats
- Tokenizer
- TransparencyGroup
- WriteInterface
- Zugferd
SetaPDF_Core_FileSpecification Class representing a file specification
File: /SetaPDF v2/Core/FileSpecification.php
Class hierarchy
Summary
Methods
- __construct()
- getCollectionItem()
- getDescription()
- getDictionary()
- getEmbeddedFileStream()
- getFileSpecification()
- getFileSystem()
- getUnicodeFileSpecification()
- getVolatile()
- setCollectionItem()
- setDescription()
- setEmbeddedFileStream()
- setFileSpecification()
- setFileSystem()
- setUnicodeFileSpecification()
- setVolatile()
Constants
FILE_SYSTEM_UNDEFINED
Default file system constant
FILE_SYSTEM_URL
URL file system contant
Properties
Static Methods
createDictionary()
Creates a file specification dictionary.
Parameters
- $fileSpecificationString : string
createEmbedded()
Create a file specification with an embedded file stream.
Parameters
- $document : SetaPDF_Core_Document
- $pathOrReader : SetaPDF_Core_Reader_ReaderInterface|string
A reader instance or a path to a file.
- $filename : string
The filename in UTF-8 encoding.
- $fileStreamParams : array
See
setParams()
method.- $mimeType : null|string
The subtype of the embedded file. Shall conform to the MIME media type names defined in Internet RFC 2046
Exceptions
Throws SetaPDF_Core_Document_ObjectNotFoundException
Throws SetaPDF_Core_Exception
Throws SetaPDF_Core_Parser_Pdf_InvalidTokenException
Throws SetaPDF_Core_Reader_Exception
Throws SetaPDF_Core_Type_Exception
Throws SetaPDF_Core_Type_IndirectReference_Exception
Throws SetaPDF_Exception
Methods
__construct()
The constructor.
If the parameter cannot be evaluated to a dictionary it will be passed to the
createDictionary
method to create an appropriate
dictionary.
Parameters
- $fileSpecification : string|SetaPDF_Core_Type_IndirectObjectInterface|SetaPDF_Core_Type_Dictionary|SetaPDF_Core_Type_StringValue
Exceptions
Throws SetaPDF_Core_Type_Exception
See
getCollectionItem()
Get the collection item data.
getDescription()
Get the descriptive text associated with the file specification.
Parameters
- $encoding : string
getEmbeddedFileStream()
Get the embedded file stream object.
Parameters
- $unicode : boolean
If true use the UF key, otherwise the F key.
Exceptions
Throws SetaPDF_Core_Document_ObjectNotFoundException
Throws SetaPDF_Core_Exception
Throws SetaPDF_Core_Parser_Pdf_InvalidTokenException
Throws SetaPDF_Core_Reader_Exception
Throws SetaPDF_Core_Type_Exception
Throws SetaPDF_Core_Type_IndirectReference_Exception
Throws SetaPDF_Exception
getUnicodeFileSpecification()
Get the unicode text file specification value.
Parameters
- $encoding : string
setCollectionItem()
Set the collection item data.
Parameters
- $item : SetaPDF_Core_Type_Dictionary|null
setDescription()
Set the descriptive text associated with the file specification.
Parameters
- $desc : string|null
- $encoding : string
setEmbeddedFileStream()
Set the embedded file stream object.
Parameters
- $embeddedFileStream : SetaPDF_Core_EmbeddedFileStream
- $unicode : bool
If true use the UF key, otherwise the F key.
setFileSpecification()
Set the file specification value.
Parameters
- $fileSpecification : string|null
setUnicodeFileSpecification()
Set the unicode text file specification value.
Parameters
- $fileSpecification : string|null
- $encoding : string