The Qpdf package contains command-line programs and a library that does structural, content-preserving transformations on PDF files.
![[Note]](../images/note.png) 
          Development versions of BLFS may not build or run some packages properly if LFS or dependencies have been updated since the most recent stable versions of the books.
Download (HTTP): https://github.com/qpdf/qpdf/releases/download/v12.2.0/qpdf-12.2.0.tar.gz
Download MD5 sum: f10f5b3a0635e9fd2f305880c5cd8534
Download size: 19 MB
Estimated disk space required: 333 MB (with tests)
Estimated build time: 0.5 SBU (using parallelism=4; add 0.9 SBU for tests)
ghostscript-10.06.0, GnuTLS-3.8.10, libtiff-4.7.1, sphinx-8.2.3 with sphinx_rtd_theme-3.0.2, and texlive-20250308 or install-tl-unx
Install Qpdf by running the following commands:
mkdir build &&
cd    build &&
cmake -D CMAKE_INSTALL_PREFIX=/usr \
      -D CMAKE_BUILD_TYPE=Release  \
      -D BUILD_STATIC_LIBS=OFF     \
      -D CMAKE_INSTALL_DOCDIR=/usr/share/doc/qpdf-12.2.0 \
      .. &&
make
        To test the results, issue: ctest.
          Now, as the root user:
        
make install