Table of Contents

Class OptionalContentGroup

Namespace
PDFjet.NET
Assembly
PDFjet.dll

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

pdf PDF
name string

Methods

Add(IDrawable)

Adds a drawable to this group.

public OptionalContentGroup Add(IDrawable drawable)

Parameters

drawable IDrawable

Returns

OptionalContentGroup

Clear()

Removes all drawables from this group.

public OptionalContentGroup Clear()

Returns

OptionalContentGroup

DrawOn(Page)

Draws this group and its drawables on the specified page.

public float[] DrawOn(Page page)

Parameters

page Page

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

List<IDrawable>

GetName()

Returns the name of this group.

public string GetName()

Returns

string

SetExportable(bool)

Sets whether this group is exported.

public OptionalContentGroup SetExportable(bool exportable)

Parameters

exportable bool

Returns

OptionalContentGroup

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

printable bool

Returns

OptionalContentGroup

SetVisible(bool)

Sets whether this group is visible.

public OptionalContentGroup SetVisible(bool visible)

Parameters

visible bool

Returns

OptionalContentGroup