xhtml2pdf Questions
4
Solved
I want to generate pdf file from html using Python + Flask. To do this, I use xhtml2pdf. Here is my code:
def main():
pdf = StringIO()
pdf = create_pdf(render_template('cvTemplate.html', user=us...
Peng asked 27/1, 2015 at 8:0
3
I'm using xhtml2pdf (former pisa, or is it vice versa? :)) to generate PDF from the django template. The template is rendered ok, but PDF I get from that template is corrupted in a very weird manne...
5
My problem is: I am creating a pdf file from an html, using the xhtml2pdf library. Having created the pdf file, I send the file to the user via email using the sendgrid API. However, I am not able ...
Heterophyte asked 19/12, 2018 at 15:3
3
Solved
I am following the xhtml2pdf guides.
I have used one of the sample html files and saved as test.html:
<html>
<head>
<style>
@page {
size: a4 portrait;
@frame header_frame { #...
2
I am using xhtml2pdf to generate PDFs in my Django View. The idea is to loop over all the instances that are there in the query, then for each instance create a PDF, then add all the generated PDFs...
Overbalance asked 11/1, 2020 at 15:37
5
Solved
The below code gives error:
Traceback (most recent call last):
File "pdf.py", line 14, in <module>
create_pdf(render_template('templates.htm'))
File "/usr/local/lib/python2.7/dist-package...
4
Solved
I am trying to use wkhtmltopdf to create a PDF from HTML code. I have used xhtml2pdf and pisa but I have had problems with css styles. well, wkhtmltopdf is my last option.
I have followed this st...
Neurotomy asked 19/12, 2013 at 12:43
1
Solved
I'm working on an invoice PDF generator on my Django website. I use xhtml2pdf. It seems to be working but encodings is not correct. There are wrong signs/characters when I use diacritics.
This is...
Harl asked 15/8, 2017 at 8:31
1
Solved
I was given some great code by 'tuomastik' on this site, and have tweaked it slightly to work for me. However, I have spent several hours trying to edit it so it prints to one PDF rather than multi...
1
Solved
I'm trying to improve my generated PDF created by xhtml2pdf with some CSS style in my Django Project.
I would like for example to justify a text block, but apparently, it doesn't work and I don't...
1
I am using the python xhtml2pdf module and the pisa class to create a PDF. Now the PDF is in vertical A4 format, how do I change it to have the PDF to landscape layout?
import xhtml2pdf.pisa as p...
1
I am trying to generate a PDF using html+css using xhtml2pdf.pisa using Django. However, I'm running into all sorts of weird issues with the CSS.
Below is my code:
from django.template.loader imp...
2
Solved
I've updated xhtml2pdf 0.0.6, PyPDF2 1.21, and reportlab 3.1.8.
My pdf was fine when i used xhtml2pdf 0.0.5 and reportlab 2.7. Now all of my frame got border. I did remove "-pdf-frame-border" and ...
Apodal asked 28/4, 2014 at 4:15
1
Solved
4
Solved
I have unicode used in my html page, which is displaying correctly in the html page. But while converting it into html using xhtml2pdf, it generating black, solid square boxes in the unicodes. Is t...
0
I am using xhtml2pdf for converting html to pdf.
For some reason it does not detect the width of any div. I have tried giving width using style it still does not work. What am I do doing wrong?
...
4
Solved
I use Pisa/xhtml2pdf in my Django apps to generate pdf from an HTML source. That is:
I generate the HTML file formatted with all 'printing' stuffs (e.g. page-breaks, header, footer, etc.)
I conve...
Stitt asked 19/12, 2012 at 11:0
2
Solved
First of all, I'm new to python, reportlab, xhtml2pdf.
I've already done my first pdf files with reportlab, but I ran into the following problem.
I need a large text in two columns.
First I crea...
1
I'm having some trouble getting a footer to appear as one frame on the first page of a Pisa document, and as another frame on every other page. I have attempted to adapt the lastPage idea from here...
1
I'm using Pisa to convert HTML to PDF (in a Django project).
It is very slow when handling tables that span over multiple pages:
a 200-rows table takes up to 150 seconds to be converted, while it ...
Each asked 29/9, 2011 at 9:4
1
© 2022 - 2024 — McMap. All rights reserved.