Skip to main content
Participating Frequently
Jul 17, 2024 6:50 PM UTC
Question

Which API would be best suited to check if two pdf files are the same?

I have a use case in which multiple PDF files are uploaded. I want to make sure no duplicate files get uploaded based on all the documents that have already been uploaded. What would be the best way to achieve this? Thank you.

    This topic is closed to new replies. Start a new post to keep the conversation going.

    3 replies

    Joel Geraci
    Community Expert
    Community Expert
    Jul 18, 2024 3:23 PM UTC

    We don't have an API for that. However, the safest way to detect duplicate PDF files is to convert each page to a high resolution image then compare the images page by page. There are many tools that will help you do that. 

    Translate
    Participating Frequently
    Jul 22, 2024 10:10 PM UTC

    That sounds quite computationally expensive. Are there any other approaches that you might recommend? Also, for the above approach, any tools that. you recommend? Thank you @Joel Geraci 

     

    Translate
    Participating Frequently
    Jul 29, 2024 2:42 PM UTC

    Just wanted to check in again @Joel Geraci. Thanks

    Translate