Bug 480853

Summary: ps2pdf should warn about undefined Dest's
Product: Ghostscript Reporter: Jack Moffitt <jack>
Component: PDF WriterAssignee: L. Peter Deutsch <ghost>
Status: NOTIFIED LATER    
Severity: normal    
Priority: P2    
Version: master   
Hardware: All   
OS: All   
Customer: Word Size: ---

Description Jack Moffitt 2001-11-12 02:07:43 UTC
Originally reported by: nobody@users.sourceforge.net

Distiller will warn about Destinations that are used but never defined.
GS 7.03 doesn't do that, but it would be nice if it did.

Run this thru ps2pdf to demonstrate:

%!
0 0 moveto 100 100 lineto stroke
[ /Dest /foo /DEST pdfmark 
showpage

100 100 moveto 200 200 lineto stroke
[/Rect [100 100 200 200] /Dest /foo /Border [0 0 0.1] /Subtype /Link /ANN pdfmark
showpage

% broken link, no warning
100 100 moveto 200 200 lineto stroke
[/Rect [100 100 200 200] /Dest /bar /Border [0 0 0.1] /Subtype /Link /ANN pdfmark
showpage

Comment 1 L. Peter Deutsch 2001-11-12 14:32:40 UTC
Comment originally by lpd@users.sourceforge.net
Logged In: YES 
user_id=8861

Thanks for the suggestion. ps2pdf currently has no way to
produce warnings at all. (It is not acceptable for an output
driver to attempt to write directly to stdout or stderr,
because drivers can be used in environments that don't have
stdio, or environments where their output is being sent to
stdout.) However, ps2pdf should produce warnings not only
for this but for other things as well, such as fonts that
cannot be embedded. We have added this to the list of
requested enhancements in doc/Projects.htm.