pombreda / xhtml2pdf

Automatically exported from code.google.com/p/xhtml2pdf
GNU General Public License v2.0
0 stars 0 forks source link

--base option gets last path component stripped from it. #67

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
pisa 3.0.32

Run something like this:

    cat in.html | python sx/pisa3/pisa.py -d --base /path/to/directory/ --css css/style.css - > out.pdf

This will show up in stderr:

    DEBUG [ho.pisa] /usr/share/python-support/python-pisa/sx/pisa3/pisa_util.py line 448: FileObject 'css/style.css', Basepath: '/path/to'

The path shouldn't be stripped. I'll attach a patch to fix it in a minute.

Original issue reported on code.google.com by craig.ds@gmail.com on 14 Jun 2010 at 11:59

GoogleCodeExporter commented 9 years ago
This patch fixes the bug.

Original comment by craig.ds@gmail.com on 15 Jun 2010 at 12:08

Attachments:

GoogleCodeExporter commented 9 years ago
Some time ago Pisa AKA XHTML2PDF has been rereleased under the completely free 
Apache License. Since I personally don't have the time and resources to 
continue the project like before I would kindly ask you to fork the project on 
GitHub and add your patches etc. Maybe someone likes to create a new unified 
version and publish it on PyPI. If you need more help on this get in contact 
with me or write to the XHTML2PDF mailing list. Thank you all very much for 
your effort!

Project on GitHub:
http://github.com/holtwick/xhtml2pdf

Original comment by dirk.holtwick on 23 Aug 2010 at 5:27