Skip to main content
Participant
April 18, 2010
Question

Corrupted Font, PDF File detection in illustrator

  • April 18, 2010
  • 1 reply
  • 1538 views

Hello,

I am new to illustrator.Is there any way to know in illustrator using javascript that the opened PDF have corrupted fonts inside?.Two cases, first in which font is available in our system and other in which font is not available in our system.If font is not available in our system the Illustrator ask to replace the font with some other default font but if the font is available in our system it just takes the orignal correct font from system and make the corrupted PDF font, correct.In both the cases corrupted font is not coming in the PDF opened in illustrator.In javascript textFont abject is perfect, it has all the properties which a normal textFont object must have.

This topic has been closed for replies.

1 reply

JETalmage
Inspiring
April 18, 2010

Joy,

Understand: The alert you describe is telling you that a font embedded in the PDF is not available for use in the OS. The font is just missing, not "corrupted."

An actual corrupted font can manifest itself in many errant and unpredictable ways in Illustrator; the program doesn't "know" the font is corrupted; it just suffers from whatever damage the corruption causes--like any other kind of corrupted file.

When you open a PDF in Illustrator, the dialog in the standard user interface gives you opportunity to replace a missing font with one that is installed, or ignore it (in which case the default font will be substituted.) As to whether Javascript can be written to automate that, I doubt that the detection of the alerts and the options for answering them are supported in the Javascript model. Moreover, the "answers" would probably have to be written for your specific set of available fonts if you want it to answer with a substitution. But I've never explored that, so I'll defer to anyone who has.

JET

Participant
April 19, 2010

Thanks JET,

I understand it.I observed the diffrence between the prompts for corrupted font PDF file and correct font PDF file.I have attached the two screen shots "correct_font.jpg" and "corrupted_font.jpg".The corrupted font prompt says "The document contains PDF objects that have been reinterpreted", both prompts are diffrent from each other, but yes I agree both are asking to replace  font.

Thanks,
Joy Abbhi