Only recently I tried to test
Coherent PDF, in short cpdf (downloaded from the current github page) on my Windows 10 (64 bits, of course).
I could not get it to run, neither the cpdf 32 nor the cpdf 64.
All I got was something like .... You system does care of 16 bit Apps (just kidding, see attachment).
- CoherentPdf=16Bit_Application.jpg (17.68 KiB) Viewed 2442 times
Since I was definitely interested in shrinking PDFs, I had to resort to similar tools, and the first I tried was:
FileOptimizer, in the DataBase:
https://www.portablefreeware.com/index.php?id=2377
!!!! Jack Pot !!!! : Coherent PDF is actually embedded in FileOptimizer. In the installation folder, go to App >> FileOptimizer >> Plugins64 (or Plugins32 ... depends on your machine) ... and
cpdf is right here!
If cpdf is all that you need, just copy it to a folder where you can use it as a command line tool on you "big fat pdf".
In console mode run:
cpdf -squeeze in.pdf -o out.pdf (in.pdf is the name of your input file, out.pdf is the name you want cpdf to copy your shrunk file).
Done! Well, Not so fast!!! Now let's see how many MB I saved on my hard drive ....
Size of my original file: 276, 991, 541
Size of the shrunk file: 276, 732, 124
.
As of this writing, the only more efficient way to shrink a pdf is to reduce the margins (white space around the text content of text page in the case you are working with a scanned document.
IrfanView does exactly that, and very easily:
======================================
C:\irfn\i_view32.exe C:\infiles\*.tif /crop=(x1,y1,x2,y2) /aspectratio /resample /tifc=4 /convert C:\outfiles\*.tif
Note1: Have a folder where you place irfanview (here: irfn)
Note2: Have a folder where you place your input files (here infiles)
Note3: Have a folder where you place the above line of code in a text file that you can name shrink.txt., that you then rename shrink.bat
You name the folder whateveryou like, e.g. outfile.
How to determine x1, y1, x2, y2 .
Personally I use Microsoft Paint because it shows you the coordinates of the mouse pointer.
Note 4: It is straightfoward to determine x1 and y1
Note 5: It is more tricky to determine x2 and y2
Actually x2 = x of the cursor minus x1
y2 = y of the cursor minus y1
Note 6: Now you can rename shrink.txt >> shrink.bat
Note 7: IrfanView works with many file formats, not exclusively TIFs
Ready to go: clink on shrink.bat and the resulting files will be stored in the outfiles folder.