Method Summary |
|
public void | addChild(PdfLayer child) Adds a child layer. |
public static PdfLayer | createTitle(String title, PdfWriter writer) Creates a title layer. |
public ArrayList | getChildren() Gets the children layers. |
public PdfLayer | getParent() Gets the parent layer. |
public PdfObject | getPdfObject() Gets the dictionary representing the layer. |
public PdfIndirectReference | getRef() Gets the PdfIndirectReference that represents this layer. |
String | getTitle() |
public boolean | isOn() Gets the initial visibility of the layer. |
public boolean | isOnPanel() |
public void | setCreatorInfo(String creator, String subtype) Used by the creating application to store application-specific
data associated with this optional content group.
Parameters: creator - a text string specifying the application that created the group Parameters: subtype - a string defining the type of content controlled by the group. |
public void | setExport(boolean export) Specifies the recommended state for content in this
group when the document (or part of it) is saved by a viewer application to a format
that does not support optional content (for example, an earlier version of
PDF or a raster image format). |
public void | setLanguage(String lang, boolean preferred) |
public void | setName(String name) Sets the name of this layer. |
public void | setOn(boolean on) Sets the initial visibility of the layer. |
public void | setOnPanel(boolean onPanel) Sets the visibility of the layer in Acrobat's layer panel. |
public void | setPrint(String subtype, boolean printstate) |
public void | setView(boolean view) Indicates that the group should be set to that state when the
document is opened in a viewer application. |
public void | setZoom(float min, float max) Specifies a range of magnifications at which the content
in this optional content group is best viewed.
Parameters: min - the minimum recommended magnification factors at which the groupshould be ON. |