🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Shrinking huge PDF files

#2662
From: Rich
Date: Mon, 16 Nov 2026 22:04
32 lines
2703 bytes
Charlie Gibbs <cgibbs@kltpzyxm.invalid> wrote:
> On 2026-11-16, Rich <rich@example.invalid> wrote:
> 
>> Charlie Gibbs <cgibbs@kltpzyxm.invalid> wrote:
>>
>>> I'm dealing with musicians here, not computer geeks.  Going to some
>>> obscure new format would be just one more headache to deal with.
>>
>> Then don't bother with anything other than PDF.  That one they will be 
>> able to open and view.  Anything else, yes, a headache for you.
> 
> Indeed.  Thanks for the help.  Unfortunately, my tests have suddenly
> stopped working - pgmtopbm has seemingly started ignoring my threshold
> setting.  Stripping down the commands to work on a single-page PDF:
> 
> $ gs -dNOPAUSE -q -r300 -sDEVICE=pgmraw -dBATCH -sOutputFile=testfile3.pgm testfile.pdf
> $ pgmtopbm -threshold -value 0.82 testfile3.pgm >testfile3.pnm
> $ pnmtotiff -g4 <testfile3.pnm >testfile3.tif
> 
> Is there something wrong with my pgmtopbm command?

Not that I see from the above example, other than the result file 
should be named ".pbm" as it is a Portable Bit Map (monochrome) file.  
But so long as you use the same name to feed into pnmtotiff it won't 
matter a bit what you name it.

> If I remove the "-threshold -value 0.82" parameters
> the output (testfile3.pnm) is exactly the same.

Weird.  I would expect some change, as it is supposed to be outputting 
pbm, and you should be sending in greyscale, so the two files should 
differ.
Technical Details
Message-ID: <11dfum7$3uejh$1@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-mail
References: <Qq7KS.9052$s53.4981@fx10.iad> <%FfKS.6730$5s3.683@usenetxs.com> <NhrKS.21511$li3.13390@fx46.iad> <11degfs$3d3uk$2@dont-email.me> <vGGKS.129464$aI4.75531@fx15.iad> <11dfjun$3qfni$4@dont-email.me> <oIIKS.56667$033.46236@fx03.iad>

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: Rich <rich@example.invalid>
Newsgroups: comp.os.linux.misc
Subject: Re: Shrinking huge PDF files
Date: Mon, 16 Nov 2026 22:04:56 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 32
Message-ID: <11dfum7$3uejh$1@dont-email.me>
References: <Qq7KS.9052$s53.4981@fx10.iad> <%FfKS.6730$5s3.683@usenetxs.com> <NhrKS.21511$li3.13390@fx46.iad> <11degfs$3d3uk$2@dont-email.me> <vGGKS.129464$aI4.75531@fx15.iad> <11dfjun$3qfni$4@dont-email.me> <oIIKS.56667$033.46236@fx03.iad>
Injection-Date: Mon, 16 Nov 2026 22:04:56 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="4143729"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX185uQr593UG41hBTY5n/Dur"; posting-host="1816d630236a0742130b2a45529532ee"
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.193 (x86_64))
Cancel-Lock: sha1:Uuq3to9IJveBW6bgCp7v7DPPruk= sha256:hyI+BaJ4u1404QgjnJgli6e4tY0vdx42/29FG/jq47Y=
	sha1:VXQPs2MuJp1mNrngSEkEBXYXBjA= sha256:sbP7mYcUqIYeTwSJuRvBCXv39Vl8ieOnQVsyiSO4MzU=