Producer: Acrobat Distiller 6.0 for Macintosh Output some information about a file: cpdf -info file.pdfĬreator: QuarkXPress: pictwpstops filter 1.0 Split a file into single-page files page001.pdf, page002.pdf etc: cpdf -split in.pdf -o page%%%.pdfĮncrypt a file with 128 bit AES encryption with an owner password but blank user password: cpdf -encrypt AES "pass" "" in.pdf -o out.pdf Merge some files together: cpdf one.pdf two.pdf three.pdf -o merged.pdf Select some pages from a file in.pdf and write to out.pdf: cpdf in.pdf 1-3,12-end -o out.pdf In all cases, on Microsoft Windows, substitute cpdf.exe for cpdf. A paper copy of the Command Line Tools manual can be obtained from Amazon for $9.99. NET API and for the Java API are also available.
The manuals for the C API and for the Python API and for the. User ManualĪ comprehensive user manual for the Command Line PDF tools can be found as a PDF document, or browsable online. You'll need to install the OCaml toolchain, and a couple of simple dependencies, but it's simple to build. Look at the source repository for cpdf, or for the C API, or for the Python API or for the. NET library is also on Nuget, but you will need the DLLs above too. To install the python library, in addition to the DLLs, you will need to run pip install pycpdflib.
Pre-built binaries are available for Windows, Mac OS 10.12 and later (x86 or ARM), Linux 32 bit Intel and Linux 64 bit Intel.ĭownload pre-built cpdf command line toolĭownload pre-built C/C++/Python/.NET API static and shared libraries Download binaries now for Windows, Mac, or Linux If you're still not sure if you need a license, ask Charities andĮducational institutions still require a license, but one may be obtained at Commercial use involves anything other than private, personal use. If you like the tools and want to use them commercially, or need support, licenses are available from Coherent Graphics Ltd. Now we're releasing the tools for free, under a special These tools have been available commercially since 2007, and are widely used in industry and government. Read and set document info and metadata.Merge PDF files together, or split them apart.
The Coherent PDF Command Line Tools and C/C++/Python/.NET/Java API allow you to manipulate existing PDF files in a variety of ways.