qpdf/11.1.1

QPDF is a command-line tool and C++ library that performs content-preserving transformations on PDF files.
Recipe info
2023-10-01

Available packages
Linux
Windows
macOS
macOS Apple Silicon

Install
Add the following line to your conanfile.txt:
[requires]
qpdf/11.1.1

Using qpdf

Note

If you are a new Conan user, we recommend reading the how to consume packages tutorial.

If you need additional assistance, please ask a question in the Conan Center Index repository.

Simplest use case consuming this recipe and assuming CMake as your local build tool:

[requires]
qpdf/11.1.1
[generators]
CMakeDeps
CMakeToolchain
[layout]
cmake_layout
from conan import ConanFile
from conan.tools.cmake import cmake_layout


class ExampleRecipe(ConanFile):
    settings = "os", "compiler", "build_type", "arch"
    generators = "CMakeDeps", "CMakeToolchain"

    def requirements(self):
        self.requires("qpdf/11.1.1")

    def layout(self):
        cmake_layout(self)

Now, you can run this Conan command to locally install (and build if necessary) this recipe and its dependencies (if any):

$ conan install conanfile.txt --build=missing

Useful information to take into account to consume this library:


These are the main declared targets:

  • CMake package name(s): qpdf
  • CMake target name(s): qpdf::libqpdf
  • libqpdf => qpdf::libqpdf
    
  • pkg-config file name(s): libqpdf.pc
  • libqpdf => libqpdf.pc
    

A simple use case using the CMake file name and the global target:

# ...
find_package(qpdf REQUIRED)
# ...
target_link_libraries(YOUR_TARGET qpdf::libqpdf)

These are all the available headers. Some of these ones might be non-public; make sure of it by visiting the qpdf homepage listed above:

#include "qpdf/Buffer.hh"
#include "qpdf/BufferInputSource.hh"
#include "qpdf/ClosedFileInputSource.hh"
#include "qpdf/Constants.h"
#include "qpdf/DLL.h"
#include "qpdf/FileInputSource.hh"
#include "qpdf/InputSource.hh"
#include "qpdf/JSON.hh"
#include "qpdf/PDFVersion.hh"
#include "qpdf/Pipeline.hh"
#include "qpdf/Pl_Buffer.hh"
#include "qpdf/Pl_Concatenate.hh"
#include "qpdf/Pl_Count.hh"
#include "qpdf/Pl_DCT.hh"
#include "qpdf/Pl_Discard.hh"
#include "qpdf/Pl_Flate.hh"
#include "qpdf/Pl_Function.hh"
#include "qpdf/Pl_OStream.hh"
#include "qpdf/Pl_QPDFTokenizer.hh"
#include "qpdf/Pl_RunLength.hh"
#include "qpdf/Pl_StdioFile.hh"
#include "qpdf/Pl_String.hh"
#include "qpdf/PointerHolder.hh"
#include "qpdf/QIntC.hh"
#include "qpdf/QPDF.hh"
#include "qpdf/QPDFAcroFormDocumentHelper.hh"
#include "qpdf/QPDFAnnotationObjectHelper.hh"
#include "qpdf/QPDFCryptoImpl.hh"
#include "qpdf/QPDFCryptoProvider.hh"
#include "qpdf/QPDFDocumentHelper.hh"
#include "qpdf/QPDFEFStreamObjectHelper.hh"
#include "qpdf/QPDFEmbeddedFileDocumentHelper.hh"
#include "qpdf/QPDFExc.hh"
#include "qpdf/QPDFFileSpecObjectHelper.hh"
#include "qpdf/QPDFFormFieldObjectHelper.hh"
#include "qpdf/QPDFJob.hh"
#include "qpdf/QPDFLogger.hh"
#include "qpdf/QPDFMatrix.hh"
#include "qpdf/QPDFNameTreeObjectHelper.hh"
#include "qpdf/QPDFNumberTreeObjectHelper.hh"
#include "qpdf/QPDFObjGen.hh"
#include "qpdf/QPDFObject.hh"
#include "qpdf/QPDFObjectHandle.hh"
#include "qpdf/QPDFObjectHelper.hh"
#include "qpdf/QPDFOutlineDocumentHelper.hh"
#include "qpdf/QPDFOutlineObjectHelper.hh"
#include "qpdf/QPDFPageDocumentHelper.hh"
#include "qpdf/QPDFPageLabelDocumentHelper.hh"
#include "qpdf/QPDFPageObjectHelper.hh"
#include "qpdf/QPDFStreamFilter.hh"
#include "qpdf/QPDFSystemError.hh"
#include "qpdf/QPDFTokenizer.hh"
#include "qpdf/QPDFUsage.hh"
#include "qpdf/QPDFWriter.hh"
#include "qpdf/QPDFXRefEntry.hh"
#include "qpdf/QTC.hh"
#include "qpdf/QUtil.hh"
#include "qpdf/RandomDataProvider.hh"
#include "qpdf/Types.h"
#include "qpdf/auto_job_c_att.hh"
#include "qpdf/auto_job_c_copy_att.hh"
#include "qpdf/auto_job_c_enc.hh"
#include "qpdf/auto_job_c_main.hh"
#include "qpdf/auto_job_c_pages.hh"
#include "qpdf/auto_job_c_uo.hh"
#include "qpdf/qpdf-c.h"
#include "qpdf/qpdfjob-c.h"
#include "qpdf/qpdflogger-c.h"