Class IsolatePage

java.lang.Object
org.jpedal.manipulator.IsolatePage
All Implemented Interfaces:
Manipulation

public class IsolatePage extends Object implements Manipulation
Removes all pages, expect those specified, from a document
  • Constructor Summary

    Constructors
    Constructor
    Description
    IsolatePage(PdfOptimizer pdfOptimizer, PageRanges pages)
    Removes all pages from the document except the pages in the specified page range.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    apply(org.jpedal.io.annotation.utils.AnnotInfo info)
    Applies the manipulation to the current document

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • IsolatePage

      public IsolatePage(PdfOptimizer pdfOptimizer, PageRanges pages)
      Removes all pages from the document except the pages in the specified page range.
      Parameters:
      pdfOptimizer - the PdfOptimizer object for the currently loaded document
      pages - the pages to keep
  • Method Details

    • apply

      public void apply(org.jpedal.io.annotation.utils.AnnotInfo info) throws IOException
      Description copied from interface: Manipulation
      Applies the manipulation to the current document
      Specified by:
      apply in interface Manipulation
      Parameters:
      info - the AnnotInfo object for the currently loaded document
      Throws:
      IOException - if the manipulation cannot be applied to the document