We are building a new experience for our SmartBear Community.
This site is now read-only. You can still browse and search as usual. Learn More

Forum Discussion

SuperTester's avatar
SuperTester
Contributor
7 years ago
Solved

Modifying a script to compare PDF's

Hi!   I have a script that uses Acrobat DC to perform a PDF comparison. I need to add two more steps in the script in order to make a effective comparison. I'm not sure how to correctly map to th...
  • maximojo's avatar
    7 years ago

    Hi Kahle

     

    Personally I would not do it that way. Smartbear have a whole example on how to compare using pdfbox

     

    https://support.smartbear.com/articles/testcomplete/testing-pdf-files-with-testcomplete

     

    Images

    https://support.smartbear.com/articles/testcomplete/testing-pdf-files-with-testcomplete#Comparing_imgs

     

    I have used this before (comparing both image and text) and you can pretty much copy/paste the examples and setup as described and it "just works"! I used it to compare hundreds of pdf reports in a single test run (the reports were for a legacy app where you couldn't generate any other kind of format).

     

    If you still want to use your original solution though this page might help where they mention exposing more of the adobe reader properties with MSAA (though the article is from 2016)

    https://support.smartbear.com/viewarticle/65847/

     

    m