This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
import os | |
import StringIO | |
from xhtml2pdf import pisa | |
from xhtml2pdf.pdf import pisaPDF | |
from django.template.loader import render_to_string | |
from django.conf import settings | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>My Title - {{ pagesize }}</title> | |
</head> | |
<body> | |
Template pdf |