ken schrieb in <
news:MPG.294fc3d9c...@usenet.plus.net>
>
Thomas...@phg-online.de says...
>>
>> Axel Berger schrieb in <news:4EE51B58...@Gmx.De>
>> > Thomas Kaiser wrote:
>> >> by altering
gs_pdfwr.ps
>> >
>> > There is no such file on my system.
>>
>> Have you had a look inside gs's lib directory? Compare with
>>
>>
http://www.netzwelt.de/install-log/4016-ghostscript.html
>
> Ghostscript now builds all it support files into a ROM file system, even
> if the file exists (which depends on the distribution if this is Linux),
> changing it will have no effect. You need to both modify the file *and*
> tell Ghostscript to use the 'on-disk' files rather than the ROM files,
> using the -I switch.
Good to know... and obvisouly not true on every platform. I did three
quick tests (using the MacPorts version of GhostScript 9.0.4 on MacOS X)
and changed the QFactor value inside
gs_pdfwr.ps which produced the
expected results:
-rw-r--r-- 1 tk tk 53927 11 Dez 14:05 test-neu-2.pdf
-rw-r--r-- 1 tk tk 64733 11 Dez 14:05 test-neu.pdf
-rw-r--r-- 1 tk tk 110735 11 Dez 14:04 test-normal.pdf
The original PDF contained just one single image in flate compression.
The results used DCTEncoding with different quality.
One more question: Does the build process takes care about keeping the
contents of the "ROM files" in sync with the files that will be
(possibly) distributed into the file system? Or might there be any side
effect of using the -I switch when I want to use the files in the FS
instead?
>> >> Or you could do it on the fly by using the -c switch:
>> >> gs ... -c '.setpdfwrite << //QFactor 0.15 ... >>' ...
>> >
>> > I tried that through the ps2pdf14.bat interface and it didn't work.
>>
>> Sorry, no interest in Windows :-)
>
> The same is quite likely also tru of the Linux script.
MacOS X and Solaris. I use GhostScript on linux normally just for
checking something before filing bugreports (endianess and the like)
> For serious sue of Ghostscript and pdfwrite, do not use the batch
> files.
ACK, you are right.
Regards,
Thomas