Skip to content

PDFcompare function

This function is used to compare two pdf files on the basis of text. The result will be stored in a variable defined in element key. If both the files are same it will return true else it will return false.

Syntax: ${__pdfcompare(First file path,second file path)}

Edit parameter section and click on Form, select functions from the dropdown and select PDFCOMPARE function. Provide first PDF file path and second PDF file path and click on save icon.

After completing this step, step will look as below:

Example: ${__pdfcompare(D:SampleFiles_for_BBSamplePDFssample-tables.pdf,D:testdatafilessample-tables.pdf)}

Here, D:SampleFiles_for_BBSamplePDFssample-tables.pdf is the first pdf file path D:testdatafilessample-tables.pdf is the second pdf file path.

Back To Top