Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000394graphvizOutput Generationpublic2004-05-25 08:232011-04-28 04:02
ReporterWolfgang Lang 
Assigned Togviz 
PrioritynormalSeverityminorReproducibilityalways
StatusacknowledgedResolutionno change required 
PlatformOSx86-Windows-5.1OS Version
Summary0000394: Links in PDF Output allowes only http:// Syntax
Description



If you create PDF files with hyperlinks, the links are created as
external web references (the PostScript code looks something like this)
<CD>
[ /Rect [ 78 98 128 114 ]
  /Border [ 0 0 0 ]
  /Action << /Subtype /URI /URI (./scripts/example.pl.pdf) >>
  /Subtype /Link
/ANN pdfmark



</CD>
After the conversion to PDF the link is shown as something like http://./scripts/example.pl.pdf [^]
If you klick on this link, Acrobat Reader tries to open the file within Mozilla (or IE)
instead of Acrobat Reader.



It would be more suitable for PDF files if the PostScript would contain something like



<CD>
[ /Rect [ 78 98 128 114 ]
  /Border [ 0 0 0 ]
  /Action /Launch
  /File (./scripts/example.pl.pdf)
  /Subtype /Link
/ANN pdfmark



</CD>
in order to use Acrobat Reader directly to launch other PDF files
Steps To Reproduce

digraph G {
label="Workflow example" fontsize=10 fontname="Helvetica"
MAIN [style=filled,color=".7 .3 1.0",fontsize=10,fontname="Helvetica",height=0.2,width=0.4]
END [style=filled,color=".7 .3 1.0",fontsize=10,fontname="Helvetica",height=0.2,width=0.4]
example [label="example",shape=box,style=filled,color=".1 .5 1.0", URL="./scripts/example.pl.pdf",fontsize=10,fontname="Helvetica",height=0.2,width=0.4]
example -> END [label="NEXT",fontsize=8,fontname="Helvetica",height=0.2,width=0.4]
MAIN -> example [label="BEGIN",fontsize=8,fontname="Helvetica",height=0.2,width=0.4]
MAIN -> END [color=red,label="ERROR",fontsize=8,fontname="Helvetica",height=0.2,width=0.4]
END [color=red,style=filled,fontsize=10,fontname="Helvetica",height=0.2,width=0.4]
}
TagsNo tags attached.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENT 
I suggest changing line 180 from mapgen.c to differentiate
PDF and non PDF Links
Sorry that I have no clue how to figure out if the given link points
to a pdf. Maybe it's the easiest way to check the file extension
<CD>
else if (Output_lang == POSTSCRIP
FORMER-ID455
INPUT-FILE
OUTPUT-FILE
STATUS-COMMENTRequest
VERSION     1.12
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2011-04-28 04:02 user1 New Issue
2011-04-28 04:02 user1 Assigned To => user1


MantisBT 1.2.5[^]
Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker