iText 8.0.2 API
|
Content typically belongs to a single optional content group, and is visible when the group is ON and invisible when it is OFF. More...
Public Member Functions |
|
PdfLayerMembership (PdfDocument doc) | |
Creates a new, empty membership layer. More... |
|
PdfLayerMembership (PdfDictionary membershipDictionary) | |
Creates a new PdfLayerMembership instance by its PdfDictionary, which must be an indirect object. More... |
|
virtual ICollection< PdfLayer > | GetLayers () |
Gets the collection of the layers this layer membership operates with. More... |
|
virtual void | AddLayer (PdfLayer layer) |
Adds a new layer to the current layer membership. More... |
|
virtual void | SetVisibilityPolicy (PdfName visibilityPolicy) |
Sets the visibility policy for content belonging to this membership dictionary. More... |
|
virtual PdfName | GetVisibilityPolicy () |
Gets the visibility policy for content belonging to this optional content membership dictionary. More... |
|
virtual void | SetVisibilityExpression (PdfVisibilityExpression visibilityExpression) |
Sets the visibility expression for content belonging to this membership dictionary. More... |
|
virtual PdfVisibilityExpression | GetVisibilityExpression () |
Gets the visibility expression for content belonging to this optional content membership dictionary. More... |
|
virtual PdfIndirectReference | GetIndirectReference () |
Gets the PdfIndirectReference that represents this layer. 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 void | Flush () |
virtual bool | IsFlushed () |
![]() |
|
PdfDictionary | GetPdfObject () |
Gets the object representing the layer. More... |
|
Content typically belongs to a single optional content group, and is visible when the group is ON and invisible when it is OFF.
Content typically belongs to a single optional content group, and is visible when the group is ON and invisible when it is OFF. To express more complex visibility policies, content should not declare itself to belong to an optional content group directly, but rather to an optional content membership dictionary represented by this class.
To be able to be wrapped with this iText.Kernel.Pdf.PdfObjectWrapper
|
inline |
Creates a new, empty membership layer.
doc | a iText.Kernel.Pdf.PdfDocument where a new empty membership layer creates |
|
inline |
Creates a new PdfLayerMembership instance by its PdfDictionary, which must be an indirect object.
membershipDictionary | the membership dictionary, must have an indirect reference. |
|
inlinevirtual |
Adds a new layer to the current layer membership.
layer | the layer to be added |
|
inlinevirtual |
Gets the PdfIndirectReference
that represents this layer.
PdfIndirectReference
that represents this layer
Implements iText.Kernel.Pdf.Layer.IPdfOCG.
|
inlinevirtual |
Gets the collection of the layers this layer membership operates with.
|
inlinevirtual |
Gets the visibility expression for content belonging to this optional content membership dictionary.
|
inlinevirtual |
Gets the visibility policy for content belonging to this optional content membership dictionary.
|
inlinevirtual |
Sets the visibility expression for content belonging to this membership dictionary.
visibilityExpression | A (nested) array of which the first value is /And, /Or, or /Not followed by a series of indirect references to OCGs or other visibility expressions. |
|
inlinevirtual |
Sets the visibility policy for content belonging to this membership dictionary.
Sets the visibility policy for content belonging to this membership dictionary. Possible values are AllOn, AnyOn, AnyOff and AllOff. AllOn - Visible only if all of the entries are ON. AnyOn - Visible if any of the entries are ON. AnyOff - Visible if any of the entries are OFF. AllOff - Visible only if all of the entries are OFF. The default value is AnyOn.
visibilityPolicy | the visibility policy |