Solved

ghostscript crashes when trying to load symbol set PC-8 (10U)

Posted on 2010-09-01
14
566 Views
Last Modified: 2012-05-10
I have some raw PCL data that needs to be converted to PDF. This data also needs to be searchable in the resultant PDF. When trying to load symbol set PC-8 with <escape>(10UD ghostscript crashes with
Error: /undefined in --get--
Operand stack:
   --dict:5/5(L)--   A   1   --dict:10/10(L)--   --dict:10/10(L)--   FontName   --dict:10/10(L)--   Name

Any advice on how to fix it or a get rouns would be appreciated.
0
Comment
Question by:moorepay
  • 7
  • 6
14 Comments
 
LVL 14

Accepted Solution

by:
cjl7 earned 72 total points
ID: 33584074
Not knowing better, have you looked for fonts to support the export?

I had similar problems with LaTeX -> pdf (don't know if it is relevant)

//jonas
0
 
LVL 34

Assisted Solution

by:Duncan Roe
Duncan Roe earned 428 total points
ID: 33585414
I would make sure you have the very latest Ghostscript, or look for an older version of PC-8. I have had postscript errors on various occasions after upgrading e.g. acroread, but so far touch wood an upgrade to Ghostscript or the underlying gs engine has fixed it.
0
 

Author Comment

by:moorepay
ID: 33585462
I've tried on gs version 8.71 (the latest I think) but still get the same issue. I have tried loading a font in ghostscript but cannot find how to load it in the PDF via PCL escape sequences e.g. <ESC>(10U would work if the PCL was sent direct to an HP printer. The other option I was thinking of was to call it via a font selection ID  - <ESC>(#X where # is 0-32767 but I cannot find out what the # should be.

I'm grasping at straws here a bit but any more help would be appreciated.
0
 
LVL 34

Assisted Solution

by:Duncan Roe
Duncan Roe earned 428 total points
ID: 33586929
gs can output PCL directly - or it used to be able to.
Re-read q - you want to convert PCL to postscript / PDF? Can gs do that?
0
 

Author Comment

by:moorepay
ID: 33587845
Yes it definitely can and it can do some quite natty stuff e.g. add bookmarks, change the contents of the display in properties section.
0
 
LVL 34

Assisted Solution

by:Duncan Roe
Duncan Roe earned 428 total points
ID: 33591961
Interesting. However, the error is complaining about a postscript input file - do you know what file?
0
 

Author Comment

by:moorepay
ID: 33616404
Sorry for delay in responding - have been away from my PC for a few days.

I think gs uses postscript as its core when processing any kind of file so that's probably a red herring.
0
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 

Author Comment

by:moorepay
ID: 33618542
The really simple question I am trying to get an answer to here is does anybody know how to incorporate PC-8 Code page 437 in ghostscript on a linux server?
0
 
LVL 34

Assisted Solution

by:Duncan Roe
Duncan Roe earned 428 total points
ID: 33622514
Interesting hypothesis in penultimate post. What happens if you tell gs to make a postscript file - does it then finish normally? Is the file OK? (can gs process it further?)
No idea about the code page sorry
0
 

Author Comment

by:moorepay
ID: 33624942
I've tried using -sDEVICE=pswrite as a parameter to gs but it also fails. The main problem is that gs does not recognize the PC-8 font.
0
 
LVL 34

Assisted Solution

by:Duncan Roe
Duncan Roe earned 428 total points
ID: 33625410
I expect you have tried this, but do you have any example of a font load that works?
0
 

Author Comment

by:moorepay
ID: 33625719
I have tried a couple of others just to make sure my syntax was OK and they worked i.e. gs didn't crash.

It's very frustrating!
0
 
LVL 34

Assisted Solution

by:Duncan Roe
Duncan Roe earned 428 total points
ID: 33627330
I wonder if the PC-8 font file you have could be defective in some way. Did it come with an md5sum?
0
 

Author Closing Comment

by:moorepay
ID: 33660383
I going to close this question now as I found that using font 19U worked fro the searchable element. This just left me with no box drawing characters (one advantage of 10U). Bit  the bullet and just used hyphens and pluses instead. If I do find out how to do this in the future I will post a comment.

Thanks for all of your contributions
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
AWS EC2 Linux 1 54
Auto channel for WiFi (Access Point) 3 76
Access_log 17 99
Why isnt it sending mail from my php but is from my server 10 35
rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now