Package com.mindee.pdf
Class PDFInputOperator
- java.lang.Object
-
- com.mindee.pdf.PDFInputOperator
-
- All Implemented Interfaces:
PDFInputOperation
public final class PDFInputOperator extends Object implements PDFInputOperation
Allows performing various operations on PDFs.
-
-
Constructor Summary
Constructors Constructor Description PDFInputOperator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetPageCount(byte[] fileBytes)Get the number of pages in a PDF file.booleanisPDF(byte[] fileBytes)Returns true if the file is a PDF.SplitPDFsplit(byte[] fileBytes, PageOptions pageOptions)Split a PDF file.
-
-
-
Method Detail
-
split
public SplitPDF split(byte[] fileBytes, PageOptions pageOptions) throws IOException
Description copied from interface:PDFInputOperationSplit a PDF file.- Specified by:
splitin interfacePDFInputOperation- Parameters:
fileBytes- A byte array representing a PDF.- Throws:
IOException
-
getPageCount
public int getPageCount(byte[] fileBytes) throws IOExceptionDescription copied from interface:PDFInputOperationGet the number of pages in a PDF file.- Specified by:
getPageCountin interfacePDFInputOperation- Parameters:
fileBytes- A byte array representing a PDF.- Throws:
IOException
-
isPDF
public boolean isPDF(byte[] fileBytes)
Returns true if the file is a PDF.- Specified by:
isPDFin interfacePDFInputOperation- Parameters:
fileBytes- A byte array representing a PDF.
-
-