Class OptionalContentGroup

java.lang.Object
net.atthegate.server.service.pdf.OptionalContentGroup

public class OptionalContentGroup extends Object
Container for drawable objects that can be drawn on a page as part of Optional Content Group. Please see the PDF specification and Example_30 for more details.
  • Field Details

    • name

      protected String name
    • ocgNumber

      protected int ocgNumber
    • objNumber

      protected int objNumber
    • visible

      protected boolean visible
    • printable

      protected boolean printable
    • exportable

      protected boolean exportable
  • Constructor Details

    • OptionalContentGroup

      public OptionalContentGroup(String name)
  • Method Details

    • add

      public void add(Drawable d)
    • setVisible

      public void setVisible(boolean visible)
    • setPrintable

      public void setPrintable(boolean printable)
    • setExportable

      public void setExportable(boolean exportable)
    • drawOn

      public void drawOn(Page p) throws Exception
      Throws:
      Exception