pdfsam icon indicating copy to clipboard operation
pdfsam copied to clipboard

Feature to compare two PDFs (#enhancement)

Open wandt0n opened this issue 3 years ago • 3 comments

I'd like to be able to compare two PDFs using PDFSam. My proposal:

  • Splitview
  • 3 distinct colors: Added, Removed, Changed
  • It should detect: Changed Text, changed size of embedded content (as comparing images pixel by pixel might be stressful)
  • It should ignore: Whitespaces, changes in font, changes in textstyle, pagebreaks, page numbers

That's just how I imagine such feature and I'd be glad to have this feature no matter the details.

wandt0n avatar Jun 08 '21 08:06 wandt0n

Comparing PDF documents is very complex and likely outside the design goals of PDFSam Basic. Maybe you'll want to consider DiffPDF ?.

mara004 avatar Jun 23 '21 19:06 mara004

Thanks for the suggestion. And yeah, I assumed that as well. But since I already use PDFSam and it is opensource (DiffPDF is not), I thought I'd just propose this. This issue may be closed by an active contributor. I actually compared ~10 products, both free and fee-based, and couldn't find any opensource tool that is actively maintained. There are some like from vslavik, but they just render both pdf's on top of each other and that is no use to me. So closed-source it is, apparently.

wandt0n avatar Jun 24 '21 09:06 wandt0n

(DiffPDF is not)

It used to be open-source (GPL). Linux distribution maintainers are now taking care of the codebase (they updated it to Qt5, for instance). If you are using a Debian-based distribution (e. g. Ubuntu 20.04), it should have DiffPDF available in the repository. Although not actively maintained, it works pretty well for me. For Windows, I think the last official open-source release (2.1.3) is still available as portable app. If you want the new Qt5 version, you'll have to build it from source, though.

mara004 avatar Jun 25 '21 14:06 mara004