Bus errorとSegmentation faultに困ったら見るブログ

物理の研究者による日々の研究生活のメモ書きです ( python/emacs/html/Japascript/シェルスクリプト/TeX/Mac/C言語/Linux/git/tmux/R/ポケモンGO)

【Mac】pdfのdiffを取りたい

ないかなぁ〜と思ってググったらあった。

■ 過去記事 : macでpdfのdiffをとりたい


インストールはmac portでやった

diff-pdf -v -s --output-diff=output.pdf --channel-tolerance=100 hoge1.pdf hoge2.pdf
で差分のみのpdfを生成できる

ただ、色が見にくいんだよなぁ・・・・

ヘルプを見た感じ、色を変更するオプションはなかった

  • mをつけると、左端にどこに差があるのか赤色の付箋みたいなのを付けてくれるがあんまりいらないと思う
    % diff-pdf --help

Usage: diff-pdf [-h] [-v] [-s] [-m] [--output-diff ] [--channel-tolerance ] [--view] file1.pdf file2.pdf

  • h, --help show this help message
  • v, --verbose be verbose
  • s, --skip-identical only output pages with differences
  • m, --mark-differences additionally mark differences on left side
    • output-diff= output differences to given PDF file
    • channel-tolerance= consider channel values to be equal if within specified tolerance
    • view view the differences in a window

ランキング参加中です

↓クリックしていただけると嬉しいです〜