Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.misc > #95738
| Path | csiph.com!weretis.net!feeder9.news.weretis.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx23.iad.POSTED!not-for-mail |
|---|---|
| Newsgroups | comp.os.linux.misc |
| From | Charlie Gibbs <cgibbs@kltpzyxm.invalid> |
| Subject | Re: Shrinking huge PDF files |
| 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> <11dfum7$3uejh$1@dont-email.me> |
| User-Agent | slrn/1.0.3 (Linux) |
| Lines | 50 |
| Message-ID | <ozOKS.8897$453.6830@fx23.iad> (permalink) |
| X-Complaints-To | https://www.astraweb.com/aup |
| NNTP-Posting-Date | Tue, 17 Nov 2026 02:00:52 UTC |
| Date | Tue, 17 Nov 2026 02:00:52 GMT |
| X-Received-Bytes | 2857 |
| Xref | csiph.com comp.os.linux.misc:95738 |
Show key headers only | View raw
On 2026-11-16, Rich <rich@example.invalid> wrote: > Charlie Gibbs <cgibbs@kltpzyxm.invalid> wrote: > >> 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. It's frustrating that I got it to work once. I tried purging and re-installing the netpbm package in case something got corrupted, but it made no difference. If I give a bogus threshold value (e.g. 2) pgmtopbm issues an error message. I also tried moving the -threshold -value parameter ahead of the input file name, but that made no difference. I tried arranging the command-line parameters in many different orders, e.g. $ pgmtopbm >testfile3.pbm testfile3.pgm -value 0.82 -threshold The result still came out the same. However, leaving out "-threshold": $ pgmtopbm testfile3.pgm -value 0.82 >testfile3.pbm gave a page with a light gray backround rather than a white one. That's the only way I've managed to get the output to change. Curiouser and curiouser... -- /~\ Charlie Gibbs | In this world there are \ / <cgibbs@kltpzyxm.invalid> | two kinds of people: X I'm really at ac.dekanfrus | 1. Those who can extrapolate / \ if you read it the right way. | from incomplete data.
Back to comp.os.linux.misc | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Shrinking huge PDF files Charlie Gibbs <cgibbs@kltpzyxm.invalid> - 2026-11-15 00:56 +0000
Re: Shrinking huge PDF files "Carlos E.R." <robin_listas@es.invalid> - 2026-11-15 02:16 +0100
Re: Shrinking huge PDF files Nuno Silva <nunojsilva@invalid.invalid> - 2026-11-15 10:40 +0000
Re: Shrinking huge PDF files "Carlos E.R." <robin_listas@es.invalid> - 2026-11-15 13:29 +0100
Re: Shrinking huge PDF files Nuno Silva <nunojsilva@invalid.invalid> - 2026-11-15 01:28 +0000
Re: Shrinking huge PDF files Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-11-15 01:49 +0000
Re: Shrinking huge PDF files 🇵🇱Jacek Marcin Jaworski🇵🇱 <jmj@energokod.gda.pl> - 2026-11-15 03:26 +0100
Re: Shrinking huge PDF files Rich <rich@example.invalid> - 2026-11-15 03:16 +0000
Re: Shrinking huge PDF files Andreas Eder <a_eder_muc@web.de> - 2026-11-15 10:50 +0100
Re: Shrinking huge PDF files Russell Marks <zgedneil@spam^H^H^H^Hgmail.com> - 2026-11-15 10:18 +0000
Re: Shrinking huge PDF files Charlie Gibbs <cgibbs@kltpzyxm.invalid> - 2026-11-15 23:31 +0000
Re: Shrinking huge PDF files c186282 <c186282@nnada.net> - 2026-11-15 22:16 -0500
Re: Shrinking huge PDF files Charlie Gibbs <cgibbs@kltpzyxm.invalid> - 2026-11-16 05:04 +0000
Re: Shrinking huge PDF files Mike Scott <usenet.16@scottsonline.org.uk.invalid> - 2026-11-16 07:09 +0000
Re: Shrinking huge PDF files Charlie Gibbs <cgibbs@kltpzyxm.invalid> - 2026-11-16 17:02 +0000
Re: Shrinking huge PDF files The Natural Philosopher <tnp@invalid.invalid> - 2026-11-16 18:17 +0000
Re: Shrinking huge PDF files Rich <rich@example.invalid> - 2026-11-16 18:55 +0000
Re: Shrinking huge PDF files c186282 <c186282@nnada.net> - 2026-11-16 21:29 -0500
Re: Shrinking huge PDF files Nuno Silva <nunojsilva@invalid.invalid> - 2026-11-22 11:00 +0000
Re: Shrinking huge PDF files "Carlos E.R." <robin_listas@es.invalid> - 2026-11-16 09:47 +0100
Re: Shrinking huge PDF files Nuno Silva <nunojsilva@invalid.invalid> - 2026-11-16 08:56 +0000
djvu [Was: Re: Shrinking huge PDF files] "Carlos E.R." <robin_listas@es.invalid> - 2026-11-16 11:15 +0100
Re: djvu [Was: Re: Shrinking huge PDF files] Andy Burns <usenet@andyburns.uk> - 2026-11-16 13:18 +0000
Re: djvu [Was: Re: Shrinking huge PDF files] Rich <rich@example.invalid> - 2026-11-16 19:00 +0000
Re: djvu [Was: Re: Shrinking huge PDF files] Nuno Silva <nunojsilva@invalid.invalid> - 2026-11-23 00:13 +0000
Re: djvu [Was: Re: Shrinking huge PDF files] "Carlos E.R." <robin_listas@es.invalid> - 2026-11-23 01:54 +0100
Re: djvu [Was: Re: Shrinking huge PDF files] Andy Burns <usenet@andyburns.uk> - 2026-11-23 06:35 +0000
Re: djvu [Was: Re: Shrinking huge PDF files] "Carlos E.R." <robin_listas@es.invalid> - 2026-11-17 03:00 +0100
Re: djvu [Was: Re: Shrinking huge PDF files] Rich <rich@example.invalid> - 2026-11-16 18:59 +0000
Re: Shrinking huge PDF files Charlie Gibbs <cgibbs@kltpzyxm.invalid> - 2026-11-16 17:02 +0000
Re: Shrinking huge PDF files Rich <rich@example.invalid> - 2026-11-16 19:01 +0000
Re: Shrinking huge PDF files Charlie Gibbs <cgibbs@kltpzyxm.invalid> - 2026-11-16 19:20 +0000
Re: Shrinking huge PDF files Leroy H <lh@somewhere.net> - 2026-11-16 20:03 +0000
Re: Shrinking huge PDF files Rich <rich@example.invalid> - 2026-11-16 22:04 +0000
Re: Shrinking huge PDF files Charlie Gibbs <cgibbs@kltpzyxm.invalid> - 2026-11-17 02:00 +0000
Re: Shrinking huge PDF files not@telling.you.invalid (Computer Nerd Kev) - 2026-11-17 07:25 +1000
csiph-web