Modify ↓
Opened 12 years ago
Closed 7 years ago
#10103 closed enhancement (fixed)
Question concerning "base_dir" parameter
Reported by: | David | Owned by: | Ryan J Ollos |
---|---|---|---|
Priority: | normal | Component: | TracWikiToPdfPlugin |
Severity: | major | Keywords: | base_dir parameter |
Cc: | Trac Release: | 0.11 |
Description (last modified by )
Hy Diorgenes,
I really admire your pdf plugin but I can't get it working with images. My Trac environment is:
Trac: 0.11.7 Python: 2.6.5 setuptools: 0.6 SQLite: 3.6.22 pysqlite: 2.4.1 Genshi: 0.5.1 mod_python: 3.3.1 Pygments: 1.2.2 Subversion: 1.6.6 (r40053)
I installed your wiki2pdf plugin with:
:~#apt-get install htmldoc :~#apt-get install python-clearsilver :~#python setup.py install
My Apache config is set Document Root /var/www
while Trac htdocs are stored in /var/home/database/trac/mytrac/
.
Now I set up my trac.ini:
[wikitopdf] # base_dir is the Apache DocumentRoot, It is need to get PDF files with images. base_dir = /var/home/database/trac/ospelt/wiki/htdocs #titlefile = /path/to/cover link = https://apoit01/trac/ospelt folder_name = Trac Ospelt [wikitopdf-admin] size = A4 charset = iso-8859-1 right = 1.0cm left = 1.5cm top = 1.0cm bottom = 1.0cm no-links = None toctitle = Summary numbered = None linkstyle = plain header = ... footer = .r1 logoimage = /var/home/database/trac/ospelt/wiki/htdocs/logo.jpg permissions = None landscape = 1 fontsize = 6 [wikitopdf-page] size = A4 charset = iso-8859-1 right = 1.0cm left = 1.5cm top = 1.0cm bottom = 1.0cm no-links = None linkstyle = plain header = ... footer = .r1 logoimage = /var/home/database/trac/ospelt/wiki/htdocs/logo.jpg permissions = None landscape = 1 fontsize = 6
Now base_dir
should point to apache Document Root. But I got no images in the generated pdf. I tried the following paths...without success:
Absolute paths:
/var/www /var/home/database/trac/mytrac /var/home/database/trac/mytrac/wiki /var/home/database/trac/mytrac/wiki/htdocs /var/home/database/trac/mytrac/attachment/wiki
Apache alias Web paths:
/trac/mytrac/ /trac/mytrac/wiki /trac/mytrac/
What should be set as base_dir? Also a complete installation guide would be fine.
Thanks for your help.
Attachments (0)
Change History (4)
comment:1 Changed 12 years ago by
Description: | modified (diff) |
---|
comment:2 Changed 12 years ago by
comment:3 Changed 7 years ago by
Owner: | changed from Diorgenes Felipe Grzesiuk to Ryan J Ollos |
---|---|
Status: | new → accepted |
Note: See
TracTickets for help on using
tickets.
#10102 closed as a duplicate. This one has nice formatting so it is kept open.