Questions tagged [pisa]

Pisa is a Python HTML/XHTML/CSS to PDF converter

Pisa is a HTML/XHTML/CSS to PDF converter written in Python and based on Reportlab Toolkit, pyPDF, TechGame Networks CSS Library and HTML5lib

119 questions
0
votes
2 answers

Django python pisa no module utils

No module named utils python2.7/pisa-3.0.33-py2.7.egg/sx/pisa3/pisa_parser.py in , line 29 I'm trying to use pisa to generate pdfs from html. please let me know if you've encountered this error before. __author__ = "$Author: holtwick…
Eva611
  • 5,964
  • 8
  • 30
  • 38
0
votes
1 answer

how to set footer in pdf using python (django with pisa)

I tried to set footer on first page only by using pisa official documentation but it comes in all pages so please suggest how to apply footer on first page of pdf
Uma Mahesh
  • 56
  • 4
0
votes
1 answer

Django: change pdf file name using pisa reportlab

I have a Django application which prints out a pdf file. I would like to know how to change the pdf file output name. Here is my views. def write_pdf(template_src, context_dict): template = get_template(template_src) context =…
Shehzad009
  • 1,547
  • 6
  • 28
  • 42
0
votes
1 answer

missing explicit frame definition for content or just static frames

I am converting HTML to pdf in Django app and using xhtml2pdf. Given is my HTML template.
nicolom
  • 360
  • 1
  • 3
  • 11
0
votes
1 answer

Inserting hyperlinks into pdf generated with pisa

Currently I am generating a pdf from a html template in django/python. Here is a relevant snipit from my view result = StringIO.StringIO() html = render_to_string(template='some_ref/pdf.html', { dictionary passed to template},) pdf =…
Matt Cremeens
  • 4,951
  • 7
  • 38
  • 67
0
votes
0 answers

How to add header and footer to a PDF file by rendering HTML page

I have generated a pdf file by rendering an HTML page. Here is what i did for that return render_to_pdf( html, ) def render_to_pdf(html): result = StringIO.StringIO() pdf =…
Sakeer
  • 1,885
  • 3
  • 24
  • 43
0
votes
0 answers

python html2pdf not generating pdf for bulk data

I am using html2pdf to generate pdf reports, which does not generate pdf if there is large volume of data/records. I have 5000 records & it will covers 400+ pdfs pages. If the data/records are only 1000(covers up-to 80-85 pdf pages), it generated…
Adithya
  • 1,687
  • 3
  • 19
  • 34
0
votes
1 answer

Django : Display image with Pisa library

I'm looking for add Pictures in my PDF generated by html2pdf library. Up to now, I don't find a way to do that. My function looks like : @login_required def Generate_PDF(request, id) : personne = get_object_or_404(Individu, pk=id) data =…
Essex
  • 6,042
  • 11
  • 67
  • 139
0
votes
1 answer

No module named ho.pisa - when i run it with wsgi

I'am trying to generate PDF from HTML whith Pisa, Reportlab, etc.. and get: "No module named ho.pisa" - when i run it with wsgi, but on runserver it works fine. Somebody have some versions?
Andrey Topoleov
  • 1,591
  • 15
  • 20
0
votes
1 answer

Django: Template Tag unable to load image.Only reading media image

I am trying to generate a PDF with django pisa module. views.py def reportPdf(template_src, context_dict): template = get_template(template_src) context = Context(context_dict) htmlRender = template.render(context) …
john M
  • 3
  • 3
0
votes
2 answers

pisa to generate a table of content via html convert

Does anyone have any idea how to use the tag so the table of content comes onto the 1st page and all text is coming behind. This is what i've got so far, it generates the table of content behind my text... pdf.html
Totti
  • 11
  • 1
  • 4
0
votes
1 answer

How to generate PDF file from an HTML file using Reportlab and Pisa in Python?

Have the following code setup as follows to generate a PDF document using Reportlab and Pisa in Python. import cStringIO import ho.pisa as pisa def html_to_pdf(data, filename, open=False): pdf = pisa.CreatePDF( …
PacificNW_Lover
  • 4,746
  • 31
  • 90
  • 144
0
votes
0 answers

Python pisa multipage alignment issue

I am using xhtml2pdf ver. 0.0.6 and reportlab ver. 2.7 in my app which uses django 1.6.6, for my pdf generation. I need to generate yearly reports with data being taken from the database. I use pisa 0.3.3 in xhtml2pdf module and can generate pdf…
user12757
  • 39
  • 1
  • 9
0
votes
1 answer

xhtml2pdf doesn't embed Helvetica

I'm creating a PDF with xhtml2pdf using Django. I'm sending that PDF to print, but then they say that some Fonts are not embed. I have a Helvetica font, but I didn't use Helvetica in the PDFs. Here you have a Screen Shot of the properties of the…
Marcos Aguayo
  • 6,840
  • 8
  • 28
  • 61
0
votes
1 answer

html to pdf using pisa- Issue with using img tag

I want to create a dynamic pdf using html in google app engine. Im using pisa to convert html to pdf. Everything except < img > tag works. Even though the background-image in the css works my real need is the < img > tag. import os import…
Prajapathy3165
  • 518
  • 1
  • 6
  • 13