Class OptionalContentGroup
Container for drawable objects that can be drawn on a page as part of Optional Content Group. Please see the PDF specification and Example_47 for more details.
public class OptionalContentGroup
- Inheritance
-
OptionalContentGroup
- Inherited Members
Remarks
Author: Mark Paxton
Constructors
OptionalContentGroup(PDF, string)
Creates an optional content group, also called a layer.
public OptionalContentGroup(PDF pdf, string name)
Parameters
Methods
Add(IDrawable)
Adds a drawable to this group.
public OptionalContentGroup Add(IDrawable drawable)
Parameters
drawableIDrawable
Returns
Clear()
Removes all drawables from this group.
public OptionalContentGroup Clear()
Returns
DrawOn(Page)
Draws this group and its drawables on the specified page.
public float[] DrawOn(Page page)
Parameters
pagePage
Returns
- float[]
the largest x and y coordinates of the bottom right corners of the drawables in this group.
GetComponents()
Returns the drawables in this group.
public List<IDrawable> GetComponents()
Returns
GetName()
Returns the name of this group.
public string GetName()
Returns
SetExportable(bool)
Sets whether this group is exported.
public OptionalContentGroup SetExportable(bool exportable)
Parameters
exportablebool
Returns
SetPrintable(bool)
Sets whether this group is printed. In a PDF/UA or PDF/A document every group that is shown is printed: they have no setting for a group that is not, and the viewers print what they show.
public OptionalContentGroup SetPrintable(bool printable)
Parameters
printablebool
Returns
SetVisible(bool)
Sets whether this group is visible.
public OptionalContentGroup SetVisible(bool visible)
Parameters
visiblebool