﻿id,summary,reporter,owner,description,type,status,priority,component,severity,resolution,keywords,cc,release
10102,"Question concerning ""base_dir"" parameter",David,Diorgenes Felipe Grzesiuk,"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.",enhancement,new,normal,TracWikiToPdfPlugin,major,,base_dir parameter,,0.11
