Skip to main content
Participant
July 6, 2010
Question

How to edit postscript

  • July 6, 2010
  • 1 reply
  • 30792 views

Hi All,

I need to edit the postscript and change the font names. if i open the ps file in to ultraedit and do some changes and it's not converting the file to PDF and showing some error.

I need to edit the ps file and do some font name changes in text mode. Please suggest me what is the best way to do this?

Regards

Selva

This topic has been closed for replies.

1 reply

Dov Isaacs
Legend
July 6, 2010

Basd on your description, it would seem that you are producing PostScript for distillation into PDF, correct?

It would certainly help us help you if you indicated what some error actually was. Without knowing the actual error, it is very difficult to diagnose the problem.

It is important for you to realize that PostScript is not necessarily an ASCII file format. There can be binary data. Be very careful in using editors, including UltraEdit, on those files. Do not let the editor change line endings!

Changing font names implies that you know the PostScript name for the font, not necessarily the name that you might see in a layout program when you create content. If you don't have and use the PostScript name, the search for the font will fail.

Also be aware that by changing the font name, other aspects of your job may differ and possibly fail. Different fonts have different character widths. As such, you may end up with very strange looking output since the positioning of text strings was done on the basis of the original fonts specified in the PostScript file.

          - Dov

- Dov Isaacs, former Adobe Principal Scientist (April 30, 1990 - May 30, 2021)
Participant
July 7, 2010

Hi Dov,

Thanks for your reply. Please see the below actual process what i am trying

to do.

I am using 3b2 software to create this ps file. We are not

getting actual font name in PDF and 3b2 uses font's short name always. So

from the below line i am trying to find out the long name

"HelveticaNeueLTStd-Bd" and replace in to "AdvOT34fe1490_B" font in complete

file. I am not going to do anything else in the PS File.

%The font AdvOT34fe1490_B is a conversion from HelveticaNeueLTStd-Bd

(OpenType) with the following copyright notice:

if i do then it's replacing the below lines and ending an error while

converting in to PDF file.

/FD0 {-52 -208 937 968} /AdvOT34fe1490_B (Copyright \251 1988, 1990, 1993,

2002 Adobe Systems Incorporated. All Rights Reserved. \251 1981, 2002

Heidelberger Druckmaschinen AG. All rights reserved.) (AdvOT34fe1490_B)

DPROC1

/f0 /AdvOT34fe1490_B 1058.34 0 0 -1058.34 0 0 MF

/f3 /AdvOT34fe1490_B 282.22 0 0 -282.22 0 0 MF

......

Please note the error while distilling the PS File.

%%[ Error: syntaxerror; OffendingCommand: ? ]%%

%%[ Flushing: rest of job (to end-of-file) will be ignored ]%%

%%[ Warning: PostScript error. No PDF file produced. ] %%

Please suggest me to overcome this problem. it would be very grateful if i

get solution within PS File.

Thanks

Selva

Dov Isaacs
Legend
July 7, 2010

The fact that you are not getting an error in terms of a missing font, but rather, a syntax error, would be indicative of some other corruption of the PostScript file, especially in some area that was binary data of some type. As I indicated, you must be very careful not to let your editor change what it thinks are line ending characters.

You are changing the name of a font, but is that font embedded in the PDF file? If it is already embedded in the PDF file, why would you want or need to change its name? If it is not embedded, then conceivably, you only need to edit the reference to the font.

Why can you not change the reference to the font in the program that generates the PostScript? That would make more sense.

          - Dov

- Dov Isaacs, former Adobe Principal Scientist (April 30, 1990 - May 30, 2021)