Snapshot của vslavik/diff-pdf: 4.3k★ · C++. A simple tool for visually comparing two PDF files
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
Note: this repository is provided as-is and the code is not being actively
developed. If you wish to improve it, that's greatly appreciated: please make
the changes and submit a pull request, I'll gladly merge it or help you out
with finishing it. However, please do not expect any kind of support, including
implementation of feature requests or fixes. If you're not a developer and/or
willing to get your hands dirty, this tool is probably not for you.
Usage
diff-pdf is a tool for visually comparing two PDFs.
It takes two PDF files as arguments. By default, its only output is its return
code, which is 0 if there are no differences and 1 if the two PDFs differ. If
given the --output-diff option, it produces a PDF file with visually
highlighted differences:
$ diff-pdf --output-diff=diff.pdf a.pdf b.pdf
Another option is to compare the two files visually in a simple GUI, using
the --view argument:
$ diff-pdf --view a.pdf b.pdf
This opens a window that lets you view the files' pages and zoom in on details.
It is also possible to shift the two pages relatively to each other using
Ctrl-arrows (Cmd-arrows on MacOS). This is useful for identifying translation-only differences.
You can also use Ctrl+< and Ctrl+> (Cmd+< and Cmd+> on MacOS) show the left and right documents respecively. Ctrl+D to return back to the diff view.
See the output of $ diff-pdf --help for complete list of options.
Obtaining the binaries
Precompiled version of the tool for Windows is available as part of
the latest release
as a ZIP archive, which contains everything you need to run diff-pdf. It will
work from any place you unpack it to.
Alternatively, if you use Chocolatey, you can install
diff-pdf on Windows with:
$ choco install diff-pdf
On Mac, if you use Homebrew, you can use it to install diff-pdf with it:
$ brew install diff-pdf
On Mac, if you use Macports, you can install diff-pdf with:
$ port install diff-pdf
On Fedora and CentOS 8:
$ sudo dnf install diff-pdf
Precompiled version for openSUSE can be downloaded from the
openSUSE build service.
Compiling from sources
The build system uses Automake and so a Unix or Unix-like environment (Cygwin
or MSYS) is required. Compilation is done in the usual way:
$ ./bootstrap
$ ./configure
$ make
$ make install
(Note that the first step, running the ./bootstrap script, is only required
when building sources checked from version control system, i.e. when configure
and Makefile.in files are missing.)
As for dependencies, diff-pdf requires the following libraries:
$ sudo port install automake autoconf wxWidgets-3.0 poppler cairo pkgconfig
Note that many more libraries are required on Windows, where none of the
libraries Cairo and Poppler use are normally available. At the time of writing,
transitive cover of the above dependencies included fontconfig, freetype, glib,
libpng, pixman, gettext, libiconv, libjpeg and zlib.
Compiling on Windows using MSYS + MinGW
First of all, you will need working MinGW installation with MSYS2 environment
and C++ compiler. Install MSYS2 by following their instructions.
Once installed, launch the MSYS2 MinGW shell. It will open a terminal window;
type cd /c/directory/with/diff-pdf to go to the directory with diff-pdf
sources.
You will need to install additional MSYS components that are not normally
included with MSYS, using these commands:
$ pacman -Syu
$ pacman -S automake autoconf pkg-config make zip pactoys
$ pacboy -S gcc:p poppler:p wxWidgets:p
Build diff-pdf in the same way as in the instructions for Unix above:
$ ./bootstrap # only if building from git repository
$ ./configure
$ make
To build a ZIP archive will all DLLs, run
$ make windows-dist
Installing
On Unix, the usual make install is sufficient.
On Windows, installation is not necessary, just copy the files somewhere. If
you built it following the instructions above, all the necessary files will be
in the created ZIP archive.
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/vslavik/diff-pdf là nguồn chính thức.
vslavik/diff-pdf có bao nhiêu sao?
vslavik/diff-pdf có 4.3k sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/vslavik/diff-pdf. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
vslavik/diff-pdf có những chủ đề gì?
GitHub topics của vslavik/diff-pdf: "pdf". TopGit xếp repo vào nhóm mã nguồn mở.
vslavik/diff-pdf có phải mã nguồn mở không?
Có — vslavik/diff-pdf phát hành theo license GPL-2.0, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/vslavik/diff-pdf.
vslavik/diff-pdf có trang demo không?
Dự án có trang chủ ở http://vslavik.github.io/diff-pdf. Tab "Readme" ở trang này thường có ảnh chụp và hướng dẫn bắt đầu nhanh.
vslavik/diff-pdf còn đang phát triển không?
Commit gần nhất trên vslavik/diff-pdf là 9 ngày trước (theo timestamp GitHub). Repo có 265 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
Đọc đầy đủ README ở tab phía trên.
diff-pdf có đáng để bạn bỏ thời gian?
ChatGPT, Claude và Perplexity đều đọc được trang này. Hỏi thử xem họ nghĩ gì về diff-pdf.