Hello,
I am very user of xhtml2pdf, however I have one problem. Hyperlinks
just won't work in the generated PDF. The linked text get coloured
blue and underlined, but the text is not actually a link. I do not
have background image. I've tested the djangoproject demo from github
and added a hyperlink in there as well and that one doesn't work
either.
What I edited in the djangoproject demo is the template entries.html
(the extra <p> after the forloop):
{% extends "base.html" %}
{% block title %}{{title}}{% endblock %}
{% block content %}
{% for entry in blog_entries %}
<h2>{{
entry.id }} {{ entry.title|upper }}</h2>
<p style="margin-left:15px">{{ entry.body }}</p>
{% endfor %}
<p><a href="
test.com">test</a></p>
{% endblock %}
{%block page_foot%}
Sample page {{block.super}}
{%endblock%}
I am using it in Django with Python 2.6, Reportlab 2.4, html5lib 0.9,
pisa 3.0.33, pyPdf 1.12, django 1.2.1, PIL 1.1.7. I'm running all this
on Ubuntu (10.04) using VirtualEnv.
Does anyone have a solution or is anyone having similar problems?
Thanks in advance!