Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > PDF

Notices

Reply
 
Thread Tools Search this Thread
Old 02-08-2022, 09:59 AM   #1
hergipotter
Junior Member
hergipotter began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Feb 2022
Device: Kindle Paperwhite 5
batch compress large number of pdf files

Hello there,

I have a large number (> 200) of comic books in pdf format but they are quite large (~30 to 70 MB) so they take up too much space on my kindle. My idea now was to compress the images inside the pdf a bit so they get smaller in size without losing too much on the quality.
I've searched this forum and read through some threads but didn't find what I was looking for specifically: A (ideally free) tool that takes all the pdf files, applies some level of compression to the images and provides me with the smaller pdf files.
I was looking into some online converters like ilovepdf.com or pdfcompressor.com but they do not provide many options regarding the level of compression and they also don't take many files at once. Same for pdf printers, I want to avoid having to open every single pdf file and print a compressed version manually. Does anyone know a tool that does the same thing to a number of pdf files at once and provides at least some small level of compression options?

Thanks already in advance!
hergipotter is offline   Reply With Quote
Old 02-08-2022, 11:19 AM   #2
Shohreh
Zealot
Shohreh can program the VCR without an owner's manual.Shohreh can program the VCR without an owner's manual.Shohreh can program the VCR without an owner's manual.Shohreh can program the VCR without an owner's manual.Shohreh can program the VCR without an owner's manual.Shohreh can program the VCR without an owner's manual.Shohreh can program the VCR without an owner's manual.Shohreh can program the VCR without an owner's manual.Shohreh can program the VCR without an owner's manual.Shohreh can program the VCR without an owner's manual.Shohreh can program the VCR without an owner's manual.
 
Posts: 148
Karma: 192898
Join Date: Jan 2016
Device: none
Try this:

"c:\Program Files\gs\gs9.55.0\bin\gswin32c.exe" -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf

https://ghostscript.com/releases/gsdnld.html
Shohreh is offline   Reply With Quote
Old 02-09-2022, 04:25 AM   #3
hergipotter
Junior Member
hergipotter began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Feb 2022
Device: Kindle Paperwhite 5
Thanks for your reply. I gave it a try on a file with a size of 78MB. The output was only 2.2MB in size but it was not readable anymore. I tried also other PDFSETTINGS options:

original: 78MB
/screen: 2.2MB, not readable
/ebook: 6.9MB, barely readable
/printer: 78MB, like original

I would be looking for something in between /ebook and /printer. A reduction in size of about 50% would be more than enough but I'm not familiar with ghostscript at all. Maybe you have some tips for me where to look at?

Then in the end I will need to adapt the script to loop over all pdfs in a folder but I think I can manage that.
hergipotter is offline   Reply With Quote
Old 02-09-2022, 08:37 AM   #4
Shohreh
Zealot
Shohreh can program the VCR without an owner's manual.Shohreh can program the VCR without an owner's manual.Shohreh can program the VCR without an owner's manual.Shohreh can program the VCR without an owner's manual.Shohreh can program the VCR without an owner's manual.Shohreh can program the VCR without an owner's manual.Shohreh can program the VCR without an owner's manual.Shohreh can program the VCR without an owner's manual.Shohreh can program the VCR without an owner's manual.Shohreh can program the VCR without an owner's manual.Shohreh can program the VCR without an owner's manual.
 
Posts: 148
Karma: 192898
Join Date: Jan 2016
Device: none
I'm not familiar enough with GS, but you could try playing with the "-r" switch:

https://stackoverflow.com/questions/...-when-using-gh
Shohreh is offline   Reply With Quote
Old 02-10-2022, 06:51 PM   #5
willus
Fuzzball, the purple cat
willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.willus ought to be getting tired of karma fortunes by now.
 
willus's Avatar
 
Posts: 1,274
Karma: 11087488
Join Date: Jun 2011
Location: California
Device: iPad
See this recent post in the k2pdfopt thread.
willus is offline   Reply With Quote
Old 02-11-2022, 03:00 AM   #6
hergipotter
Junior Member
hergipotter began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Feb 2022
Device: Kindle Paperwhite 5
Thanks, I will try it.
hergipotter is offline   Reply With Quote
Reply

Tags
compression, pdf, tool


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Batch mode to compress images pmichelazzo Editor 2 06-17-2018 04:33 AM
Reading large PDF files the_apotheosis iRex 6 12-06-2007 11:46 AM
Large PDF Files Almagne iRex 3 01-17-2007 11:27 AM
Using Finereader to batch convert PDF files to RTF gdxf Sony Reader 9 10-28-2006 04:14 PM


All times are GMT -4. The time now is 03:47 AM.


MobileRead.com is a privately owned, operated and funded community.