Type | Name and description |
---|---|
static boolean |
compareAllPages(java.lang.String file1, java.lang.String file2, java.lang.Object excludePattern) Compares all pages of two given PDF documents. |
static boolean |
compareByPixel(java.lang.String file1, java.lang.String file2, int startPage, int endPage, boolean highlightImageDifferences, boolean showAllDifferences) Compare pages in range of 2 PDF documents pixel by pixel for the content and format. |
static boolean |
compareFromPage(java.lang.String file1, java.lang.String file2, int startPage, java.lang.Object excludePattern) Compares two given pdf documents from a specified page. |
static boolean |
compareInPageRange(java.lang.String file1, java.lang.String file2, int startPage, int endPage, java.lang.Object excludePattern) Compares two given PDF documents in a specified page range. |
static java.util.List<java.lang.String> |
extractAllImages(java.lang.String file) Extract all the embedded images from the pdf document |
static java.util.List<java.lang.String> |
extractImagesFromPage(java.lang.String file, int startPage) Extract all the embedded images from the specified PDF pages |
static java.util.List<java.lang.String> |
extractImagesInPageRange(java.lang.String file, int startPage, int endPage) Extract all the embedded images from PDF pages in range |
static java.lang.String |
getAllText(java.lang.String file) Get all the content of the document as plain text. |
static int |
getPageNumber(java.lang.String file) Get the page count of the document. |
static java.lang.String |
getTextFromPage(java.lang.String file, int startPage) Get the content of a specified PDF page as plain text. |
static java.lang.String |
getTextInPageRange(java.lang.String file, int startPage, int endPage) Get the content of PDF pages in rage as plain text. |
static java.util.List<java.lang.String> |
saveAllPagesAsImages(java.lang.String file) Save each page of the PDF as image |
static java.util.List<java.lang.String> |
savePageAsImage(java.lang.String file, int startPage) Save PDF pages from a specified page as images |
static java.util.List<java.lang.String> |
savePageRangeAsImages(java.lang.String file, int startPage, int endPage) Save PDF pages in range as images |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(), java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Compares all pages of two given PDF documents. Note : TEXT_MODE : Compare 2 pdf documents contents with no formatting. VISUAL_MODE : Compare 2 pdf documents pixel by pixel for the content and format.
file1
- Absolute file path of the expected filefile2
- Absolute file path of the actual fileexcludePattern
- The strings need to exclude from the comparisonCompare pages in range of 2 PDF documents pixel by pixel for the content and format.
file1
- Absolute file path of the expected filefile2
- Absolute file path of the actual filestartPage
- Starting page number of the documentendPage
- Ending page number of the documenthighlightImageDifferences
- To highlight differences in the imagesshowAllDifferences
- To compare all the pages of the PDF (by default as soon as a mismatch is found in a page, this method exits)Compares two given pdf documents from a specified page. Note : TEXT_MODE : Compare 2 pdf documents contents with no formatting. VISUAL_MODE : Compare 2 pdf documents pixel by pixel for the content and format.
file1
- Absolute file path of the expected filefile2
- Absolute file path of the actual filestartPage
- Starting page number of the documentexcludePattern
- The strings need to exclude from the comparisonCompares two given PDF documents in a specified page range. Note : TEXT_MODE : Compare 2 pdf documents contents with no formatting. VISUAL_MODE : Compare 2 pdf documents pixel by pixel for the content and format.
file1
- Absolute file path of the expected filefile2
- Absolute file path of the actual filestartPage
- Starting page number of the documentendPage
- Ending page number of the documentexcludePattern
- The strings need to exclude from the comparisonExtract all the embedded images from the pdf document
file
- Absolute file path of the fileExtract all the embedded images from the specified PDF pages
file
- Absolute file path of the filestartPage
- Starting page number of the documentExtract all the embedded images from PDF pages in range
file
- Absolute file path of the filestartPage
- Starting page number of the documentendPage
- Ending page number of the documentGet all the content of the document as plain text.
file
- Absolute file pathGet the page count of the document.
file
- Absolute file pathGet the content of a specified PDF page as plain text.
file
- Absolute file pathstartPage
- Starting page number of the documentGet the content of PDF pages in rage as plain text.
file
- Absolute file pathstartPage
- Starting page number of the documentendPage
- Ending page number of the documentSave each page of the PDF as image
file
- Absolute file path of the fileSave PDF pages from a specified page as images
file
- Absolute file path of the filestartPage
- Starting page number of the documentSave PDF pages in range as images
file
- Absolute file path of the filestartPage
- Starting page number of the documentendPage
- Ending page number of the document