iText 8.0.5 API
|
A representation of a Dictionary as described by the PDF Specification. More...
Public Member Functions |
|
PdfDictionary () | |
Creates a new PdfDictionary instance. More... |
|
PdfDictionary (IDictionary< PdfName, PdfObject > map) | |
Creates a new PdfDictionary instance. More... |
|
PdfDictionary (ICollection< KeyValuePair< PdfName, PdfObject >> entrySet) | |
Creates a new PdfDictionary instance. More... |
|
PdfDictionary (iText.Kernel.Pdf.PdfDictionary dictionary) | |
Creates a new PdfDictionary instance. More... |
|
virtual int | Size () |
Returns the number of key-value pairs in this PdfDictionary. More... |
|
virtual bool | IsEmpty () |
Returns true if there are no key-value pairs in this PdfDictionary. More... |
|
virtual bool | ContainsKey (PdfName key) |
Returns true if this PdfDictionary contains the specified key. More... |
|
virtual bool | ContainsValue (PdfObject value) |
Returns true if this PdfDictionary contains the specified value. More... |
|
virtual PdfObject | Get (PdfName key) |
Returns the value associated to this key. More... |
|
virtual PdfArray | GetAsArray (PdfName key) |
Returns the value associated to this key as a PdfArray. More... |
|
virtual iText.Kernel.Pdf.PdfDictionary | GetAsDictionary (PdfName key) |
Returns the value associated to this key as a PdfDictionary. More... |
|
virtual PdfStream | GetAsStream (PdfName key) |
Returns the value associated to this key as a PdfStream. More... |
|
virtual PdfNumber | GetAsNumber (PdfName key) |
Returns the value associated to this key as a PdfNumber. More... |
|
virtual PdfName | GetAsName (PdfName key) |
Returns the value associated to this key as a PdfName. More... |
|
virtual PdfString | GetAsString (PdfName key) |
Returns the value associated to this key as a PdfString. More... |
|
virtual PdfBoolean | GetAsBoolean (PdfName key) |
Returns the value associated to this key as a PdfBoolean. More... |
|
virtual Rectangle | GetAsRectangle (PdfName key) |
Returns the value associated to this key as a Rectangle. More... |
|
virtual ? float | GetAsFloat (PdfName key) |
Returns the value associated to this key as a Float. More... |
|
virtual ? int | GetAsInt (PdfName key) |
Returns the value associated to this key as an Integer. More... |
|
virtual ? bool | GetAsBool (PdfName key) |
Returns the value associated to this key as a Boolean. More... |
|
virtual PdfObject | Put (PdfName key, PdfObject value) |
Inserts the value into this PdfDictionary and associates it with the specified key. More... |
|
virtual PdfObject | Remove (PdfName key) |
Removes the specified key from this PdfDictionary. More... |
|
virtual void | PutAll (iText.Kernel.Pdf.PdfDictionary d) |
Inserts all the key-value pairs into this PdfDictionary. More... |
|
virtual void | Clear () |
Removes all key-value pairs from this PdfDictionary. More... |
|
virtual ICollection< PdfName > | KeySet () |
Returns all the keys of this PdfDictionary as a Set. More... |
|
virtual ICollection< PdfObject > | Values (bool asDirects) |
Returns all the values of this map in a Collection. More... |
|
virtual ICollection< PdfObject > | Values () |
Returns all the values of this map in a Collection. More... |
|
virtual ICollection< KeyValuePair< PdfName, PdfObject > > | EntrySet () |
Returns a Set holding the key-value pairs as Map::Entry objects. More... |
|
override byte | GetObjectType () |
Gets object type. More... |
|
override String | ToString () |
virtual iText.Kernel.Pdf.PdfDictionary | Clone (IList< PdfName > excludeKeys) |
Creates clones of the dictionary in the current document. More... |
|
virtual iText.Kernel.Pdf.PdfDictionary | CopyTo (PdfDocument document, IList< PdfName > excludeKeys, bool allowDuplicating) |
Copies dictionary to specified document. More... |
|
virtual iText.Kernel.Pdf.PdfDictionary | CopyTo (PdfDocument document, IList< PdfName > excludeKeys, bool allowDuplicating, ICopyFilter copyFilter) |
Copies dictionary to specified document. More... |
|
virtual PdfObject | Get (PdfName key, bool asDirect) |
virtual void | MergeDifferent (iText.Kernel.Pdf.PdfDictionary other) |
This method merges different fields from two dictionaries into the current one More... |
|
Public Member Functions inherited from iText.Kernel.Pdf.PdfObject | |
void | Flush () |
Flushes the object to the document. More... |
|
void | Flush (bool canBeInObjStm) |
Flushes the object to the document. More... |
|
virtual PdfIndirectReference | GetIndirectReference () |
Gets the indirect reference associated with the object. More... |
|
virtual bool | IsIndirect () |
Checks if object is indirect. More... |
|
virtual PdfObject | MakeIndirect (PdfDocument document, PdfIndirectReference reference) |
Marks object to be saved as indirect. More... |
|
virtual PdfObject | MakeIndirect (PdfDocument document) |
Marks object to be saved as indirect. More... |
|
virtual bool | IsFlushed () |
Indicates is the object has been flushed or not. More... |
|
virtual bool | IsModified () |
Indicates is the object has been set as modified or not. More... |
|
virtual PdfObject | Clone () |
Creates clone of the object which belongs to the same document as original object. More... |
|
virtual PdfObject | Clone (ICopyFilter filter) |
Creates clone of the object which belongs to the same document as original object. More... |
|
virtual PdfObject | CopyTo (PdfDocument document) |
Copies object to a specified document. More... |
|
virtual PdfObject | CopyTo (PdfDocument document, bool allowDuplicating) |
Copies object to a specified document. More... |
|
virtual PdfObject | CopyTo (PdfDocument document, ICopyFilter copyFilter) |
Copies object to a specified document. More... |
|
virtual PdfObject | CopyTo (PdfDocument document, bool allowDuplicating, ICopyFilter copyFilter) |
Copies object to a specified document. More... |
|
virtual PdfObject | SetModified () |
Sets the 'modified' flag to the indirect object, the flag denotes that the object was modified since the document opening. More... |
|
virtual bool | IsReleaseForbidden () |
Checks if it's forbidden to release this PdfObject instance. More... |
|
virtual void | Release () |
virtual bool | IsNull () |
Checks if this PdfObject is of the type PdfNull . More... |
|
virtual bool | IsBoolean () |
Checks if this PdfObject is of the type PdfBoolean . More... |
|
virtual bool | IsNumber () |
Checks if this PdfObject is of the type PdfNumber . More... |
|
virtual bool | IsString () |
Checks if this PdfObject is of the type PdfString . More... |
|
virtual bool | IsName () |
Checks if this PdfObject is of the type PdfName . More... |
|
virtual bool | IsArray () |
Checks if this PdfObject is of the type PdfArray . More... |
|
virtual bool | IsDictionary () |
Checks if this PdfObject is of the type PdfDictionary . More... |
|
virtual bool | IsStream () |
Checks if this PdfObject is of the type PdfStream . More... |
|
virtual bool | IsIndirectReference () |
Checks if this PdfObject is of the type PdfIndirectReference . More... |
|
virtual bool | IsLiteral () |
Checks if this PdfObject is of the type PdfLiteral . More... |
|
Package Functions |
|
override PdfObject | NewInstance () |
Creates new instance of object. More... |
|
override void | CopyContent (PdfObject from, PdfDocument document) |
Copies object content from object 'from'. More... |
|
override void | CopyContent (PdfObject from, PdfDocument document, ICopyFilter copyFilter) |
Copies object content from object 'from'. More... |
|
virtual void | ReleaseContent () |
Release content of PdfDictionary. More... |
|
Package Functions inherited from iText.Kernel.Pdf.PdfObject | |
virtual PdfObject | SetIndirectReference (PdfIndirectReference indirectReference) |
virtual bool | CheckState (short state) |
Checks state of the flag of current object. More... |
|
virtual PdfObject | SetState (short state) |
Sets special states of current object. More... |
|
virtual PdfObject | ClearState (short state) |
Clear state of the flag of current object. More... |
|
Additional Inherited Members |
|
Static Public Attributes inherited from iText.Kernel.Pdf.PdfObject | |
const byte | ARRAY = 1 |
const byte | BOOLEAN = 2 |
const byte | DICTIONARY = 3 |
const byte | LITERAL = 4 |
const byte | INDIRECT_REFERENCE = 5 |
const byte | NAME = 6 |
const byte | NULL = 7 |
const byte | NUMBER = 8 |
const byte | STREAM = 9 |
const byte | STRING = 10 |
Package Attributes inherited from iText.Kernel.Pdf.PdfObject | |
PdfIndirectReference | indirectReference = null |
If object is flushed the indirect reference is kept here. More... |
|
Static Package Attributes inherited from iText.Kernel.Pdf.PdfObject | |
const short | FLUSHED = 1 |
Indicates if the object has been flushed. More... |
|
const short | FREE = 1 << 1 |
Indicates that the indirect reference of the object could be reused or have to be marked as free. More... |
|
const short | READING = 1 << 2 |
Indicates that definition of the indirect reference of the object still not found (e.g. keys in XRefStm). More... |
|
const short | MODIFIED = 1 << 3 |
Indicates that object changed (is used in append mode). More... |
|
const short | ORIGINAL_OBJECT_STREAM = 1 << 4 |
Indicates that the indirect reference of the object represents ObjectStream from original document. More... |
|
const short | MUST_BE_FLUSHED = 1 << 5 |
For internal usage only. More... |
|
const short | MUST_BE_INDIRECT = 1 << 6 |
Indicates that the object shall be indirect when it is written to the document. More... |
|
const short | FORBID_RELEASE = 1 << 7 |
Indicates that the object is highly sensitive and we do not want to release it even if release() is called. More... |
|
const short | READ_ONLY = 1 << 8 |
Indicates that we do not want this object to be ever written into the resultant document (because of multiple objects read from the same reference inconsistency). More... |
|
const short | UNENCRYPTED = 1 << 9 |
Indicates that this object is not encrypted in the encrypted document. More... |
|
A representation of a Dictionary as described by the PDF Specification.
A representation of a Dictionary as described by the PDF Specification. A Dictionary is a mapping between keys and values. Keys are PdfNames and the values are PdfObjects . Each key can only be associated with one value and adding a new value to an existing key will override the previous value. A value of null should be ignored when the PdfDocument is closed.
|
inline |
Creates a new PdfDictionary instance.
Creates a new PdfDictionary instance.
Creates a new PdfDictionary instance. This constructor inserts the content of the specified Map into this PdfDictionary instance.
map | Map containing values to be inserted into PdfDictionary |
|
inline |
Creates a new PdfDictionary instance.
Creates a new PdfDictionary instance. This constructor inserts the content of the specified Set into this PdfDictionary instance.
entrySet | Set containing Map::Entries to be inserted into PdfDictionary |
|
inline |
Creates a new PdfDictionary instance.
Creates a new PdfDictionary instance. This constructor inserts the content of the specified PdfDictionary into this PdfDictionary instance.
dictionary | PdfDictionary containing values to be inserted into PdfDictionary |
|
inlinevirtual |
Removes all key-value pairs from this PdfDictionary.
|
inlinevirtual |
Creates clones of the dictionary in the current document.
Creates clones of the dictionary in the current document. It's possible to pass a list of keys to exclude when cloning.
excludeKeys | list of objects to exclude when cloning dictionary. |
|
inlinevirtual |
Returns true if this PdfDictionary contains the specified key.
key | the key to check |
|
inlinevirtual |
Returns true if this PdfDictionary contains the specified value.
value | the value to check |
|
inlinepackagevirtual |
Copies object content from object 'from'.
Reimplemented from iText.Kernel.Pdf.PdfObject.
Reimplemented in iText.Kernel.Pdf.PdfStream.
|
inlinepackagevirtual |
Copies object content from object 'from'.
Reimplemented from iText.Kernel.Pdf.PdfObject.
Reimplemented in iText.Kernel.Pdf.PdfStream.
|
inlinevirtual |
Copies dictionary to specified document.
Copies dictionary to specified document. It's possible to pass a list of keys to exclude when copying.
document | document to copy dictionary to. |
excludeKeys | list of objects to exclude when copying dictionary. |
allowDuplicating |
PdfObject.CopyTo(PdfDocument, bool)
|
inlinevirtual |
Copies dictionary to specified document.
Copies dictionary to specified document. It's possible to pass a list of keys to exclude when copying.
document | document to copy dictionary to. |
excludeKeys | list of objects to exclude when copying dictionary. |
allowDuplicating |
PdfObject.CopyTo(PdfDocument, bool)
copyFilter |
iText.Kernel.Utils.ICopyFilter a filter to apply while copying arrays and dictionaries Use iText.Kernel.Utils.NullCopyFilter for no filtering
|
inlinevirtual |
Returns a Set holding the key-value pairs as Map::Entry objects.
Returns a Set holding the key-value pairs as Map::Entry objects.
NOTE: since 7.0.1 it returns collection of direct objects. If you want to get PdfIndirectReference instances for the indirect objects value, you shall use Get(PdfName, bool) method.
Returns the value associated to this key.
key | the key of which the associated value needs to be returned |
asDirect | true is to extract direct object always. |
key | the key to get the value from the map |
|
inlinevirtual |
Returns the value associated to this key as a Boolean.
Returns the value associated to this key as a Boolean. If the value isn't a PdfBoolean, null is returned.
key | the key of which the associated value needs to be returned |
|
inlinevirtual |
Returns the value associated to this key as a PdfBoolean.
Returns the value associated to this key as a PdfBoolean. If the value isn't a PdfBoolean, null is returned.
key | the key of which the associated value needs to be returned |
|
inlinevirtual |
Returns the value associated to this key as a PdfDictionary.
Returns the value associated to this key as a PdfDictionary. If the value isn't a PdfDictionary, null is returned.
key | the key of which the associated value needs to be returned |
|
inlinevirtual |
Returns the value associated to this key as a Float.
Returns the value associated to this key as a Float. If the value isn't a Pdfnumber, null is returned.
key | the key of which the associated value needs to be returned |
|
inlinevirtual |
Returns the value associated to this key as an Integer.
Returns the value associated to this key as an Integer. If the value isn't a Pdfnumber, null is returned.
key | the key of which the associated value needs to be returned |
Returns the value associated to this key as a Rectangle.
Returns the value associated to this key as a Rectangle. If the value isn't a PdfArray of which the firt four elements are PdfNumbers, null is returned.
key | the key of which the associated value needs to be returned |
|
inlinevirtual |
Gets object type.
Implements iText.Kernel.Pdf.PdfObject.
Reimplemented in iText.Kernel.Pdf.PdfStream.
|
inlinevirtual |
Returns true if there are no key-value pairs in this PdfDictionary.
|
inlinevirtual |
Returns all the keys of this PdfDictionary as a Set.
|
inlinevirtual |
This method merges different fields from two dictionaries into the current one
other | a dictionary whose fields should be merged into the current dictionary. |
|
inlinepackagevirtual |
Creates new instance of object.
Implements iText.Kernel.Pdf.PdfObject.
Reimplemented in iText.Kernel.Pdf.PdfStream.
Inserts the value into this PdfDictionary and associates it with the specified key.
Inserts the value into this PdfDictionary and associates it with the specified key. If the key is already present in this PdfDictionary, this method will override the old value with the specified one.
key | key to insert or to override |
value | the value to associate with the specified key |
|
inlinevirtual |
Inserts all the key-value pairs into this PdfDictionary.
d | PdfDictionary holding the key-value pairs to be copied |
|
inlinepackagevirtual |
Release content of PdfDictionary.
Reimplemented in iText.Kernel.Pdf.PdfStream.
Removes the specified key from this PdfDictionary.
key | key to be removed |
|
inlinevirtual |
Returns the number of key-value pairs in this PdfDictionary.
|
inlinevirtual |
Returns all the values of this map in a Collection.
Returns all the values of this map in a Collection.
NOTE: since 7.0.1 it returns collection of direct objects. If you want to get PdfIndirectReference instances for the indirect objects value, you shall use Values(bool) method.
|
inlinevirtual |
Returns all the values of this map in a Collection.
asDirects | if false, collection will contain PdfIndirectReference instances for the indirect objects in dictionary, otherwise it will contain collection of direct objects. |