Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: Shrink Images and PDFs

by haukex (Archbishop)
on May 02, 2020 at 11:52 UTC ( [id://11116353]=note: print w/replies, xml ) Need Help??


in reply to Re: Shrink Images and PDFs
in thread Shrink Images and PDFs

For your PDF files, what does gs do or not do which reduce the PDF file size? Is it mainly ebook option?

Yes, I've found the ebook option a convenient way to downsample the resolution of the images embedded in a PDF to 150 DPI. So this script will have a significant effect on PDF files that are large due to them containing high-resolution images (like scans), and less of an effect on PDFs that are already smaller than ~1MB.

Replies are listed 'Best First'.
Re^3: Shrink Images and PDFs
by parv (Parson) on May 02, 2020 at 13:02 UTC

    Ah, ok. Thanks for the explanation, mainly because I had not thought of embedded images. I was thinking that ebook option might be restructuring the PDF, using common fonts and removing embedded fonts, etc.

      I was thinking that ebook option might be restructuring the PDF, using common fonts and removing embedded fonts, etc.

      One of the settings of the ebook profile is EmbedAllFonts=true, so I might consider disabling that, but other than that I haven't noticed the gs command modifying anything about the PDFs other than the images.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11116353]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (5)
As of 2024-04-25 14:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found