PostScript Support?

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

Re: PostScript Support?

Post by cmfk »

Thanks Rich, yeah the device was rebooted after changing the configuration.
RWAP
Site Admin
Posts: 512
Joined: Wed Sep 13, 2017 9:20 pm
Location: Oswestry, Shropshire
Contact:

Re: PostScript Support?

Post by RWAP »

Ah I have found the issue - I came across this previously - the EOT character ($04) is causing issues with the capture, so we miss out the next character in the raw data.

I just need to check how I overcame this before
Retro-Printer Specialists
RWAP Software
RWAP Adventures
SellMyRetro
Retro-Printer Module

Also Involved in:
Icephorm
RWAP
Site Admin
Posts: 512
Joined: Wed Sep 13, 2017 9:20 pm
Location: Oswestry, Shropshire
Contact:

Re: PostScript Support?

Post by RWAP »

Please try https://www.dropbox.com/s/k44tu61rzg98d ... s.img?dl=0

This seems to work here but it is difficult getting a meaningful printout from a Windows Postscript driver!
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 »

Hello again, I’ve downloaded the new release but now it doesn’t seem to capture/store any data or create any PDFs! :cry: I don’t think I’ve missed anything in the config, seems to be all set up as per previous attempts!

Any ideas?!

Cheers
RWAP
Site Admin
Posts: 512
Joined: Wed Sep 13, 2017 9:20 pm
Location: Oswestry, Shropshire
Contact:

Re: PostScript Support?

Post by RWAP »

Sorry - no idea you would need to send me the contents of /root/config and /home/pi/data directories so I can see if I can work out what is going on. It is possible that you need to increase the printer_delay configuration in case you are missing some bytes for example.

However, I can't work out how to write directly to a USB-Centronics adaptor on a Windows PC (it doesn't create a COM / LPT port unfortunately), so I could only test by using a windows printer driver, which doesn't seem to be compliant with GhostScript.

If you use the ps2pdf 1.raw 1.pdf (say) command, what errors do you see - that might give us a clue - though generally the error reports just moan about a byte at a specific file position so you then have to guess. I can't find an online method of checking a postscript file for errors - unless you can!
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 »

Hi again,

Good(ish) news! I've figured out the issues, but don't know why it's doing what it's doing!

Opened the .raw file in notepad++ and saw some extra characters at the beginning and end of the file, same characters show up in the nano editor as well. By deleting those I could then successfully create a pdf!

There's another issue with a different file, where it seems to create duplicate characters in the raw capture. For example, "Lineto" will become "Liieto" or "Linnto", "Linetoo" etc. There were quite a few of these kinds of errors throughout the raw data, again by going through and correcting these I was able to convert the file to a PDF (there's a very good postscript addon for the Eclipse IDE, which helped check for errors!)

Might you have any idea why those additional characters are captured at the beginning/end of the files and why it might duplicate random characters?

Cheers
Attachments
IOS-End.png
IOS-End.png (127.57 KiB) Viewed 12448 times
IOS-Beginning.png
IOS-Beginning.png (130.93 KiB) Viewed 12448 times
RWAP
Site Admin
Posts: 512
Joined: Wed Sep 13, 2017 9:20 pm
Location: Oswestry, Shropshire
Contact:

Re: PostScript Support?

Post by RWAP »

The ^D appears to be a CTRL D character sent by a terminal (End Transmit). You can actually try adding these characters to the /root/config/ignore_characters file on a new line.

The repeated characters tend to be caused by the /root/config/printer_delay setting being too short.
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 »

Awesome, I'll give that a go!
cmfk
Posts: 11
Joined: Sun Dec 20, 2020 3:32 pm

Re: PostScript Support?

Post by cmfk »

So I changed the printer_delay from 5 to 10 initially, but still found the raw data had repeated characters, kept on increasing it all the way to 1000 with no change? Should adding a delay as bit as that make any change to how long the raw file is produced? It didn't seem to take any longer to process the data either way.

The ^D added to the ignore_strings file seemed to work though!
Post Reply