Is it possible to use FileMerge to compare pdf files.
I found a post that describes the process, but after following every step I just can’t seem to be able to compare two simple pdf files.
The preference for FileMerge look like this:
Image may be NSFW.
Clik here to view.
And the script I wrote under $HOME/Local/bin
is simply:
#!/bin/sh
pdftotext -layout -nopgbrk -enc UTF-8 "$1" - | iconv -c -f UTF-8 -t MacRoman
even though I have also tried to replace pdftotext
by xpdf-pdftotext
as per one of the last comments in that post.
FileMerge tells me the two files I’m trying to compare are equal, but they’re clearly not.