[ pdftex-Bugs-608 ] baseurl=./ of hyperref ignored
Bugs item #608, was opened at 2006-09-27 16:55 You can respond by visiting: http://sarovar.org/tracker/?func=detail&atid=493&aid=608&group_id=106 Category: None Group: None Status: Closed Resolution: Rejected Priority: 5 Submitted By: Jan Schween (janschween) Assigned to: Nobody (None) Summary: baseurl=./ of hyperref ignored Initial Comment: I try to make a \href to a file which is located relative to the PDF document. When loading the hyperref package i use the option baseurl=./ to indicate the actual location of the PDF document: \usepackage[ pdftex , baseurl=./ ]{hyperref} Inside the document i make a reference to an external file: \href{movies/map.m1v} % link to movie {movie {\tt map.m1v}.} % text to appear The examples A1 and A2 on http://www.meteo.physik.uni-muenchen.de/~hase/banner/texte/movie_example/ show the result. Look at the links in the caption of figure 1. A2 was created with pdfTeX : The link is expanded into 'movies/map.m1v' and does not work. If you download the pdf to your local machine and open it, the link will be expanded into 'movies/map.m1v' Accordingly the baseurl=./ is ignored. A1 was created with dvipdfm : The link is expanded into 'http://www.../movies/map.m1v' If you download the pdf to your local machine and open it the link will be expanded into 'file:///<localdir>/movies/map.m1v' that is what i would (naiveley) expect. Since dvipdfm is capable to produce a meaningful expansion of baseurl=./ the problem lies not within hyperef and not within the capabilites of PDF. (I sent this question yesterday also to pdtftex@tug.org - sorry if you read this twice) - Jan - ----------------------------------------------------------------------
Comment By: Jan Schween (janschween) Date: 2006-09-27 19:49
Message: Logged In: YES user_id=3905 pdfTeX can be forced to omit the /URI<> statement by setting the hyperref options: \hypersetup{baseurl={}} \hypersetup{linkfileprefix={}} - jan - ---------------------------------------------------------------------- Comment By: Jan Schween (janschween) Date: 2006-09-27 19:02 Message: Logged In: YES user_id=3905 I am aware that hyperref is independent of pdfTex. I allready mentioned:
Since dvipdfm is capable to produce a meaningful expansion of baseurl=./ the problem lies not within hyperef and not within the capabilites of PDF.
Ommiting the pdftex option for hyperef does not change the behaviour. (The only remaining difference between using pdftex and dvipdfm is the pdfTex option of hyperref) It must be a problem in pdfTeX. ... or in PDF: if baseurl=./ is set the following PDF-output is produced: pdfTeX: /URI<> dvipdfm: there is NO /URI<> statement in the pdf ! Test: If you just erase the /URI<> statement in the pdfTeX output then adobe-reader expands the link as you would expect it ! (see A3 on the www-page) Remains the question: Is this strange behaviour of adobe-reader, or is this documented in the PDF-standard ? - Jan - ---------------------------------------------------------------------- Comment By: Martin Schröder (oneiros) Date: 2006-09-27 17:35 Message: Logged In: YES user_id=421 Sorry, unless you can demonstrate that this is a bug in pdfTeX, I will assume that it is a problem of hyperref, which we don't maintain. ---------------------------------------------------------------------- You can respond by visiting: http://sarovar.org/tracker/?func=detail&atid=493&aid=608&group_id=106
participants (1)
-
noreply@sarovar.org