Compare PDFs
Last updated
Last updated
The Compare PDFs action in the Avo Assure is found under the @Generic Element is used to compare two provided PDF files. The results of this comparison highlight the differences or similarities between the files and store the result in an output variable.
Input: <PDF_file_path1>;<PDF_file_path2>;<selective/all(optional)>;<pagewise/complete (Optional)>
1. Selective/all: By default, the final argument is set to ‘all,’ which stores the entire file's content in the output variable. If changed to ‘selective’ only specific parts of the file will be stored in the output variable.
2. Pagewise : When the user selects ‘pagewise’ as the last argument, the comparison will be performed page by page (e.g., page 1 of PDF1 will be compared with page 1 of PDF2, page 2 of PDF 1 will be compared with page 2 of PDF2). By default, the last argument in the syntax will be set to ‘pagewise.’
3. Complete: when the user selects ‘complete’ as the last argument, the comparisonThis specifies that the comparison must be done with all pages (page 1 of PDF1 must be compared with all pages of PDF2, page 2 of PDF1 must be compared with all pages of PDF2, and so on).
Output :<Dynamic Variable>(Optional);<Dynamic Variable>(Optional)
Note:
Table content within PDFs is not supported, it might show inconsistencies in result.
Empty pages or text not supported in compare PDFs.
Indicates any page-specific comparison results, if available.
Modification appear as follows:
1. Added content is displayed as ||++<content>++||
2. Deleted content is displayed as ||--<content>--||
A bank has two versions of a loan agreement PDF, a draft and a final version. During testing, they want to ensure no terms were accidentally changed in the final version. Avo Assure compares the two PDFs and highlights any differences, like:
Interest rates
Loan term duration
Formatting issues (like text alignment or font size)
Input: Provide two PDF paths correctly shows in below (Separate them with semicolon (;)):
C:\Users\ankita.bhogade\OneDrive - SLK Software Pvt Ltd\Documents\PDF\Data Parameterization.pdf ; C:\Users\ankita.bhogade\OneDrive - SLK Software Pvt Ltd\Documents\PDF\Ankita Bhogade (APU).pdf
Output: The Compare PDFs action stores the differences (such as added or deleted content) in the 1st output variable that is {result}, while the {status} (True or False) of the action is stored in the 2nd output variable, which can be used for display or other purposes.