iText 8.0.5 API
|
This class represents /OCProperties entry if pdf catalog and manages the layers of the pdf document. More...
Public Member Functions |
|
PdfOCProperties (PdfDocument document) | |
Creates a new PdfOCProperties instance. More... |
|
PdfOCProperties (PdfDictionary ocPropertiesDict) | |
Creates a new PdfOCProperties instance by the dictionary it represents, the dictionary must be an indirect object. More... |
|
virtual void | AddOCGRadioGroup (IList< PdfLayer > group) |
Use this method to set a collection of optional content groups whose states are intended to follow a "radio button" paradigm. More... |
|
virtual PdfObject | FillDictionary () |
Fills the underlying PdfDictionary object with the current layers and their settings. More... |
|
virtual PdfObject | FillDictionary (bool removeNonDocumentOcgs) |
Fills the underlying PdfDictionary object with the current layers and their settings. More... |
|
override void | Flush () |
virtual IList< PdfLayer > | GetLayers () |
Gets the list of all the layers currently registered in the OCProperties. More... |
|
![]() |
|
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 iText.Kernel.Pdf.PdfObjectWrapper< T > | SetModified () |
virtual bool | IsFlushed () |
Static Public Member Functions |
|
static bool | CheckDDictonaryFieldValue (PdfName field, PdfObject value) |
Checks if optional content group default configuration dictionary field value matches the required value for this field, if one exists. More... |
|
Package Functions |
|
override bool | IsWrappedObjectMustBeIndirect () |
Defines if the object behind this wrapper must be an indirect object in the resultant document. More... |
|
virtual void | RegisterLayer (PdfLayer layer) |
This method registers a new layer in the OCProperties. More... |
|
virtual PdfDocument | GetDocument () |
Gets the iText.Kernel.Pdf.PdfDocument that owns that OCProperties. More... |
|
![]() |
|
PdfObjectWrapper (T pdfObject) | |
virtual void | SetPdfObject (T pdfObject) |
virtual void | SetForbidRelease () |
virtual void | UnsetForbidRelease () |
virtual void | EnsureUnderlyingObjectHasIndirectReference () |
Additional Inherited Members |
|
![]() |
|
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... |
|
This class represents /OCProperties entry if pdf catalog and manages the layers of the pdf document.
This class represents /OCProperties entry if pdf catalog and manages the layers of the pdf document.
To be able to be wrapped with this iText.Kernel.Pdf.PdfObjectWrapper
|
inline |
Creates a new PdfOCProperties instance.
document | the document the optional content belongs to |
|
inline |
Creates a new PdfOCProperties instance by the dictionary it represents, the dictionary must be an indirect object.
ocPropertiesDict | the dictionary of optional content properties, must have an indirect reference. |
|
inlinevirtual |
Use this method to set a collection of optional content groups whose states are intended to follow a "radio button" paradigm.
Use this method to set a collection of optional content groups whose states are intended to follow a "radio button" paradigm. That is, the state of at most one optional content group in the array should be ON at a time: if one group is turned ON, all others must be turned OFF.
group | the radio group |
|
inlinestatic |
Checks if optional content group default configuration dictionary field value matches the required value for this field, if one exists.
field | default configuration dictionary field. |
value | value of that field. |
|
inlinevirtual |
Fills the underlying PdfDictionary object with the current layers and their settings.
Fills the underlying PdfDictionary object with the current layers and their settings. Note that it completely regenerates the dictionary, so your direct changes to the dictionary will not take any affect.
|
inlinevirtual |
Fills the underlying PdfDictionary object with the current layers and their settings.
Fills the underlying PdfDictionary object with the current layers and their settings. Note that it completely regenerates the dictionary, so your direct changes to the dictionary will not take any affect.
removeNonDocumentOcgs | the flag indicating whether it is necessary to delete OCGs not from the current document |
|
inlinepackagevirtual |
Gets the iText.Kernel.Pdf.PdfDocument that owns that OCProperties.
|
inlinevirtual |
Gets the list of all the layers currently registered in the OCProperties.
Gets the list of all the layers currently registered in the OCProperties. Note that this is just a new list and modifications to it will not affect anything.
|
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 >.
|
inlinepackagevirtual |
This method registers a new layer in the OCProperties.
layer | the new layer |