CPDF - command line PDF tools

Submit command line tools that you find here.
Post Reply
Message
Author
billon
Posts: 844
Joined: Sat Jun 23, 2012 4:28 pm

CPDF - command line PDF tools

#1 Post by billon » Fri Nov 03, 2017 6:16 pm

[Moderator note: this thread was split from the ImageMagick thread.]

---
Midas wrote:Now, something to do the same to PDF files would be the works
Try cpdf

User avatar
Midas
Posts: 5974
Joined: Mon Dec 07, 2009 7:09 am
Location: Sol3

Re: ImageMagick - command line image conversion

#2 Post by Midas » Sun Nov 05, 2017 5:23 am

billon wrote:Try cpdf
Thanks for the tip. Will do. 8)

User avatar
__philippe
Posts: 634
Joined: Wed Jun 26, 2013 2:09 am

Re: ImageMagick - command line image conversion

#3 Post by __philippe » Sun Nov 05, 2017 6:02 am

@billon

Seconded, ta for the cpdf pointer !
This recent (March 2017) cpdf user manual might prove handy as well :wink:

User avatar
webfork
Posts: 10018
Joined: Wed Apr 11, 2007 8:06 pm
Location: US, Texas
Contact:

Re: CPDF - command line PDF tools

#4 Post by webfork » Sun Nov 05, 2017 7:54 pm

Great post billon and __philippe. I'm almost certainly going to post more about this tool so I decided to go ahead and split off from ImageMagick to avoid a thread hijack.

Program is cross-platform (mac/win/linux), supports strong encryption, and lossless compression.

License: Free for non-commercial use, code used by this program bound by the same license: https://github.com/coherentgraphics/cpd ... er/LICENSE ... buy a license here: http://www.coherentpdf.com/ for around $340 USD (as of this writing).

User avatar
webfork
Posts: 10018
Joined: Wed Apr 11, 2007 8:06 pm
Location: US, Texas
Contact:

Re: CPDF - command line PDF tools

#5 Post by webfork » Wed Nov 08, 2017 4:43 pm

I did a bit more digging and it looks like they add a watermark to all processed pages so it looks like this program is really just a demo for a commercial product, save for listing fonts or reading document info.

https://www.coherentpdf.com/eval.html

I'm disappointed but certainly not surprised. This is a very powerful toolset.

User avatar
webfork
Posts: 10018
Joined: Wed Apr 11, 2007 8:06 pm
Location: US, Texas
Contact:

Re: CPDF - command line PDF tools

#6 Post by webfork » Mon Nov 20, 2017 7:57 pm

It doesn't have anywhere near the features but PDFBox is a Java-based alternative to CPDF https://pdfbox.apache.org/index.html that might be portablized using jPortable and the companion JAR Launcher.

User avatar
webfork
Posts: 10018
Joined: Wed Apr 11, 2007 8:06 pm
Location: US, Texas
Contact:

Re: CPDF - command line PDF tools

#7 Post by webfork » Mon Feb 25, 2019 7:34 pm

Another one to add to the list of CLI PDF tools: http://www.xpdfreader.com/ / https://www.softpedia.com/get/Office-to ... Xpdf.shtml based on

Tools include:
xpdf: PDF viewer
pdftotext: converts PDF to text
pdftops: converts PDF to PostScript
pdftoppm: converts PDF pages to netpbm (PPM/PGM/PBM) image files
pdftopng: converts PDF pages to PNG image files
pdftohtml: converts PDF to HTML
pdfinfo: extracts PDF metadata
pdfimages: extracts raw images from PDF files
pdffonts: lists fonts used in PDF files
pdfdetach: extracts attached files from PDF files

billon
Posts: 844
Joined: Sat Jun 23, 2012 4:28 pm

cpdfsqueeze - lossless PDF compressor

#8 Post by billon » Thu Mar 19, 2020 3:13 am

https://community.coherentpdf.com/
Now we're releasing {...} a lossless PDF squeezer under the LGPL.

https://github.com/coherentgraphics/cpd ... e-binaries
Cpdfsqueeze is a lossless compressor for PDF files, which works by rearranging and coalescing content within the file.
Windows32bit
Windows64bit

User avatar
webfork
Posts: 10018
Joined: Wed Apr 11, 2007 8:06 pm
Location: US, Texas
Contact:

Re: cpdfsqueeze - lossless PDF compressor

#9 Post by webfork » Thu Mar 19, 2020 8:18 am

billon wrote:
Thu Mar 19, 2020 3:13 am
Cpdfsqueeze is a lossless compressor for PDF files, which works by rearranging and coalescing content within the file.
Excellent, I'll test this out very soon.

EDIT: Looks like this just got included in the latest version of FileOptmizer so I can test it out even sooner :)

User avatar
Cornflower
Posts: 201
Joined: Fri Aug 31, 2007 7:58 am
Location: Canada's capital

Coherent PDF: cpdf and cpdfsqueeze

#10 Post by Cornflower » Wed Nov 11, 2020 5:54 pm

With version 2.3 (December 2019) Coherent has given its cpdf a non-commercial use license. I used cpdf commercially at work, and am glad I can use it at home not, too.

cpdf is a PDF toolkit, capable of everything pdftk does, and much more. Examples include
Merge PDF files together, or split them apart
Encrypt and decrypt
Scale, crop and rotate pages
Pad pages, put multiple pages on each page
Read and set document info and metadata, font management
Copy, add or remove bookmarks
Stamp logos, text, dates, page numbers
Add or remove attachments
Losslessly compress PDF files

You will want to use the 72-page manual for the over 100 possible options.

cpdfsqueeze simply produces a lossless compression of a pdf file. This functionality is also in cpdf.

Homepage: https://community.coherentpdf.com/
Download cpdf: https://github.com/coherentgraphics/cpd ... master.zip
Download cpdfsqueeze:https://github.com/coherentgraphics/cpd ... master.zip

cpdf Manual:http://www.coherentpdf.com/cpdfmanual/cpdfmanual.html or download as PDF http://www.coherentpdf.com/cpdfmanual.pdf

Non-commercial use License: https://github.com/coherentgraphics/cpd ... er/LICENSE

Runs on Vista and above.
Use Cases: PDF manipulation
Category: PDF Processing

I will submit to the database as soon as I read up on the submission fields I am not sure I understand.

Post Reply