Compare PDFs

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 save the result in dynamic variable.

Syntax

Input: <PDF_file_path1>;<PDF_file_path2>;<selective/all(optional)>;<pagewise/complete(Optional)>

Argument
Description

<PDF_file_path1> (Required)

Specify the first PDF file path to compare.

<PDF_file_path2> (Required)

Specify the second PDF file path to compare with first PDF file

<selective/all> (Optional)

Optional extraction mode: • all – stores entire file content in dynamic variable • selective – stores only specific parts in dynamic variable

<pagewise/complete> (Optional)

Optional comparison mode: • pagewise – compares pages one-to-one (default) • complete – compares each page of PDF1 with all pages of PDF2

Output Value

Argument
Description

<Dynamic Variable>

This variable holds the comparison result (e.g., added/deleted content)

<Dynamic Variable>

This variable stores the status as True or False

Example

Performs content comparison between two PDF documents using the selected mode

The Compare PDFs action takes the value from the Input Value column (e.g., C:\Docs\original.pdf;C:\Docs\updated.pdf;all;pagewise) and compares the content of the specified PDF files based on the chosen comparison type. The result of the comparison operation is stored in the {Compare} variable, while the execution status is stored in the {Status} variable, with the following possible values:

  • True – if the PDFs are compared successfully.

  • False – if the PDFs differ or if an error occurs during comparison.

Last updated

Was this helpful?