Class DocumentLength

java.lang.Object
edu.odu.cs.cs350.DocumentLength

public class DocumentLength extends Object
Checks if a PDF file is less than 50 pages. This makes sure the program only accepts small documents.
  • Constructor Details

    • DocumentLength

      public DocumentLength()
  • Method Details

    • isValidLength

      public static boolean isValidLength(File file)
      Return true if the PDF has less than 50 pages.
      Parameters:
      file - the PDF file
      Returns:
      true if under 50 pages, false otherwise