Class PdfDocumentStatistics
java.lang.Object
com.northconcepts.datapipeline.pdf.PdfDocumentStatistics
Page, image and text statistics of a
PdfDocument.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the total stream length in bytes of the images counted bygetImageCount().longReturns the number of images in the pages' resources; an image shared by several pages is counted once per page.longlongReturns the total size in bytes of the text extracted from all pages, encoded with the platform default charset.longReturns the number of distinct images, identified by their page resource name and file suffix.setImageBytes(long imageBytes) Sets the total stream length in bytes of the images counted bygetImageCount().setImageCount(long imageCount) Sets the number of images in the pages' resources; an image shared by several pages is counted once per page.setPageCount(long pageCount) setTextBytes(long textBytes) Sets the total size in bytes of the text extracted from all pages, encoded with the platform default charset.setUniqueImages(long uniqueImages) Sets the number of distinct images, identified by their page resource name and file suffix.
-
Constructor Details
-
PdfDocumentStatistics
public PdfDocumentStatistics()
-
-
Method Details
-
getPageCount
public long getPageCount() -
setPageCount
-
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
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
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 bygetImageCount(). -
setImageBytes
Sets the total stream length in bytes of the images counted bygetImageCount(). -
getTextBytes
public long getTextBytes()Returns the total size in bytes of the text extracted from all pages, encoded with the platform default charset. -
setTextBytes
Sets the total size in bytes of the text extracted from all pages, encoded with the platform default charset.
-