[Ql-Users] Ghostscript

2014-05-20 Thread Dilwyn Jones
I have received a query from a user in Italy concerning viewing PDF files on QL 
systems.

AFAIK, Jonathan Hudson’s Ghostscript port is probably the only utility able to 
do this, and probably only older PDF files.

Anyone with experience of this so I can give some form of answer to help him?

Dilwyn Jones
___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm

Re: [Ql-Users] Ghostscript

2014-05-20 Thread Graeme Gregory
On Tue, May 20, 2014 at 09:13:02PM +0100, Dilwyn Jones wrote:
 I have received a query from a user in Italy concerning viewing PDF files on 
 QL systems.
 
 AFAIK, Jonathan Hudson’s Ghostscript port is probably the only utility able 
 to do this, and probably only older PDF files.
 
 Anyone with experience of this so I can give some form of answer to help him?
 
Unlikely to ever happen at any form of decent speed, even on StrongARM
we had to have a highly optimised special fixed point version of PDF
library poppler to get anywhere near sane speed. Modern PDFs are all
heavy floating point users.

Graeme

___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm

RE: [ql-users] Ghostscript 6.0

2005-04-23 Thread Duncan Neithercut
Hi,
Thanks again. I have again tried it with this on the gs command line :
which should be identical to what you suggested
gslp -pram1_test_bas ram1_test.ps

I get : error undefined in gslp

Is there something that needs to be set in the gslp file from the
defaults?

Duncan Neithercut

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of John
Southern
Sent: 23 April 2005 00:51
To: [EMAIL PROTECTED]
Subject: Re: [ql-users] Ghostscript 6.0


On Friday 22 April 2005 21:51, Duncan Neithercut wrote:
 Thanks but thats the manual seems to say  what I have been using
 without success. do you need to specify an output device or font in
 the
 command line as well?

No to both questions. I have just run it here and as you can see below
it
generates a postscript file.

[EMAIL PROTECTED]:~/stella$ ls
test.txt
[EMAIL PROTECTED]:~/stella$ gslp -pfishstick.ps test.txt
Printing test.txt
Page height = 71.
[EMAIL PROTECTED]:~/stella$ ls
fishstick.ps  test.txt
[EMAIL PROTECTED]:~/stella$ cat test.txt
test file
1
2
3
[EMAIL PROTECTED]:~/stella$ cat fishstick.ps
%!
/B {save 3 1 roll translate /X 0 def} def
/BL {save 3 1 roll 90 rotate translate /X 0 def} def
/E {showpage restore} def
/V {neg X exch moveto} def
/M {/X 2 index def neg moveto} def
/S {currentfile =string readline pop show} def
/RE {findfont dup length dict begin {1 index /FID ne {def} {pop pop}
ifelse}
forall /Encoding ISOLatin1Encoding def currentdict end definefont} def
/BFont /Courier-ISOLatin1 /Courier RE 10 scalefont def
/HFont /Courier-Bold-ISOLatin1 /Courier-Bold RE 10 scalefont def
50.4 784.812866 B
HFont setfont
-13.04 V
S test.txt
170.4 -13.04 M
S Sat Apr 23 00:37:32 BST 2005
460.8 -13.04 M
S page 1
BFont setfont
0 18.5 M
S test file
29 V
S 1
39.5 V
S 2
50 V
S 3
E
[EMAIL PROTECTED]:~/stella$

John S
___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm


___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm


Re: [ql-users] Ghostscript 6.0

2005-04-22 Thread John Southern
On Friday 22 April 2005 19:15, Duncan Neithercut wrote:
 Anyone an expert on Ghostscript. Have installed it on my Q60, and it
 works very well, prints postscript files and text and graphics.
 It comes with some utility scripts one of which gslp.ps allows the
 printing of text files directly to the printer without conversion to
 postscript. This works well also.
 My problem is that this script should also convert text files to
 postscript as a file.
 When I try to do this according to the manual I get an error message
 indicating that I have not passed it all the info it needs to do the
 job yet it has been set up according to the manual. Has anyone used it
 or GS generally?

Try the following

gslp -ptest.ps test.txt

This uses the Ghostscript line printer to generate the postscript file called 
test.ps from the test.txt file.

John S
___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm


Re: [ql-users] Ghostscript 6.0

2005-04-22 Thread John Southern
On Friday 22 April 2005 21:51, Duncan Neithercut wrote:
 Thanks but thats the manual seems to say  what I have been using
 without success. do you need to specify an output device or font in
 the
 command line as well?

No to both questions. I have just run it here and as you can see below it 
generates a postscript file.

[EMAIL PROTECTED]:~/stella$ ls
test.txt
[EMAIL PROTECTED]:~/stella$ gslp -pfishstick.ps test.txt
Printing test.txt
Page height = 71.
[EMAIL PROTECTED]:~/stella$ ls
fishstick.ps  test.txt
[EMAIL PROTECTED]:~/stella$ cat test.txt
test file
1
2
3
[EMAIL PROTECTED]:~/stella$ cat fishstick.ps
%!
/B {save 3 1 roll translate /X 0 def} def
/BL {save 3 1 roll 90 rotate translate /X 0 def} def
/E {showpage restore} def
/V {neg X exch moveto} def
/M {/X 2 index def neg moveto} def
/S {currentfile =string readline pop show} def
/RE {findfont dup length dict begin {1 index /FID ne {def} {pop pop} ifelse} 
forall /Encoding ISOLatin1Encoding def currentdict end definefont} def
/BFont /Courier-ISOLatin1 /Courier RE 10 scalefont def
/HFont /Courier-Bold-ISOLatin1 /Courier-Bold RE 10 scalefont def
50.4 784.812866 B
HFont setfont
-13.04 V
S test.txt
170.4 -13.04 M
S Sat Apr 23 00:37:32 BST 2005
460.8 -13.04 M
S page 1
BFont setfont
0 18.5 M
S test file
29 V
S 1
39.5 V
S 2
50 V
S 3
E
[EMAIL PROTECTED]:~/stella$   

John S
___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm


RE: [ql-users] Ghostscript 6.0

2005-04-22 Thread Duncan Neithercut
Thanks but thats the manual seems to say  what I have been using
without success. do you need to specify an output device or font in
the
command line as well?

Duncan Neithercut

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of John
Southern
Sent: 22 April 2005 19:47
To: [EMAIL PROTECTED]
Subject: Re: [ql-users] Ghostscript 6.0


On Friday 22 April 2005 19:15, Duncan Neithercut wrote:
 Anyone an expert on Ghostscript. Have installed it on my Q60, and it
 works very well, prints postscript files and text and graphics.
 It comes with some utility scripts one of which gslp.ps allows the
 printing of text files directly to the printer without conversion to
 postscript. This works well also.
 My problem is that this script should also convert text files to
 postscript as a file.
 When I try to do this according to the manual I get an error message
 indicating that I have not passed it all the info it needs to do the
 job yet it has been set up according to the manual. Has anyone used
it
 or GS generally?

Try the following

gslp -ptest.ps test.txt

This uses the Ghostscript line printer to generate the postscript file
called
test.ps from the test.txt file.

John S
___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm


___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm


[ql-users] Ghostscript 6.0

2005-04-22 Thread Duncan Neithercut
Hi

Anyone an expert on Ghostscript. Have installed it on my Q60, and it
works very well, prints postscript files and text and graphics.
It comes with some utility scripts one of which gslp.ps allows the
printing of text files directly to the printer without conversion to
postscript. This works well also.
My problem is that this script should also convert text files to
postscript as a file.
When I try to do this according to the manual I get an error message
indicating that I have not passed it all the info it needs to do the
job yet it has been set up according to the manual. Has anyone used it
or GS generally?

Duncan Neithercut


___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm