Package org.jpedal.manipulator
Class RemoveBlankPages
java.lang.Object
org.jpedal.manipulator.RemoveBlankPages
- All Implemented Interfaces:
org.jpedal.manipulator.Manipulation
Detects and removes blank pages.
-
Constructor Summary
ConstructorsConstructorDescriptionRemoveBlankPages(PdfManipulator pdfManipulator, PdfOptimizer pdfOptimizer, boolean includeHiddenLayers) Remove all blank/empty pages from the document. -
Method Summary
-
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 documentpdfOptimizer- the PdfOptimizer object for the currently loaded documentincludeHiddenLayers- boolean to determine whether to enable hidden layers for the page render. Iftrue: render the page with the default layer states, if the layer contains content, but it’s turned off, then it does not contribute to theisPageBlank()test. Iffalse: render the page but turn all layers on, so they all contribute to theisPageBlank()test.
-