[scribus] DPI and PDF question
Nigel Ridley
nigel at rmk.co.il
Fri Jul 25 03:14:15 CEST 2008
avox wrote:
>
>
> Nigel Ridley wrote:
>>
>>
>> Thanks for pointing out the 'obvious_mistake'. However it still produces
>> errors (my original file
>> that I am wanting to reduce in size is named 'Example.pdf'):
>>
>> nigel at laptop:~/Hamaayan/Example$ pdftops -level3 -paper match "$Example" -
>> | gsc -q -dSAFER
>> -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -dPDFSETTINGS=/ebook
>> -dAutoRotatePages=/None
>> -dEmbedAllFonts=true -dSubsetFonts=true -sOutputFile="$example.pdf"
>> -dCompatibilityLevel=1.4 -c
>> .setpdfwrite -
>> Error: Couldn't open file ''
>>
>
> Don't inlcude the '$' in filenames, it only marks shell variables.
> ("$Example" would result in an empty string if the shell variable 'Example'
> does not exist).
>
>
>
>> *** WARNING -- Unknown or improperly placed option: "q"
>> *** WARNING -- Unknown or improperly placed option: "dSAFER"
>> *** WARNING -- Unknown or improperly placed option: "dBATCH"
>> *** WARNING -- Unknown or improperly placed option: "dNOPAUSE"
>> *** WARNING -- Unknown or improperly placed option: "sDEVICE=pdfwrite"
>> *** WARNING -- Unknown or improperly placed option: "dPDFSETTINGS=/ebook"
>> *** WARNING -- Unknown or improperly placed option:
>> "dAutoRotatePages=/None"
>> *** WARNING -- Unknown or improperly placed option: "dEmbedAllFonts=true"
>> *** WARNING -- Unknown or improperly placed option: "dSubsetFonts=true"
>> *** WARNING -- Unknown or improperly placed option: "sOutputFile=.pdf"
>> *** WARNING -- Unknown or improperly placed option:
>> "dCompatibilityLevel=1.4"
>> *** WARNING -- Unknown or improperly placed option: "c"
>> >
>> *** EOF again to exit
>> nigel at laptop:~/Hamaayan/Example$
>>
>> I did create an empty .setpdfwrite file and noticed that after running the
>> 'one_liner', I now
>> have my original [empty] .setpdfwrite file, plus a file named
>> .setpdfwrite.c and an executable
>> named .setpdfwrite.o1 (plus another named .setpdfwrite.o - as I ran the
>> script again just to
>> double check) but as you can see from the above it won't run and hangs
>> until I do a 'Ctrl + D'
>> twice (to get back to the command prompt).
>>
>> If it helps, here is the contents of .setpdfwrite.c:
>>
>> #ifdef ___LINKER_INFO
>> ; File: ".setpdfwrite.c", produced by Gambit-C 4.0 beta 20
>>
>
> Ok, that means on your system, "gsc" is the Gambit C Compiler, not
> ghostscript.
> Use "gs" instead of "gsc".
>
> /Andreas
Thanks Andreas - I managed to get things sorted out. However, Scribus itself does a better job of
reducing the file size than the above 'one-liner'.
Blessings,
Nigel
--
PrayingForIsrael.net
http://www.prayingforisrael.net/
More information about the scribus
mailing list