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
- BitConverter
- EmbeddedFileStream
- Exception
- FileSpecification
- OutputIntent
- PageBoundaries
- PageFormats
- Tokenizer
- TransparencyGroup
- WriteInterface
- XmpHelper
SetaPDF_Core_EmbeddedFileStream Class representing an embedded file stream
File: /SetaPDF v2/Core/EmbeddedFileStream.php
Class hierarchy
Summary
Constants
PARAM_CHECK_SUM
Constanst for the "CheckSum" key in a embedded file parameter dictionary.
The checksum shall be calculated by applying the standard MD5 message-digest algorithm to the bytes of the embedded file stream.
PARAM_CREATION_DATE
Constanst for the "CreationDate" key in a embedded file parameter dictionary.
PARAM_MODIFICATION_DATE
Constanst for the "ModDate" key in a embedded file parameter dictionary.
PARAM_SIZE
Constanst for the "Size" key in a embedded file parameter dictionary.
Properties
Static Methods
create()
Create an embedded file stream.
Parameters
- $document : SetaPDF_Core_Document
- $pathOrReader : SetaPDF_Core_Reader_ReaderInterface|string
A reader instance or a path to a file.
- $params : 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
Throws SetaPDF_Exception_NotImplemented
Throws Exception
Methods
__construct()
The constructor.
Parameters
- $indirectObject : SetaPDF_Core_Type_IndirectObjectInterface
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
getIndirectObject()
Get the indirect object.
getParams()
Get the entries and data of the embedded file parameter dictionary.
Exceptions
Throws SetaPDF_Core_Type_Exception
getStream()
setMimeType()
Set the mime type (or subtype) of the embedded file stream.
Parameters
- $mimeType : string|null
setParams()
Set the entries in the embedded file parameter dictionary.
Parameters
- $params : array
See class constants self::PARAMS_* for possible keys.
- $reset : bool
Defines whether to remove all previously set entries or not.
Exceptions
Throws Exception