Find Image in PDF
This is pre-built Action located under the @Generic Element Name. It instructs the Avo Assure Client to check whether image is present in provided PDF path and save the result in the given output variable.
Syntax
Input: <PDF_file_path>;<Image_file_path>
Output: <Dynamic Variable>(Optional);<Dynamic Variable>(Optional)

Usecase/Example

Scenario: Verifying Images in a PDF Document
When you are testing a document management system that allows users to upload and view PDF files. It’s essential to verify that specific images are present in the PDF after upload.
Input
PDF Document: uploadedDocument.pdf
Image to Find: logo.png
Using the Action:
In the automation script, the "Find Image in PDF" Action is used to check if the specified image exists in the PDF document. The test verifies whether the image is found within the PDF. If the image is not present, the test will fail.
Expected Result
By using the "Find Image in PDF" Action in this testing scenario, Avo Automation ensures that important images are correctly included in the PDF document, maintaining the integrity of user-uploaded files.
Output
The resulting lowercase string is stored in the {result} output variable as [email protected], which can be utilized for display or other purposes.
Last updated
Was this helpful?