Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

The first sign of maturity is the discovery that the volume knob also turns to the left.


computers / comp.os.vms / Re: GS convert PDF to PS.

SubjectAuthor
* GS convert PDF to PS.Jan-Erik Söderholm
+- Re: GS convert PDF to PS.Jan-Erik Söderholm
+* Re: GS convert PDF to PS.Chris Townley
|+* Re: GS convert PDF to PS.Jan-Erik Söderholm
||`* Re: GS convert PDF to PS.Simon Clubley
|| +- Re: GS convert PDF to PS.Jan-Erik Söderholm
|| `- Re: GS convert PDF to PS.Andy Burns
|`- Re: GS convert PDF to PS.Dennis Boone
+* Re: GS convert PDF to PS.Jeffrey H. Coffield
|`- Re: GS convert PDF to PS.Jan-Erik Söderholm
+* Re: GS convert PDF to PS.Phillip Helbig (undress to reply
|`* Re: GS convert PDF to PS.Jan-Erik Söderholm
| `* Re: GS convert PDF to PS.Phillip Helbig (undress to reply
|  `- Re: GS convert PDF to PS.Jan-Erik Söderholm
+* Re: GS convert PDF to PS.gah4
|`* Re: GS convert PDF to PS.Jan-Erik Söderholm
| +- Re: GS convert PDF to PS.gah4
| `* Re: GS convert PDF to PS.Craig A. Berry
|  `* Re: GS convert PDF to PS.Joukj
|   `* Re: GS convert PDF to PS.Jan-Erik Söderholm
|    `* Re: GS convert PDF to PS.Joukj
|     `* Re: GS convert PDF to PS.Jan-Erik Söderholm
|      `* Re: GS convert PDF to PS.jouk
|       `* Re: GS convert PDF to PS.Jan-Erik Söderholm
|        `- Re: GS convert PDF to PS.chris
`* Re: GS convert PDF to PS.Mark Berryman
 `* Re: GS convert PDF to PS.Mark Berryman
  +* Re: GS convert PDF to PS.Craig A. Berry
  |`- Re: GS convert PDF to PS.John Reagan
  `* Re: GS convert PDF to PS.Jan-Erik Söderholm
   `* Re: GS convert PDF to PS.Mark Berryman
    +- Re: GS convert PDF to PS.Robert A. Brooks
    `- Re: GS convert PDF to PS.Jan-Erik Söderholm

Pages:12
Re: GS convert PDF to PS.

<j9at9eFi7cpU1@mid.individual.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=21368&group=comp.os.vms#21368

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: use...@andyburns.uk (Andy Burns)
Newsgroups: comp.os.vms
Subject: Re: GS convert PDF to PS.
Date: Tue, 15 Mar 2022 07:24:28 +0000
Lines: 9
Message-ID: <j9at9eFi7cpU1@mid.individual.net>
References: <t0l1m4$7a5$1@dont-email.me> <t0l2ce$sr0$1@dont-email.me>
<t0l3aa$7a5$3@dont-email.me> <t0o682$s0v$3@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net iP1RdLdyaZouU2GioAAqhgVj9C79OA4MKVxgaBj+1kMJsafOKT
Cancel-Lock: sha1:W7ahzI56gTUJkmzeO3ERmWMLX40=
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.7.0
Content-Language: en-GB
In-Reply-To: <t0o682$s0v$3@dont-email.me>
 by: Andy Burns - Tue, 15 Mar 2022 07:24 UTC

Simon Clubley wrote:

> That's a GPL licenced program, so Mark is supposed to either provide
> you with a full source kit or to supply his changes (including those
> changes to build scripts) along with a pointer to the original full
> source kit.

source can be provided on-demand, rather than with the binary distribution ...

Re: GS convert PDF to PS.

<t0qbpq$mbl$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=21371&group=comp.os.vms#21371

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: mar...@theberrymans.com (Mark Berryman)
Newsgroups: comp.os.vms
Subject: Re: GS convert PDF to PS.
Date: Tue, 15 Mar 2022 09:36:25 -0600
Organization: A noiseless patient Spider
Lines: 79
Message-ID: <t0qbpq$mbl$1@dont-email.me>
References: <t0l1m4$7a5$1@dont-email.me> <t0npmg$315$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 15 Mar 2022 15:36:26 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="4426f706f2fff0fef417acd1210ce772";
logging-data="22901"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18CFQNXUfrnZv8BMsBdF4/LkHSEL6HrGOE="
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.7.0
Cancel-Lock: sha1:0UF8Hap27H7fFJGFCZNuhZhjs2A=
In-Reply-To: <t0npmg$315$1@dont-email.me>
Content-Language: en-US
 by: Mark Berryman - Tue, 15 Mar 2022 15:36 UTC

On 3/14/22 10:15 AM, Mark Berryman wrote:
> On 3/13/22 9:13 AM, Jan-Erik Söderholm wrote:
>> Hi.
>>
>> 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"
>>
>> The input file OUT.PDF only contains one page with 6-7 text lines
>> and one Code128 barcode. File created from the Python tool Reportlab.
>> And "out" refers to the Python step, it is the "input" file to GS.
>>
>> The PDf file opens fine on any other environment, also when put in
>> a VMS directory served by WASD.
>>
>> I have checked that the file org is as required by GS:
>>
>>   Record format:      Stream_LF, maximum 0 bytes, longest 16384 bytes
>>   Record attributes:  Carriage return carriage control
>>
>>
>> GS just hangs and consumes 100% cpu until I end it with ctrl-C.
>> Does it wait for some SYS$INPUT input? Any switch I'm missing?
>>
>> $ gs "-dNOPAUSE" "-sDEVICE=ps2write" "-sOutputFile=out.ps" "-fOUT.PDF"
>> 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.
>> HV04JES_01 16:01:48 GS        CPU=00:04:01.95 PF=48109 IO=152495 MEM=1369
>> HV04JES_01 16:01:51 GS        CPU=00:04:04.56 PF=48109 IO=152496 MEM=1369
>> HV04JES_01 16:01:53 GS        CPU=00:04:06.37 PF=48109 IO=152497 MEM=1369
>>   Interrupt
>>
>> $
>>
>> One empty OUT.PS file is created and some empty TMPDIR files.
>>
>> _TEMP_T45404.;1       1/52        13-MAR-2022 16:01:45.84
>> _TEMP_U45404.;1       0/0         13-MAR-2022 16:01:45.85
>> _TEMP_V45404.;1       0/0         13-MAR-2022 16:01:45.85
>> _TEMP_W45404.;1       0/0         13-MAR-2022 16:01:45.85
>>
>> Any ideas? Some simple example for a GS command line to convert
>> a PDF file to a PS file?
>
> You have found a bug.  There is an infinite loop in the code caused by a
> member of a linked list pointing to itself.  Debugging now.
>
> In the meantime, you might consider downloading XPDF from the VSI
> products site (https://vmssoftware.com/products/list/).  It includes a
> pdftops executable that may do what you want.
>
> Alternatively, I have found there are a number of printers that cannot
> print PDF files if simply sent to the raw port, or even via LPR, but
> which can print them if the file is sent via IPP.  If you have Multinet,
> try setting up an IPP queue to your printer.  If not, you can try my IPP
> command-line utility.

The problem has been found and fixed. A new kit has been posted. The
following is an example command that will convert a PDF file to postscript.

gs -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=ps2write -sOutputFile=xx.ps -f
sys$login:v1000_specs.pdf

No quotes are needed in the command line because the images are built
with the appropriate DECC feature logicals already set.

Mark Berryman

Re: GS convert PDF to PS.

<t0qk19$v0s$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=21375&group=comp.os.vms#21375

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: craigbe...@nospam.mac.com (Craig A. Berry)
Newsgroups: comp.os.vms
Subject: Re: GS convert PDF to PS.
Date: Tue, 15 Mar 2022 12:56:55 -0500
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <t0qk19$v0s$1@dont-email.me>
References: <t0l1m4$7a5$1@dont-email.me> <t0npmg$315$1@dont-email.me>
<t0qbpq$mbl$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 15 Mar 2022 17:56:57 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="1c48c6ad15b097577d3233ec1a5e060f";
logging-data="31772"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18RJwNqDQnTVZR8x9KkHn7Nr7r47RjjG3o="
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.7.0
Cancel-Lock: sha1:GiISiclWtVAh9vb/7aPm/ufCo8A=
In-Reply-To: <t0qbpq$mbl$1@dont-email.me>
Content-Language: en-US
 by: Craig A. Berry - Tue, 15 Mar 2022 17:56 UTC

On 3/15/22 10:36 AM, Mark Berryman wrote:

> The problem has been found and fixed.  A new kit has been posted.  The
> following is an example command that will convert a PDF file to postscript.
>
> gs -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=ps2write -sOutputFile=xx.ps -f
> sys$login:v1000_specs.pdf
>
> No quotes are needed in the command line because the images are built
> with the appropriate DECC feature logicals already set.

Unless folks are running without extended parse enabled, which some
folks inexplicably still do.

Re: GS convert PDF to PS.

<79c52114-1025-4228-b4a5-af93b45441f1n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=21384&group=comp.os.vms#21384

  copy link   Newsgroups: comp.os.vms
X-Received: by 2002:ac8:57d6:0:b0:2e0:68af:7c52 with SMTP id w22-20020ac857d6000000b002e068af7c52mr24718204qta.380.1647399909239;
Tue, 15 Mar 2022 20:05:09 -0700 (PDT)
X-Received: by 2002:ac8:5c42:0:b0:2e0:639d:677b with SMTP id
j2-20020ac85c42000000b002e0639d677bmr24764653qtj.536.1647399909053; Tue, 15
Mar 2022 20:05:09 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.vms
Date: Tue, 15 Mar 2022 20:05:08 -0700 (PDT)
In-Reply-To: <t0qk19$v0s$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=73.60.222.222; posting-account=M3IgSwoAAADJd6EnOmsrCCfB6_OyTOkv
NNTP-Posting-Host: 73.60.222.222
References: <t0l1m4$7a5$1@dont-email.me> <t0npmg$315$1@dont-email.me>
<t0qbpq$mbl$1@dont-email.me> <t0qk19$v0s$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <79c52114-1025-4228-b4a5-af93b45441f1n@googlegroups.com>
Subject: Re: GS convert PDF to PS.
From: xyzzy1...@gmail.com (John Reagan)
Injection-Date: Wed, 16 Mar 2022 03:05:09 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 25
 by: John Reagan - Wed, 16 Mar 2022 03:05 UTC

On Tuesday, March 15, 2022 at 1:57:00 PM UTC-4, Craig A. Berry wrote:
> On 3/15/22 10:36 AM, Mark Berryman wrote:
>
> > The problem has been found and fixed. A new kit has been posted. The
> > following is an example command that will convert a PDF file to postscript.
> >
> > gs -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=ps2write -sOutputFile=xx.ps -f
> > sys$login:v1000_specs.pdf
> >
> > No quotes are needed in the command line because the images are built
> > with the appropriate DECC feature logicals already set.
> Unless folks are running without extended parse enabled, which some
> folks inexplicably still do.
I don't enable extended parse unless I'm working on LLVM related things. I have
some command files that don't work well with extended parsing (I'm slowing fixing them).

Here's a tip: if you have code that wants to define your own LNM$FILE_DEV to include another
directory, don't put LNM$PROCESS, LNM$JOB, LNM$GROUP, LNM$SYSTEM back in as lowercase
instead of uppercase. I think there is some lookup that should be case-blind but isn't. Go do a

$ set process/parse=extended
$ define LNM$FILE_DEV lnm$process,lnm$job,lnm$group,lnm$system /table=LNM$PROCESS_DIRECTORY
$ show defa
$

and enjoy the confusion

Re: GS convert PDF to PS.

<t0sp8s$lts$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=21392&group=comp.os.vms#21392

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: jan-erik...@telia.com (Jan-Erik Söderholm)
Newsgroups: comp.os.vms
Subject: Re: GS convert PDF to PS.
Date: Wed, 16 Mar 2022 14:38:36 +0100
Organization: A noiseless patient Spider
Lines: 92
Message-ID: <t0sp8s$lts$1@dont-email.me>
References: <t0l1m4$7a5$1@dont-email.me> <t0npmg$315$1@dont-email.me>
<t0qbpq$mbl$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 16 Mar 2022 13:38:36 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="670863b6d854e756fbd8af4e806acd02";
logging-data="22460"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18CHe3TxIbyMTCzsy78zVIU"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.6.1
Cancel-Lock: sha1:NfbTlF+l16cZC63rGvu9G4WrkWY=
In-Reply-To: <t0qbpq$mbl$1@dont-email.me>
Content-Language: sv
 by: Jan-Erik Söderholm - Wed, 16 Mar 2022 13:38 UTC

Den 2022-03-15 kl. 16:36, skrev Mark Berryman:
> On 3/14/22 10:15 AM, Mark Berryman wrote:
>> On 3/13/22 9:13 AM, Jan-Erik Söderholm wrote:
>>> Hi.
>>>
>>> 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"
>>>
>>> The input file OUT.PDF only contains one page with 6-7 text lines
>>> and one Code128 barcode. File created from the Python tool Reportlab.
>>> And "out" refers to the Python step, it is the "input" file to GS.
>>>
>>> The PDf file opens fine on any other environment, also when put in
>>> a VMS directory served by WASD.
>>>
>>> I have checked that the file org is as required by GS:
>>>
>>>   Record format:      Stream_LF, maximum 0 bytes, longest 16384 bytes
>>>   Record attributes:  Carriage return carriage control
>>>
>>>
>>> GS just hangs and consumes 100% cpu until I end it with ctrl-C.
>>> Does it wait for some SYS$INPUT input? Any switch I'm missing?
>>>
>>> $ gs "-dNOPAUSE" "-sDEVICE=ps2write" "-sOutputFile=out.ps" "-fOUT.PDF"
>>> 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.
>>> HV04JES_01 16:01:48 GS        CPU=00:04:01.95 PF=48109 IO=152495 MEM=1369
>>> HV04JES_01 16:01:51 GS        CPU=00:04:04.56 PF=48109 IO=152496 MEM=1369
>>> HV04JES_01 16:01:53 GS        CPU=00:04:06.37 PF=48109 IO=152497 MEM=1369
>>>   Interrupt
>>>
>>> $
>>>
>>> One empty OUT.PS file is created and some empty TMPDIR files.
>>>
>>> _TEMP_T45404.;1       1/52        13-MAR-2022 16:01:45.84
>>> _TEMP_U45404.;1       0/0         13-MAR-2022 16:01:45.85
>>> _TEMP_V45404.;1       0/0         13-MAR-2022 16:01:45.85
>>> _TEMP_W45404.;1       0/0         13-MAR-2022 16:01:45.85
>>>
>>> Any ideas? Some simple example for a GS command line to convert
>>> a PDF file to a PS file?
>>
>> You have found a bug.  There is an infinite loop in the code caused by a
>> member of a linked list pointing to itself.  Debugging now.
>>
>> In the meantime, you might consider downloading XPDF from the VSI
>> products site (https://vmssoftware.com/products/list/).  It includes a
>> pdftops executable that may do what you want.
>>
>> Alternatively, I have found there are a number of printers that cannot
>> print PDF files if simply sent to the raw port, or even via LPR, but
>> which can print them if the file is sent via IPP.  If you have Multinet,
>> try setting up an IPP queue to your printer.  If not, you can try my IPP
>> command-line utility.
>
> The problem has been found and fixed.  A new kit has been posted.  The
> following is an example command that will convert a PDF file to postscript.
>
> gs -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=ps2write -sOutputFile=xx.ps -f
> sys$login:v1000_specs.pdf
>
> No quotes are needed in the command line because the images are built with
> the appropriate DECC feature logicals already set.
>
> Mark Berryman
>
>

Did not work without the quotes. I get:

$ gs -dNOPAUSE -dBATCH -sDEVICE=ps2write -sOutputFile=out.ps -fOUT.PDF
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.
GPL Ghostscript 9.55.0: Cannot open X display `(null)'.
**** Unable to open the initial device, quitting.
%SYSTEM-E-BADPARAM, bad parameter value
$

Re: GS convert PDF to PS.

<t0taga$lfg$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=21401&group=comp.os.vms#21401

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: mar...@theberrymans.com (Mark Berryman)
Newsgroups: comp.os.vms
Subject: Re: GS convert PDF to PS.
Date: Wed, 16 Mar 2022 12:32:41 -0600
Organization: A noiseless patient Spider
Lines: 157
Message-ID: <t0taga$lfg$1@dont-email.me>
References: <t0l1m4$7a5$1@dont-email.me> <t0npmg$315$1@dont-email.me>
<t0qbpq$mbl$1@dont-email.me> <t0sp8s$lts$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 16 Mar 2022 18:32:43 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="1c6b12c9a333f4a30fd8dc00fa48690f";
logging-data="22000"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+edH/GZn+RF0mdYIqg+7BTTuu6lb2hphg="
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0)
Gecko/20100101 Thunderbird/91.7.0
Cancel-Lock: sha1:7CLP/sqL5ZsWQQABR+yPMg0nhP8=
In-Reply-To: <t0sp8s$lts$1@dont-email.me>
Content-Language: en-US
 by: Mark Berryman - Wed, 16 Mar 2022 18:32 UTC

On 3/16/22 7:38 AM, Jan-Erik Söderholm wrote:
> Den 2022-03-15 kl. 16:36, skrev Mark Berryman:
>> On 3/14/22 10:15 AM, Mark Berryman wrote:
>>> On 3/13/22 9:13 AM, Jan-Erik Söderholm wrote:
>>>> Hi.
>>>>
>>>> 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"
>>>>
>>>> The input file OUT.PDF only contains one page with 6-7 text lines
>>>> and one Code128 barcode. File created from the Python tool Reportlab.
>>>> And "out" refers to the Python step, it is the "input" file to GS.
>>>>
>>>> The PDf file opens fine on any other environment, also when put in
>>>> a VMS directory served by WASD.
>>>>
>>>> I have checked that the file org is as required by GS:
>>>>
>>>>   Record format:      Stream_LF, maximum 0 bytes, longest 16384 bytes
>>>>   Record attributes:  Carriage return carriage control
>>>>
>>>>
>>>> GS just hangs and consumes 100% cpu until I end it with ctrl-C.
>>>> Does it wait for some SYS$INPUT input? Any switch I'm missing?
>>>>
>>>> $ gs "-dNOPAUSE" "-sDEVICE=ps2write" "-sOutputFile=out.ps" "-fOUT.PDF"
>>>> 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.
>>>> HV04JES_01 16:01:48 GS        CPU=00:04:01.95 PF=48109 IO=152495
>>>> MEM=1369
>>>> HV04JES_01 16:01:51 GS        CPU=00:04:04.56 PF=48109 IO=152496
>>>> MEM=1369
>>>> HV04JES_01 16:01:53 GS        CPU=00:04:06.37 PF=48109 IO=152497
>>>> MEM=1369
>>>>   Interrupt
>>>>
>>>> $
>>>>
>>>> One empty OUT.PS file is created and some empty TMPDIR files.
>>>>
>>>> _TEMP_T45404.;1       1/52        13-MAR-2022 16:01:45.84
>>>> _TEMP_U45404.;1       0/0         13-MAR-2022 16:01:45.85
>>>> _TEMP_V45404.;1       0/0         13-MAR-2022 16:01:45.85
>>>> _TEMP_W45404.;1       0/0         13-MAR-2022 16:01:45.85
>>>>
>>>> Any ideas? Some simple example for a GS command line to convert
>>>> a PDF file to a PS file?
>>>
>>> You have found a bug.  There is an infinite loop in the code caused
>>> by a member of a linked list pointing to itself.  Debugging now.
>>>
>>> In the meantime, you might consider downloading XPDF from the VSI
>>> products site (https://vmssoftware.com/products/list/).  It includes
>>> a pdftops executable that may do what you want.
>>>
>>> Alternatively, I have found there are a number of printers that
>>> cannot print PDF files if simply sent to the raw port, or even via
>>> LPR, but which can print them if the file is sent via IPP.  If you
>>> have Multinet, try setting up an IPP queue to your printer.  If not,
>>> you can try my IPP command-line utility.
>>
>> The problem has been found and fixed.  A new kit has been posted.  The
>> following is an example command that will convert a PDF file to
>> postscript.
>>
>> gs -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=ps2write -sOutputFile=xx.ps
>> -f sys$login:v1000_specs.pdf
>>
>> No quotes are needed in the command line because the images are built
>> with the appropriate DECC feature logicals already set.
>>
>> Mark Berryman
>>
>>
>
> Did not work without the quotes. I get:
>
> $ gs -dNOPAUSE -dBATCH -sDEVICE=ps2write -sOutputFile=out.ps -fOUT.PDF
> 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.
> GPL Ghostscript 9.55.0: Cannot open X display `(null)'.
> **** Unable to open the initial device, quitting.
> %SYSTEM-E-BADPARAM, bad parameter value
> $
>

Is there any chance you don't have SET PROCESS/PARSE_STYLE=EXTENDED set?
That setting is required in order to maintain the case of the command
line. Without it, quotes are still needed.

I've had extended parsing as a permanent setting for over 2 decades,
since the V7.2 days, so I sometimes forget that not everyone uses it.

I get:

$ gs -dNOPAUSE -dBATCH -sDEVICE=ps2write -sOutputFile=out.ps -fOUT.PDF
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.
Processing pages 1 through 9.
Page 1
Loading NimbusRoman-Regular font from
%rom%[Resource.Font]NimbusRoman-Regular... 4137464 2656445 2337472
951768 4 done.
Loading NimbusRoman-Bold font from
%rom%[Resource.Font]NimbusRoman-Bold... 4203352 2850744 2357576 972426 4
done.
Loading NimbusRoman-Italic font from
%rom%[Resource.Font]NimbusRoman-Italic... 4430072 3091238 2478200
1079748 4 done.
Page 2
Loading Courier font from SYS$COMMON:[SYSFONT.DECW.TYPE1]COUR.PFA...
4789696 3453069 3583920 2148360 4 done.
Loading StandardSymL font from %rom%[Resource.Font]StandardSymbolsPS...
4866392 3523388 3604024 2177833 4 done.
Using StandardSymbolsPS font for StandardSymL.
Loading NimbusSans-Regular font from
%rom%[Resource.Font]NimbusSans-Regular... 5036872 3686310 3644232
2206500 4 done.
Loading NimbusSans-Bold font from %rom%[Resource.Font]NimbusSans-Bold...
5223384 3878091 3644232 2213460 4 done.
Page 3
Loading StandardSymL font from %rom%[Resource.Font]StandardSymbolsPS...
5376776 4024882 2659136 1268618 4 done.
Using StandardSymbolsPS font for StandardSymL.
Page 4
Page 5
Page 6
Loading StandardSymL font from %rom%[Resource.Font]StandardSymbolsPS...
5735280 4370946 3081320 1668436 4 done.
Using StandardSymbolsPS font for StandardSymL.
Loading NimbusSans-BoldItalic font from
%rom%[Resource.Font]NimbusSans-BoldItalic... 5925864 4556046 3222048
1799621 4 done.
Page 7
Page 8
Loading StandardSymL font from %rom%[Resource.Font]StandardSymbolsPS...
6179776 4808043 3362776 1937933 4 done.
Using StandardSymbolsPS font for StandardSymL.
Page 9
$

Mark Berryman

Re: GS convert PDF to PS.

<t0tdi8$g95$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=21404&group=comp.os.vms#21404

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: FIRST.L...@vmssoftware.com (Robert A. Brooks)
Newsgroups: comp.os.vms
Subject: Re: GS convert PDF to PS.
Date: Wed, 16 Mar 2022 15:24:56 -0400
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <t0tdi8$g95$1@dont-email.me>
References: <t0l1m4$7a5$1@dont-email.me> <t0npmg$315$1@dont-email.me>
<t0qbpq$mbl$1@dont-email.me> <t0sp8s$lts$1@dont-email.me>
<t0taga$lfg$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 16 Mar 2022 19:24:56 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="c5debe3173e244a4d26ddf43dc96ff73";
logging-data="16677"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX187HKbHhKXA4IVc7+L7JRCjfjfNMZwoXLY1qnDGwBwjCA=="
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.7.0
Cancel-Lock: sha1:fElvt2wdaezFynw/6Hp7Q6/YJOk=
In-Reply-To: <t0taga$lfg$1@dont-email.me>
X-Antivirus-Status: Clean
Content-Language: en-US
X-Antivirus: Avast (VPS 220311-2, 3/11/2022), Outbound message
 by: Robert A. Brooks - Wed, 16 Mar 2022 19:24 UTC

On 3/16/2022 2:32 PM, Mark Berryman wrote:

> Is there any chance you don't have SET PROCESS/PARSE_STYLE=EXTENDED set?
> That setting is required in order to maintain the case of the command line.  Without it, quotes are still needed.
>
> I've had extended parsing as a permanent setting for over 2 decades, since the V7.2 days, so I sometimes forget that not everyone uses it.

It's not the default; I suspect many folks at VSI do not enable it.

--

-- Rob

Re: GS convert PDF to PS.

<t0tss9$aup$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=21411&group=comp.os.vms#21411

  copy link   Newsgroups: comp.os.vms
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: jan-erik...@telia.com (Jan-Erik Söderholm)
Newsgroups: comp.os.vms
Subject: Re: GS convert PDF to PS.
Date: Thu, 17 Mar 2022 00:46:17 +0100
Organization: A noiseless patient Spider
Lines: 108
Message-ID: <t0tss9$aup$1@dont-email.me>
References: <t0l1m4$7a5$1@dont-email.me> <t0npmg$315$1@dont-email.me>
<t0qbpq$mbl$1@dont-email.me> <t0sp8s$lts$1@dont-email.me>
<t0taga$lfg$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 16 Mar 2022 23:46:17 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="84caadac6ade95544add151dea1c24b6";
logging-data="11225"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+iXlIurWyiCPtqHfs75viM"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.6.1
Cancel-Lock: sha1:klagoYhtY/qZgJn0LGfyP8vxeBI=
In-Reply-To: <t0taga$lfg$1@dont-email.me>
Content-Language: sv
 by: Jan-Erik Söderholm - Wed, 16 Mar 2022 23:46 UTC

Den 2022-03-16 kl. 19:32, skrev Mark Berryman:
> On 3/16/22 7:38 AM, Jan-Erik Söderholm wrote:
>> Den 2022-03-15 kl. 16:36, skrev Mark Berryman:
>>> On 3/14/22 10:15 AM, Mark Berryman wrote:
>>>> On 3/13/22 9:13 AM, Jan-Erik Söderholm wrote:
>>>>> Hi.
>>>>>
>>>>> 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"
>>>>>
>>>>> The input file OUT.PDF only contains one page with 6-7 text lines
>>>>> and one Code128 barcode. File created from the Python tool Reportlab.
>>>>> And "out" refers to the Python step, it is the "input" file to GS.
>>>>>
>>>>> The PDf file opens fine on any other environment, also when put in
>>>>> a VMS directory served by WASD.
>>>>>
>>>>> I have checked that the file org is as required by GS:
>>>>>
>>>>>   Record format:      Stream_LF, maximum 0 bytes, longest 16384 bytes
>>>>>   Record attributes:  Carriage return carriage control
>>>>>
>>>>>
>>>>> GS just hangs and consumes 100% cpu until I end it with ctrl-C.
>>>>> Does it wait for some SYS$INPUT input? Any switch I'm missing?
>>>>>
>>>>> $ gs "-dNOPAUSE" "-sDEVICE=ps2write" "-sOutputFile=out.ps" "-fOUT.PDF"
>>>>> 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.
>>>>> HV04JES_01 16:01:48 GS        CPU=00:04:01.95 PF=48109 IO=152495 MEM=1369
>>>>> HV04JES_01 16:01:51 GS        CPU=00:04:04.56 PF=48109 IO=152496 MEM=1369
>>>>> HV04JES_01 16:01:53 GS        CPU=00:04:06.37 PF=48109 IO=152497 MEM=1369
>>>>>   Interrupt
>>>>>
>>>>> $
>>>>>
>>>>> One empty OUT.PS file is created and some empty TMPDIR files.
>>>>>
>>>>> _TEMP_T45404.;1       1/52        13-MAR-2022 16:01:45.84
>>>>> _TEMP_U45404.;1       0/0         13-MAR-2022 16:01:45.85
>>>>> _TEMP_V45404.;1       0/0         13-MAR-2022 16:01:45.85
>>>>> _TEMP_W45404.;1       0/0         13-MAR-2022 16:01:45.85
>>>>>
>>>>> Any ideas? Some simple example for a GS command line to convert
>>>>> a PDF file to a PS file?
>>>>
>>>> You have found a bug.  There is an infinite loop in the code caused by
>>>> a member of a linked list pointing to itself.  Debugging now.
>>>>
>>>> In the meantime, you might consider downloading XPDF from the VSI
>>>> products site (https://vmssoftware.com/products/list/).  It includes a
>>>> pdftops executable that may do what you want.
>>>>
>>>> Alternatively, I have found there are a number of printers that cannot
>>>> print PDF files if simply sent to the raw port, or even via LPR, but
>>>> which can print them if the file is sent via IPP.  If you have
>>>> Multinet, try setting up an IPP queue to your printer.  If not, you can
>>>> try my IPP command-line utility.
>>>
>>> The problem has been found and fixed.  A new kit has been posted.  The
>>> following is an example command that will convert a PDF file to postscript.
>>>
>>> gs -q -dNOPAUSE -dBATCH -dSAFER -sDEVICE=ps2write -sOutputFile=xx.ps -f
>>> sys$login:v1000_specs.pdf
>>>
>>> No quotes are needed in the command line because the images are built
>>> with the appropriate DECC feature logicals already set.
>>>
>>> Mark Berryman
>>>
>>>
>>
>> Did not work without the quotes. I get:
>>
>> $ gs -dNOPAUSE -dBATCH -sDEVICE=ps2write -sOutputFile=out.ps -fOUT.PDF
>> 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.
>> GPL Ghostscript 9.55.0: Cannot open X display `(null)'.
>> **** Unable to open the initial device, quitting.
>> %SYSTEM-E-BADPARAM, bad parameter value
>> $
>>
>
> Is there any chance you don't have SET PROCESS/PARSE_STYLE=EXTENDED set?

Of course there is such a chance. :-)
I do not remember ever having that enabled.
And no, no ODS-5 disks here either.

It did worked fine, b.t.w. Got an PS file. Next step is to get that
printed on the Xerox. Will start testing with an DCPS queue.

Thanks!

Jan-Erik.

Pages:12
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor