Interface PDFInputOperation

  • All Known Implementing Classes:
    PDFInputOperator

    public interface PDFInputOperation
    Various operations required for PDF input files.
    • Method Detail

      • getPageCount

        int getPageCount​(byte[] fileBytes)
                  throws IOException
        Get 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.