Class RemoveBlankPages

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

public class RemoveBlankPages extends Object implements org.jpedal.manipulator.Manipulation
Detects and removes blank pages.
  • Constructor Details

    • RemoveBlankPages

      public RemoveBlankPages(PdfManipulator pdfManipulator, PdfOptimizer pdfOptimizer, boolean includeHiddenLayers)
      Remove all blank/empty pages from the document.
      Parameters:
      pdfManipulator - the PdfManipulator object for the currently loaded document
      pdfOptimizer - the PdfOptimizer object for the currently loaded document
      includeHiddenLayers - boolean to determine whether to enable hidden layers for the page render. If true: render the page with the default layer states, if the layer contains content, but it’s turned off, then it does not contribute to the isPageBlank() test. If false: render the page but turn all layers on, so they all contribute to the isPageBlank() test.