Article View: comp.os.linux.misc
Article #2597Re: Shrinking huge PDF files
From: Nuno Silva
Date: Sun, 15 Nov 2026 10:40
Date: Sun, 15 Nov 2026 10:40
40 lines
2744 bytes
2744 bytes
On 2026-11-15, Carlos E.R. wrote: > On 2026-11-15 01:56, Charlie Gibbs wrote: >> [Here's an on-charter post for a change...] >> >> 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? > > Convert to some bitmap image format, file per page (png, for instance) > resample using gimp, or magick For this I stress my recommendation of poppler's pdfimages. If I'm not mistaken, it will extract the image streams, not convert them. If all it has is one image per page, that's probably the best to avoid loss at this stage. (Well, if you do indeed convert to raster here, instead of extracting, you can probably use this step to convert the colorspace and (if needed) downsample the images.) > convert back to PDF, if that is the goal. > > > Hint: don't fight documentation. Ask an AI to guide you on the use of > ghostscript (if that is the tool you want to use). AIs are good at > this. > > (no, I did not ask an AI for this post) -- Nuno Silva
Technical Details
Message-ID:
<11dc276$2lrfq$3@dont-email.me>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<Qq7KS.9052$s53.4981@fx10.iad> <hndnsmxk4m.ln2@Telcontar.valinor>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Nuno Silva <nunojsilva@invalid.invalid> Newsgroups: comp.os.linux.misc Subject: Re: Shrinking huge PDF files Date: Sun, 15 Nov 2026 10:40:38 +0000 Organization: A noiseless patient Spider Lines: 40 Message-ID: <11dc276$2lrfq$3@dont-email.me> References: <Qq7KS.9052$s53.4981@fx10.iad> <hndnsmxk4m.ln2@Telcontar.valinor> MIME-Version: 1.0 Content-Type: text/plain Injection-Date: Sun, 15 Nov 2026 10:40:38 +0000 (UTC) Injection-Info: dont-email.me; logging-data="2813434"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+zgEbYG7bwwT4KktVmLkuA"; posting-host="30590866acd87ae4e8f60e28d2987d87" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) Cancel-Lock: sha1:3eaqTBoXuygO55gdo7rHTK5bXOQ= sha256:PlFHGLcy6Mc9+2kyTr/R7UhoZ6RucZQp2qzxODiRQsQ= sha1:z/WAgm26bqBaDKYp5fyrBJa+chY= sha256:EZLC8J1Xdu5K2OAzT0+Kg+RzncFhWAZ2i98ZGpE14qU=