Opened 10 years ago
Last modified 7 years ago
#11859 new enhancement
[PATCH] Fix plugin for Trac >= v1.0
Reported by: | Miguel Ferreira | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | TracWikiToPdfPlugin |
Severity: | blocker | Keywords: | |
Cc: | Trac Release: | 1.0 |
Description
The patch attached addresses the missing images from the generated pdf. In past trac versions, attached file paths were more easily found from the filesystem. Now they are hashed into the filesystem.
Issues solved:
- Images are now included in generated pdf
- Book creation bug when getting wiki page names fixed
- Not using 'utf-8' as codepage since it is not supported by htmldoc 1.8. Instead using ISO-8859-1 fixes output for characters such as 'ä'
This has been tested with Trac v 1.0.1 and the latest development trunk. Don't forget to set base_dir under [wikitopdf] to your trac project environment as a folder path, e.g. /var/lib/trac/test_environment.
Attachments (2)
Change History (7)
Changed 10 years ago by
Attachment: | wikitopdf_trac_v10.diff added |
---|
Changed 10 years ago by
Attachment: | fix-pdfplugin.diff added |
---|
comment:1 Changed 10 years ago by
comment:2 Changed 10 years ago by
Patched trunk v0.11 with above but couldn't get any images in PDF with Trac 1.1.4. Did the plugin ever work with images that are displayed from a git repo? (e.g. image url starting with with source:) That's what I was after.
comment:3 Changed 9 years ago by
Owner: | changed from Diorgenes Felipe Grzesiuk to Ryan J Ollos |
---|---|
Status: | new → accepted |
comment:4 Changed 8 years ago by
Owner: | Ryan J Ollos deleted |
---|---|
Status: | accepted → new |
comment:5 Changed 7 years ago by
Fetching images should work correctly after r16785, but it would be better to get local attachments from the attachments directory rather than downloading them to a temp directory.
patch to fix images in pdf trac v1