Opened 16 years ago
Last modified 6 years ago
#4043 new defect
Linked images in PDF don't work properly
Reported by: | anonymous | Owned by: | |
---|---|---|---|
Priority: | high | Component: | TracWikiToPdfPlugin |
Severity: | major | Keywords: | image, link |
Cc: | Trac Release: | 0.11 |
Description
In the PDF the links on images should be improved, with one enhancement and one defect-fix:
Enhancement
In the Wiki-output, the links point to the raw attachment (raw-attachment/wiki/[page name]/[image name]. In this case, it would be better to link to the "attachment page" in the wiki (attachment/wiki/[page name]/[image name]) so that the image is viewed in context and in the browser rather than having to be downloaded and saved or viewed with a local image editor.
Defect fix
Additionally, in single-page output, the links on images point to wiki/[image name] rather than attachment/wiki/[page name]/[image name] and so clicking on the image in the PDF gets a "describe [image name]" page rather than the image. This should behave as for wiki output (with the suggested enhancement!).
Attachments (0)
Change History (6)
comment:1 Changed 15 years ago by
comment:4 Changed 13 years ago by
comment:5 Changed 13 years ago by
comment:6 Changed 6 years ago by
Owner: | Diorgenes Felipe Grzesiuk deleted |
---|
I have patched wikitopdf.py to fix embedded image and links in PDF files. Unfortunately,
It seems i can't add it here :
Submission rejected as potential spam (Content contained these blacklisted patterns: '(?i)<a. href=')
If there is another way i can add it, let me know. I could substitute all h.ref in the patch with hfakeref but it's not ideal.