Re: Fix for 687824, Ghostscript 8.14/ghostview 4.6 cannot open a speciel *pdf file
"Igor V. Melichev" <[email protected]> Mon, 6 Dec 2004 20:43:08 +0300
| Newsgroups | gmane.comp.printing.ghostscript.patches |
|---|---|
| Message-ID | <[email protected]> |
Oops, I insufficiently understood the problem when replying at the first time. Since the message appears once per glyph definition, the patch is fine. So please ignore my last requirement. Igor. ----- Original Message ----- From: "Igor V. Melichev" <[email protected]> To: "Alex Cherepanov" <[email protected]>; "gs-code-review" <[email protected]> Sent: Monday, December 06, 2004 5:05 PM Subject: Re: [gs-code-review] Fix for 687824, Ghostscript 8.14/ghostview 4.6 cannot open a speciel *pdf file > Alex, > > The ideas looks attarctive, but > I'm aware of a multiple redundant messages from this patch. > Could you print one per document or per font ? > Thank you. > > Igor. > > ----- Original Message ----- > From: "Alex Cherepanov" <[email protected]> > To: "gs-code-review" <[email protected]> > Sent: Sunday, December 05, 2004 3:30 PM > Subject: [gs-code-review] Fix for 687824, Ghostscript 8.14/ghostview 4.6 cannot open a speciel *pdf file > > >> Provide back-up definitions of /-| /RD /|- /ND /| /NP for the benefit of >> embedded PDF fonts that forget to define them. Issue a warning when they >> are used. Don't fix PS interpreter because Distiller doesn't accept this >> font either. >> Fix bug 687824 >> >> > > > -------------------------------------------------------------------------------- > > >> Index: gs/lib/pdf_font.ps >> =================================================================== >> RCS file: /cvs/ghostscript/gs/lib/pdf_font.ps,v >> retrieving revision 1.71 >> diff -b -u -r1.71 pdf_font.ps >> --- gs/lib/pdf_font.ps 26 Oct 2004 09:44:54 -0000 1.71 >> +++ gs/lib/pdf_font.ps 5 Dec 2004 11:59:19 -0000 >> @@ -464,6 +464,19 @@ >> currentdict //systemdict eq { end } if >> { stop } if >> } bdef >> + >> + /undef_proc_warning { >> + ( **** Embedded font uses undefined procedure ) pdfformaterror >> + .namestring pdfformaterror (\n) pdfformaterror >> + } bdef >> + >> + /-| { string currentfile exch readstring pop /-| undef_proc_warning } executeonly bdef >> + /RD { string currentfile exch readstring pop /RD undef_proc_warning } executeonly bdef >> + /|- { noaccess def /|- undef_proc_warning } executeonly bdef >> + /ND { noaccess def /ND undef_proc_warning } executeonly bdef >> + /| { noaccess put /| undef_proc_warning } executeonly bdef >> + /NP { noaccess put /NP undef_proc_warning } executeonly bdef >> + >> end readonly def >> /readtype1 { % <font-resource> <stream-dict> readtype1 <font> >> % Read the definition, using a procedure-based filter >> > > > -------------------------------------------------------------------------------- > > >> _______________________________________________ >> gs-code-review mailing list >> [email protected] >> http://www.ghostscript.com/mailman/listinfo/gs-code-review >>