Bug 480853 - ps2pdf should warn about undefined Dest's
Summary: ps2pdf should warn about undefined Dest's
Status: NOTIFIED LATER
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: PDF Writer (show other bugs)
Version: master
Hardware: All All
: P2 normal
Assignee: L. Peter Deutsch
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-11-12 02:07 UTC by Jack Moffitt
Modified: 2007-12-13 12:55 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.