Charlie Gibbs <cgib…@kltpzyxm.invalid> wrote:
> On 2026-11-16, Rich <ri…@example.invalid> wrote:
>
>> Charlie Gibbs <cgib…@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.