Hi,

thanks for replying.
It is definitvely not a problem of the third image which throws an error.
Without this third image the Log looks like this (the working things are
snipped out):

[trac.log]
2009-03-04 10:50:21,760 Trac[wikitopdf] DEBUG: WikiToPdf => Start function
wiki_to_pdf
2009-03-04 10:50:21,760 Trac[wikitopdf] DEBUG: WikiToPdf => Wiki intput for
WikiToPdf: ... *
1.\r\n[[Image(wiki:TicketSystem:basic-workflow.png)]]\r\n\r\n *
2.\r\n[[Image(TicketSystem:basic-workflow.png)]]\r\n\r\n *
3.\r\n\r\n{{{\r\n[[Image(basic-workflow.png)]]\r\n}}}\r\n\r\n\r\n\r\n...'
2009-03-04 10:50:21,762 Trac[api] DEBUG: Updating wiki page index
2009-03-04 10:50:21,797 Trac[formatter] DEBUG: Executing Wiki macro Image by
provider <trac.wiki.macros.ImageMacro object at 0x8ca3d6c>
2009-03-04 10:50:21,800 Trac[formatter] DEBUG: Executing Wiki macro Image by
provider <trac.wiki.macros.ImageMacro object at 0x8ca3d6c>
2009-03-04 10:50:21,806 Trac[formatter] DEBUG: Executing Wiki macro
Timestamp by provider <Timestamp.TimestampMacro object at 0x8ca3aec>
2009-03-04 10:50:21,808 Trac[wikitopdf] DEBUG: WikiToPdf => HTML output for
WikiToPdf in charset iso-8859-15 is: '<html><head><meta
http-equiv="Content-Type" content="text/html;
charset=iso-8859-15"/></head><body>...<ul><li>1.\n</li></ul><p>\n<a
style="padding:0; border:none"
href="/trac/attachment/wiki/TicketSystem/basic-workflow.png"><img border="0"
src="/trac/raw-attachment/trac/attachments/wiki/TicketSystem/basic-workflow.png"alt="Trac
Ticket Workflow" title="Trac Ticket Workflow"
/></a>\n</p>\n<ul><li>2.\n</li></ul><p>\n<a style="padding:0; border:none"
href="/trac/attachment/wiki/TicketSystem/basic-workflow.png"><img border="0"
src="/trac/raw-attachment/trac/attachments/wiki/TicketSystem/basic-workflow.png"alt="Trac
Ticket Workflow" title="Trac Ticket Workflow"
/></a>\n</p>\n<ul><li>3.\n</li></ul><table align="center" width="95%"
border="1" bordercolor="#d7d7d7"><tr><td bgcolor="#f7f7f7"><pre
class="wiki">[[Image(basic-workflow.png)]]\n</pre></td></tr></table><hr
/>\n...</body></html>'
2009-03-04 10:50:21,809 Trac[wikitopdf] DEBUG: WikiToPdf => Finish function
wiki_to_pdf
2009-03-04 10:50:21,809 Trac[wikitopdf] DEBUG: WikiToPdf => Start function
html_to_pdf
2009-03-04 10:50:21,810 Trac[wikitopdf] DEBUG: WikiToPdf => Htmldoc command
line: htmldoc --footer .r1 --right 1.5cm --no-links None --format pdf14
--webpage  --top 1.5cm --charset iso-8859-15 --bottom 1.5cm --logoimage
/var/trac/wiki/htdocs/Header_image.png --header l --left 1.5cm --linkstyle
plain --size A4 /tmp/tmp3Wn1Wfwikitopdf -f /tmp/tmpqKu7kQwikitopdf
2009-03-04 10:50:21,931 Trac[wikitopdf] DEBUG: WikiToPdf => Finish function
html_to_pdf

These yellow marked paths in the Log look strange for me. Is there e an
interrelation between them and the trac.ini entries?

[trac.ini]
[wikitopdf]
base_dir = /trac/raw-attachment
folder_name = trac
link = http://localhost/trac
pathtocover = /var/trac/wiki/cover
titlefile = /var/trac/wiki/cover

[wikitopdf-admin]
bottom = 1.5cm
footer = .r1
header = l
left = 1.5cm
linkstyle = plain
logoimage = /var/trac/wiki/htdocs/Header_image.png
no-links = None
numbered = None
right = 1.5cm
size = A4
toctitle = Summary
top = 1.5cm

[wikitopdf-page]
bottom = 1.5cm
footer = .r1
header = l
left = 1.5cm
linkstyle = plain
logoimage = /var/trac/wiki/htdocs/Header_image.png
no-links = None
right = 1.5cm
size = A4
top = 1.5cm

And /etc/apache2/sites-available/trac looks like this:

<Location /trac>
   SetHandler mod_python
   PythonHandler trac.web.modpython_frontend
   PythonPath "sys.path + ['/usr/share/trac']"
   PythonOption TracEnv /var/trac/wiki
   PythonOption TracUriRoot /trac
   AuthType Basic
   AuthName "Trac"
   AuthUserFile /etc/apache2/trac.passwd
#   Require valid-user
</Location>

Any suggestions about that issue?

  Ice





2009/3/4 yoheeb <[email protected]>

>
> On Mar 3, 11:38 am, Ice Polar <[email protected]> wrote:
> > Hi there,
> >
> > i've installed the WikiToPDF-Plugin fromhttp://
> trac-hacks.org/changeset/latest/tracwikitopdfplugin?old_path=/...
> > my trac 0.11.4 instance on ubuntu 8.04.2. It's a single instance
> > running
> > with apache2, no big thing.
> > Trac project is located at /var/trac/wiki. I have copied the cover folder
> to
> > /var/trac/wiki/cover.  The parameter  logoimage =
> > /var/trac/wiki/htdocs/Header_image.png
> > works fine.
> <snip>
>
> Well, I have not even looked at the wikitopdf plugin code.  however,
> it looks like your images are page attachements. (by your "[[Image]]
> macros in the debug/error codes.
>
> I also see this line in the ini file you provided:
>    [wikitopdf]
>   # base_dir is the Apache DocumentRoot, It is need to get PDF files
> with
>   images.
>   base_dir = /path/to/DocumentRoot
>
> and this is clearly not your Apache htdocs directory.  of course you
> may of obfuscated it.
>
> based on the comment, I get the impression for the WikiToPDF plugin,
> you would need to put a copy of the image files in your Apache
> document root in order for the HTMLDoc tool to pick them up insert
> them into the temporary documents that are fed to the other python/PIL
> tools to create a PDF.
>
> Outside of that, I did notice that "failed" image was referenced
> unqualified in the image macro, which is valid for trac, but might be
> a limitation or bug in the wiki-to-pdf plugin.  It could also be that
> the fact that 1 image failed, they all failed and the resultant PDF
> file was only fed the html that was extracted from the wiki.
>
> to eliminate this last, remote possibility, I would consider changing
> that "failed" image macro to pass and see what happens.  I suspect
> your images will still be missing because of something else, possibly
> the first observation, or your base_url for the trac site iteself,
> etc.
>
> of course, it could also be something complete different.  It's miller
> time here, I am out of brainpower.  Good luck.
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to