[Info-vax] GS convert PDF to PS.
Jan-Erik Söderholm
jan-erik.soderholm at telia.com
Sun Mar 13 18:05:40 EDT 2022
Den 2022-03-13 kl. 22:24, skrev Phillip Helbig (undress to reply):
> In article <t0lf67$k00$1 at dont-email.me>,
> =?UTF-8?Q?Jan-Erik_S=c3=b6derholm?= <jan-erik.soderholm at telia.com>
> writes:
>
>> Den 2022-03-13 kl. 18:17, skrev Phillip Helbig (undress to reply):
>>> In article <t0l1m4$7a5$1 at dont-email.me>,
>>> =?UTF-8?Q?Jan-Erik_S=c3=b6derholm?= <jan-erik.soderholm at telia.com>
>>> writes:
>>>
>>>> I'm new to Ghostscript.
>>>> I try to convert a PDF file to a PS file.
>>>>
>>>> And yes, this a step in the "print a PDF file" project.
>>>> I had some issues with getting the Xerox printer to print
>>>> a plain PDF file so I thought about converting i to to PS...
>>>>
>>>> Have tried with:
>>>>
>>>> $ gs "-dNOPAUSE" "-sDEVICE=ps2write" "-sOutputFile=out.ps" "-fOUT.PDF"
>>>
>>> This works for me:
>>>
>>> $ IF P1 .EQS. "" THEN GOTO USAGE
>>> $ IF F$PARSE(P1,,,"TYPE") .EQS. "." THEN P1 = P1 + ".PDF"
>>> $ IF P2 .EQS. "" THEN P2 = F$PARSE(P1,,,"NAME") + ".PS"
>>> $ IF F$PARSE(P2,,,"TYPE") .EQS. "." THEN P2 = P2 + ".PS"
>>> $ GS "-dNOPAUSE" "-sDEVICE=pswrite" "-dBATCH" "-sOutputFile=''P2'" 'P1'
>>> $ EXIT
>>> $USAGE:
>>> $ TYPE SYS$INPUT
>>>
>>> P1: PDF file (required), default type .PDF
>>> P2: PostScript file (optional), default type .PS, default name <name_of_P1>.PS
>>> $ EXIT
>>>
>>
>> Intreresting.
>> "pswrite" is not part of the "Available devices:" but ps2write is.
>>
>> I tried to change to "pswrite" and got:
>>
>> GPL Ghostscript 9.55.0 (2021-09-27)
>> Copyright (C) 2021 Artifex Software, Inc. All rights reserved.
>> This software is supplied under the GNU AGPLv3 and comes with NO WARRANTY:
>> see the file COPYING for details.
>> Unknown device: pswrite
>> %SYSTEM-E-BADPARAM, bad parameter value
>
> $ gs -v
> GPL Ghostscript 9.02 (2011-03-30)
> Copyright (C) 2010 Artifex Software, Inc. All rights reserved.
>
> OK, I need to upgrade. :-( But one reason I hesitate is because some
> things might stop working. :-|
>
OK. If you *do* upgrade (using Marks kit it is really just to
copy one single EXE file), I'd be happy to provide you a copy
of my PDF file...
More information about the Info-vax
mailing list