PostScript Support?

cmfk
Posts: 11
Joined: Sun Dec 20, 2020 3:32 pm

PostScript Support?

Post by cmfk »

So I went ahead and got the retroprinter to connect to an ancient Sun workstation to enable PDF creation on printouts. After a whole lot of playing around with settings I couldn't get anything sensible out of it. Turns out it outputs postscript(?) which this doesn't seem to support? Are there any plans to support it or have I missed something?!
RWAP
Site Admin
Posts: 512
Joined: Wed Sep 13, 2017 9:20 pm
Location: Oswestry, Shropshire
Contact:

Re: PostScript Support?

Post by RWAP »

I did not realise that some computers / equipment would just print to postscript rather than HP PCL.

You should be able to overcome this by editing /home/pi/printpcl.sh (line 124):

Code: Select all

gpcl6 -dNOPAUSE -sDEVICE=pdfwrite -r720 -g$pageSize -sOutputFile="${outputDir}/${pdfPrefix}$(date +'%Y-%m-%d_%H%M%S').pdf" -sColorConversionStrategy=RGB "$filename"; 
Try replacing this with

Code: Select all

ps2pdf "$filename" "${outputDir}/${pdfPrefix}$(date +'%Y-%m-%d_%H%M%S').pdf";
This is untested at the moment. Add some captured sample files if I need to investigate please (as I don't have any postscript files).

I don't know if the -g$pageSize parameter could be used to stipulate the output page size
Retro-Printer Specialists
RWAP Software
RWAP Adventures
SellMyRetro
Retro-Printer Module

Also Involved in:
Icephorm
cmfk
Posts: 11
Joined: Sun Dec 20, 2020 3:32 pm

Re: PostScript Support?

Post by cmfk »

Thanks for the quick reply, I'll give it a go tomorrow when I'm back in work and let you know how it goes!
cmfk
Posts: 11
Joined: Sun Dec 20, 2020 3:32 pm

Re: PostScript Support?

Post by cmfk »

Hi again,

So I went ahead and made the change, originally it had some error where it’d create endless PDF’s from one printout. Checked the change I made and hadn’t capitalised something in the code. Changed that and now it doesn’t create any PDF’s.

Which files would you like me to upload?
RWAP
Site Admin
Posts: 512
Joined: Wed Sep 13, 2017 9:20 pm
Location: Oswestry, Shropshire
Contact:

Re: PostScript Support?

Post by RWAP »

cmfk wrote: Mon Dec 21, 2020 2:53 pm Hi again,

So I went ahead and made the change, originally it had some error where it’d create endless PDF’s from one printout. Checked the change I made and hadn’t capitalised something in the code. Changed that and now it doesn’t create any PDF’s.

Which files would you like me to upload?
Upload a sample postscript file (from /home/pi/data/raw/) and your printpcl.sh file - did you change it usingthe nano editor, or in Windows?

If you changed the script file in Windows, you may have inadvertantly changed the line endings!
Retro-Printer Specialists
RWAP Software
RWAP Adventures
SellMyRetro
Retro-Printer Module

Also Involved in:
Icephorm
cmfk
Posts: 11
Joined: Sun Dec 20, 2020 3:32 pm

Re: PostScript Support?

Post by cmfk »

Files attached, I did edit the file using the nano editor so line endings should be unchanged. 2 .raw files and the printpcl.sh attached
Attachments
New Compressed (zipped) Folder.zip
(28.38 KiB) Downloaded 825 times
RWAP
Site Admin
Posts: 512
Joined: Wed Sep 13, 2017 9:20 pm
Location: Oswestry, Shropshire
Contact:

Re: PostScript Support?

Post by RWAP »

OK I seem to have it working here - can you please try:

https://www.dropbox.com/s/9buj3z15228qw ... 8.img?dl=0

You will need to set /root/config/emulation
to
PS
(it is currently HP)
Retro-Printer Specialists
RWAP Software
RWAP Adventures
SellMyRetro
Retro-Printer Module

Also Involved in:
Icephorm
cmfk
Posts: 11
Joined: Sun Dec 20, 2020 3:32 pm

Re: PostScript Support?

Post by cmfk »

Lovely, many thanks for the work done on this! I'll give it a go as soon as I can and let you know how it goes.

Thanks again!
cmfk
Posts: 11
Joined: Sun Dec 20, 2020 3:32 pm

Re: PostScript Support?

Post by cmfk »

Hi again,

So I got the new version installed and set the emulation to PS, now it's creating blank PDFs? Was there anything else I needed to change and curious to know if you managed to create PDFs with the data and what they looked like?

Added files again incase they're needed

Cheers
Attachments
Files.zip
(55.64 KiB) Downloaded 576 times
RWAP
Site Admin
Posts: 512
Joined: Wed Sep 13, 2017 9:20 pm
Location: Oswestry, Shropshire
Contact:

Re: PostScript Support?

Post by RWAP »

cmfk wrote: Tue Dec 29, 2020 1:31 am Hi again,

So I got the new version installed and set the emulation to PS, now it's creating blank PDFs? Was there anything else I needed to change and curious to know if you managed to create PDFs with the data and what they looked like?

Added files again incase they're needed

Cheers
I shall try this again here when I get a chance - did you restart the Retro-Printer after changing the emulation configuration ?

Rich
Retro-Printer Specialists
RWAP Software
RWAP Adventures
SellMyRetro
Retro-Printer Module

Also Involved in:
Icephorm
Post Reply