Tosca provides us with a standard module to perform compare pdf. This function supports two pdf files to be compared automatically with each other. If any differences are found they are shown in ExecutionLog after the test execution.