public class

PdfLayerUtils

extends Object
java.lang.Object
   ↳ com.pdftron.pdf.dialog.pdflayer.PdfLayerUtils

Class Overview

Utility for PDF layer.

Summary

Public Constructors
PdfLayerUtils()
Public Methods
static boolean getChecked(PDFViewCtrl pdfViewCtrl, Group group)
Gets the checked state of the OCG layer group.
static ArrayList<PdfLayer> getLayers(PDFViewCtrl pdfViewCtrl, PDFDoc pdfDoc)
Gets the ordered OCG layer.
static boolean hasPdfLayer(PDFDoc doc)
static void setLayerCheckedChange(PDFViewCtrl pdfViewCtrl, Group group, boolean checked)
Sets the checked state of the OCG layer group.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public PdfLayerUtils ()

Public Methods

public static boolean getChecked (PDFViewCtrl pdfViewCtrl, Group group)

Gets the checked state of the OCG layer group.

Parameters
pdfViewCtrl the PDFViewCtrl
group the PDFDoc
Returns
  • true if OCG layer group is checked, false otherwise.

public static ArrayList<PdfLayer> getLayers (PDFViewCtrl pdfViewCtrl, PDFDoc pdfDoc)

Gets the ordered OCG layer.

Parameters
pdfViewCtrl the PDFViewCtrl
pdfDoc the PDFDoc
Returns
  • An array list of ordered OCG layers.

public static boolean hasPdfLayer (PDFDoc doc)

public static void setLayerCheckedChange (PDFViewCtrl pdfViewCtrl, Group group, boolean checked)

Sets the checked state of the OCG layer group.

Parameters
pdfViewCtrl the PDFViewCtrl
group the OCG group
checked true if layer is checked, false otherwise