Class PdfDocumentStatistics

java.lang.Object
com.northconcepts.datapipeline.pdf.PdfDocumentStatistics

public class PdfDocumentStatistics extends Object
Page, image and text statistics of a PdfDocument.
  • Constructor Details

    • PdfDocumentStatistics

      public PdfDocumentStatistics()
  • Method Details

    • getPageCount

      public long getPageCount()
    • setPageCount

      public PdfDocumentStatistics setPageCount(long pageCount)
    • getImageCount

      public long getImageCount()
      Returns the number of images in the pages' resources; an image shared by several pages is counted once per page.
    • setImageCount

      public PdfDocumentStatistics setImageCount(long imageCount)
      Sets the number of images in the pages' resources; an image shared by several pages is counted once per page.
    • getUniqueImages

      public long getUniqueImages()
      Returns the number of distinct images, identified by their page resource name and file suffix.
    • setUniqueImages

      public PdfDocumentStatistics setUniqueImages(long uniqueImages)
      Sets the number of distinct images, identified by their page resource name and file suffix.
    • getImageBytes

      public long getImageBytes()
      Returns the total stream length in bytes of the images counted by getImageCount().
    • setImageBytes

      public PdfDocumentStatistics setImageBytes(long imageBytes)
      Sets the total stream length in bytes of the images counted by getImageCount().
    • getTextBytes

      public long getTextBytes()
      Returns the total size in bytes of the text extracted from all pages, encoded with the platform default charset.
    • setTextBytes

      public PdfDocumentStatistics setTextBytes(long textBytes)
      Sets the total size in bytes of the text extracted from all pages, encoded with the platform default charset.