# Ticket #6966 (closed defect: duplicate)

Opened 3 years ago

## PDF creation does not work if image macro has no absolute links in it

Reported by: Assigned to: link@nothing.ch diorgenes normal TracWikiToPdfPlugin normal PDF, empty pages, solution, amelioration 0.11

### Description

Hello

My problem is actually not a defect. However, the solution I describe here might help others and/or could ameliorate this plugin. As to the other empty PDF problems: I experienced all the failures as you did, too.

By defining a "pathtocover" (in the main trac.ini, not an inherited one) variable and rewriting the path to the pic (as described further down) the W2PDF plugin did its job. But here is my question.

Picture this:

[[Image(FunnyLolCatPicture.jpg)]]


After laughing cordially you want to create a PDF from the wiki page which contains this picture. When you are me, that does not work.

Then, after trying to get it to work, you find out, that this:

[[Image(wiki:lolCatProject:FunnyLolCatPicture.jpg)]]


actually works. You can create a PDF with pictures in it.

Now my question: is it possible to change this plugin so it finds relative links? This would save us a good amount of time since we have a lot of wiki sites that need to be rendered to PDF... hopefully without the need to change the image macros.

## Change History

### 02/08/12 10:52:06 changed by rjollos

• status changed from new to closed.
• resolution set to duplicate.

### Add/Change #6966 (PDF creation does not work if image macro has no absolute links in it)

Change Properties