Package com.mindee.pdf
Interface PDFInputOperation
-
- All Known Implementing Classes:
PDFInputOperator
public interface PDFInputOperationVarious operations required for PDF input files.
-
-
Method Summary
All Methods Instance Methods Abstract 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
SplitPDF split(byte[] fileBytes, PageOptions pageOptions) throws IOException
Split a PDF file.- Parameters:
fileBytes- A byte array representing a PDF.- Throws:
IOException
-
getPageCount
int getPageCount(byte[] fileBytes) throws IOExceptionGet the number of pages in a PDF file.- Parameters:
fileBytes- A byte array representing a PDF.- Throws:
IOException
-
isPDF
boolean isPDF(byte[] fileBytes)
Returns true if the file is a PDF.- Parameters:
fileBytes- A byte array representing a PDF.
-
-