🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.linux.misc
Article #2595

Re: Shrinking huge PDF files

#2595
From: Russell Marks
Date: Sun, 15 Nov 2026 10:18
26 lines
2016 bytes
Charlie Gibbs <cgibbs@kltpzyxm.invalid> wrote:

> I was given some scans of sheet music from an iPad vict^H^H^H^Huser who
> couldn't find the settings (if it has any) for its scanning function.
> As a result, she wound up with a 9-page PDF file that takes up over
> 30 megabytes.  (When I scan a similar document on my machine the file
> is about one megabyte.)  A bit of digging came up with utilities that
> tell me that her scan is in 24-bit colour at some ungodly resolution
> (using JPEG to keep it from being even bigger).
>
> I've been looking at utilities like Ghostscript, but the documentation
> is making my eyes glaze over.  Is there a guide that can help me
> re-sample the file, say to 300 dpi in monochrome?

I'm not sure about that, but here's one thing I ended up using
recently to get smaller PDFs (possibly including some unnecessary
options):

  gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen \
   -dNOPAUSE -dBATCH -sOutputFile=out.pdf in.pdf

It won't always make the file smaller, but did for me in some cases.
That does a reduction to 72 DPI, but I think you can replace "/screen"
with "/printer" to get 300.

-Rus.
Technical Details
Message-ID: <%FfKS.6730$5s3.683@usenetxs.com>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-ams.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!npeer.as286.net!npeer-ng0.as286.net!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!fx12.ams4.POSTED!not-for-mail
References: <Qq7KS.9052$s53.4981@fx10.iad>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-ams.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!npeer.as286.net!npeer-ng0.as286.net!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!fx12.ams4.POSTED!not-for-mail
From: Russell Marks <zgedneil@spam^H^H^H^Hgmail.com>
Newsgroups: comp.os.linux.misc
Subject: Re: Shrinking huge PDF files
References: <Qq7KS.9052$s53.4981@fx10.iad>
Organization: this space intentionally left blank
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
Lines: 26
Message-ID: <%FfKS.6730$5s3.683@usenetxs.com>
X-Complaints-To: https://www.astraweb.com/aup
NNTP-Posting-Date: Sun, 15 Nov 2026 10:18:35 UTC
Date: Sun, 15 Nov 2026 10:18:35 GMT
X-Received-Bytes: 1735