iText 9.0.0 API
|
Wrapper class that represent resource dictionary - that define named resources used by content streams operators. More...
Public Member Functions |
|
PdfResources (PdfDictionary pdfObject) | |
Creates new instance from given dictionary. More... |
|
PdfResources () | |
Creates new instance from empty dictionary. More... |
|
virtual PdfName | AddFont (PdfDocument pdfDocument, PdfFont font) |
Adds font to resources and registers PdfFont in the document for further flushing. More... |
|
virtual PdfName | AddImage (PdfImageXObject image) |
Adds iText.Kernel.Pdf.Xobject.PdfImageXObject object to the resources. More... |
|
virtual PdfName | AddImage (PdfStream image) |
Adds PdfStream to the resources as image. More... |
|
virtual PdfImageXObject | GetImage (PdfName name) |
virtual PdfName | AddForm (PdfFormXObject form) |
Adds iText.Kernel.Pdf.Xobject.PdfFormXObject object to the resources. More... |
|
virtual PdfName | AddForm (PdfStream form) |
Adds PdfStream to the resources as form. More... |
|
virtual PdfName | AddForm (PdfFormXObject form, PdfName name) |
Adds the given Form XObject to the current instance of PdfResources. More... |
|
virtual PdfFormXObject | GetForm (PdfName name) |
virtual PdfName | AddExtGState (PdfExtGState extGState) |
Adds iText.Kernel.Pdf.Extgstate.PdfExtGState object to the resources. More... |
|
virtual PdfName | AddExtGState (PdfDictionary extGState) |
Adds PdfDictionary to the resources as graphics state parameter dictionary. More... |
|
virtual PdfExtGState | GetPdfExtGState (PdfName name) |
virtual PdfName | AddProperties (PdfDictionary properties) |
Adds PdfDictionary to the resources as properties list. More... |
|
virtual PdfObject | GetProperties (PdfName name) |
virtual PdfName | AddColorSpace (PdfColorSpace cs) |
Adds iText.Kernel.Pdf.Colorspace.PdfColorSpace object to the resources. More... |
|
virtual PdfName | AddColorSpace (PdfObject colorSpace) |
Adds PdfObject to the resources as color space. More... |
|
virtual PdfColorSpace | GetColorSpace (PdfName name) |
virtual PdfName | AddPattern (PdfPattern pattern) |
Adds iText.Kernel.Pdf.Colorspace.PdfPattern object to the resources. More... |
|
virtual PdfName | AddPattern (PdfDictionary pattern) |
Adds PdfDictionary to the resources as pattern. More... |
|
virtual PdfPattern | GetPattern (PdfName name) |
virtual PdfName | AddShading (AbstractPdfShading shading) |
Adds iText.Kernel.Pdf.Colorspace.Shading.AbstractPdfShading object to the resources. More... |
|
virtual PdfName | AddShading (PdfDictionary shading) |
Adds PdfDictionary to the resources as shading dictionary. More... |
|
virtual AbstractPdfShading | GetShading (PdfName name) |
override PdfObjectWrapper< PdfDictionary > | SetModified () |
virtual void | SetDefaultGray (PdfColorSpace defaultCs) |
Sets the value of default Gray Color Space (see ISO-320001 Paragraph 8.6.5.6). More... |
|
virtual void | SetDefaultRgb (PdfColorSpace defaultCs) |
Sets the value of default RGB Color Space (see ISO-320001 Paragraph 8.6.5.6). More... |
|
virtual void | SetDefaultCmyk (PdfColorSpace defaultCs) |
Sets the value of default CMYK Color Space (see ISO-320001 Paragraph 8.6.5.6). More... |
|
virtual PdfName | GetResourceName< T > (PdfObjectWrapper< T > resource) |
Gets the mapped resource name of the PdfObject under the given wrapper. More... |
|
virtual PdfName | GetResourceName (PdfObject resource) |
Gets the mapped resource name of the given PdfObject. More... |
|
virtual ICollection< PdfName > | GetResourceNames () |
Gets the names of all the added resources. More... |
|
virtual PdfArray | GetProcSet () |
Gets the array of predefined procedure set names (see ISO-320001 Paragraph 14.2). More... |
|
virtual void | SetProcSet (PdfArray array) |
Sets the array of predefined procedure set names (see ISO-320001 Paragraph 14.2). More... |
|
virtual ICollection< PdfName > | GetResourceNames (PdfName resType) |
Gets the names of all resources of specified type. More... |
|
virtual PdfDictionary | GetResource (PdfName resType) |
Get the PdfDictionary object that that contain resources of specified type. More... |
|
virtual PdfObject | GetResourceObject (PdfName resType, PdfName resName) |
Get the PdfObject object with specified type and name. More... |
|
Public Member Functions inherited from iText.Kernel.Pdf.PdfObjectWrapper< PdfDictionary > | |
virtual T | GetPdfObject () |
virtual iText.Kernel.Pdf.PdfObjectWrapper< T > | MakeIndirect (PdfDocument document, PdfIndirectReference reference) |
Marks object behind wrapper to be saved as indirect. More... |
|
virtual iText.Kernel.Pdf.PdfObjectWrapper< T > | MakeIndirect (PdfDocument document) |
Marks object behind wrapper to be saved as indirect. More... |
|
virtual void | Flush () |
virtual bool | IsFlushed () |
Package Functions |
|
virtual bool | IsReadOnly () |
virtual void | SetReadOnly (bool readOnly) |
virtual bool | IsModified () |
override bool | IsWrappedObjectMustBeIndirect () |
Defines if the object behind this wrapper must be an indirect object in the resultant document. More... |
|
virtual void | AddResource (PdfObject resource, PdfName resType, PdfName resName) |
virtual void | BuildResources (PdfDictionary dictionary) |
Package Functions inherited from iText.Kernel.Pdf.PdfObjectWrapper< PdfDictionary > | |
PdfObjectWrapper (T pdfObject) | |
virtual void | SetPdfObject (T pdfObject) |
virtual void | SetForbidRelease () |
virtual void | UnsetForbidRelease () |
virtual void | EnsureUnderlyingObjectHasIndirectReference () |
Additional Inherited Members |
|
Static Package Functions inherited from iText.Kernel.Pdf.PdfObjectWrapper< PdfDictionary > | |
static void | MarkObjectAsIndirect (PdfObject pdfObject) |
static void | EnsureObjectIsAddedToDocument (PdfObject @object) |
Some wrappers use object's indirect reference to obtain the PdfDocument to which the object belongs to. More... |
|
Wrapper class that represent resource dictionary - that define named resources used by content streams operators.
Wrapper class that represent resource dictionary - that define named resources used by content streams operators. (ISO 32000-1, 7.8.3 Resource Dictionaries)
|
inline |
Creates new instance from given dictionary.
pdfObject | the PdfDictionary object from which the resource object will be created. |
|
inline |
Creates new instance from empty dictionary.
|
inlinevirtual |
Adds iText.Kernel.Pdf.Colorspace.PdfColorSpace object to the resources.
cs | the iText.Kernel.Pdf.Colorspace.PdfColorSpace to add. |
|
inlinevirtual |
Adds PdfDictionary to the resources as graphics state parameter dictionary.
extGState | the PdfDictionary to add. |
|
inlinevirtual |
Adds iText.Kernel.Pdf.Extgstate.PdfExtGState object to the resources.
extGState | the iText.Kernel.Pdf.Extgstate.PdfExtGState to add. |
|
inlinevirtual |
Adds font to resources and registers PdfFont in the document for further flushing.
pdfDocument | a PdfDocument instance to which the font is added for further flushing |
font | a iText.Kernel.Font.PdfFont instance to be added |
|
inlinevirtual |
Adds iText.Kernel.Pdf.Xobject.PdfFormXObject object to the resources.
form | the iText.Kernel.Pdf.Xobject.PdfFormXObject to add. |
|
inlinevirtual |
Adds the given Form XObject to the current instance of PdfResources.
form | Form XObject. |
name | Preferred name for the given Form XObject. |
|
inlinevirtual |
Adds iText.Kernel.Pdf.Xobject.PdfImageXObject object to the resources.
image | the iText.Kernel.Pdf.Xobject.PdfImageXObject to add. |
|
inlinevirtual |
Adds PdfDictionary to the resources as pattern.
pattern | the PdfDictionary to add. |
|
inlinevirtual |
Adds iText.Kernel.Pdf.Colorspace.PdfPattern object to the resources.
pattern | the iText.Kernel.Pdf.Colorspace.PdfPattern to add. |
|
inlinevirtual |
Adds PdfDictionary to the resources as properties list.
properties | the PdfDictionary to add. |
|
inlinevirtual |
Adds iText.Kernel.Pdf.Colorspace.Shading.AbstractPdfShading object to the resources.
shading | the iText.Kernel.Pdf.Colorspace.Shading.AbstractPdfShading to add. |
|
inlinevirtual |
Adds PdfDictionary to the resources as shading dictionary.
shading | the PdfDictionary to add. |
|
inlinevirtual |
Gets the array of predefined procedure set names (see ISO-320001 Paragraph 14.2).
Gets the array of predefined procedure set names (see ISO-320001 Paragraph 14.2). Deprecated in PDF 2.0.
|
inlinevirtual |
Get the PdfDictionary object that that contain resources of specified type.
resType | the resource type. Should be PdfName.ColorSpace , PdfName.ExtGState , PdfName.Pattern , PdfName.Shading , PdfName.XObject , PdfName.Font. |
null
in case of incorrect resource type.
Gets the mapped resource name of the given PdfObject.
Gets the mapped resource name of the given PdfObject.
Note: if the name for the object won't be found, then the name of object's Indirect Reference will be searched.
resource | the object, for which the name will be searched. |
null
if object isn't added to resources.
|
inlinevirtual |
Gets the mapped resource name of the PdfObject under the given wrapper.
Gets the mapped resource name of the PdfObject under the given wrapper.
Note: if the name for the object won't be found, then the name of object's Indirect Reference will be searched.
resource | the wrapper of the PdfObject , for which the name will be searched. |
T | the type of the underlined PdfObject in wrapper. |
null
if object isn't added to resources.
T | : | PdfObject |
|
inlinevirtual |
Gets the names of all the added resources.
|
inlinevirtual |
Gets the names of all resources of specified type.
resType | the resource type. Should be PdfName.ColorSpace , PdfName.ExtGState , PdfName.Pattern , PdfName.Shading , PdfName.XObject , PdfName.Font. |
|
inlinevirtual |
Get the PdfObject object with specified type and name.
resType | the resource type. Should be PdfName.ColorSpace , PdfName.ExtGState , PdfName.Pattern , PdfName.Shading , PdfName.XObject , PdfName.Font. |
resName | the name of the resource object. |
null
in case of incorrect type or missing resource with such name.
|
inlinepackagevirtual |
Defines if the object behind this wrapper must be an indirect object in the resultant document.
Defines if the object behind this wrapper must be an indirect object in the resultant document.
If this method returns true it doesn't necessarily mean that object must be in the indirect state at any moment, but rather defines that when the object will be written to the document it will be transformed into indirect object if it's not indirect yet.
Return value of this method shouldn't depend on any logic, it should return always true or false.
Implements iText.Kernel.Pdf.PdfObjectWrapper< PdfDictionary >.
|
inlinevirtual |
Sets the value of default CMYK Color Space (see ISO-320001 Paragraph 8.6.5.6).
defaultCs | the color space to set. |
|
inlinevirtual |
Sets the value of default Gray Color Space (see ISO-320001 Paragraph 8.6.5.6).
defaultCs | the color space to set. |
|
inlinevirtual |
Sets the value of default RGB Color Space (see ISO-320001 Paragraph 8.6.5.6).
defaultCs | the color space to set. |
|
inlinevirtual |
Reimplemented from iText.Kernel.Pdf.PdfObjectWrapper< PdfDictionary >.
|
inlinevirtual |
Sets the array of predefined procedure set names (see ISO-320001 Paragraph 14.2).
Sets the array of predefined procedure set names (see ISO-320001 Paragraph 14.2). Deprecated in PDF 2.0.
array | the array of predefined procedure set names to be set. |