Skip to content

mrdiff 0.2.0

Choose a tag to compare

@github-actions github-actions released this 13 Sep 08:01
· 37 commits to main since this release

PDF

mrdiff a.pdf b.pdf compares PDFs page by page and says where on the page — in millimetres, not pixels.

PDFs differ — 1 of 12 pages
p.7  2 regions
     top 107 mm, left 25 mm, 71 × 14 mm
     top 205 mm, left 106 mm, 21 × 21 mm
p.13  only in B
  • Pages are paired by number; extra pages are listed, not compared. A page whose paper size differs is reported and not compared further.
  • Rendered at 72 dpi on white. --tolerance works as for images; --ignore-alpha is refused (nothing to apply to).
  • --json gains kind: "pdf" with pages[] and regions[] in mm. Nothing existing changed.

--help and --lang

  • mrdiff --help — every option, one line each.
  • --lang=en|ja — same as MRDIFF_LANG, for one run. mrdiff --help --lang=ja shows the help in Japanese. The OS locale is still never consulted.

PDF(日本語)

mrdiff a.pdf b.pdf で PDF をページごとに比べ、そのページのどこかを画素ではなく mm で言います。ページは番号で対にし、余ったページは列挙するだけで比べません。紙の大きさが違うページはそう言って、それ以上比べません。--json には kind: "pdf" が増え、既存の形は変わっていません。

--help と --lang

mrdiff --help でオプションの一覧(1 つ 1 行)。--lang=ja は MRDIFF_LANG=ja と同じで 1 回きり。mrdiff --help --lang=ja で日本語の一覧が出ます。


sha256: 8725f25221c76b2c1df2bf926f8246fa351a3b5cb0ac2217864c0555bc886692