"Fossies" - the Fresh Open Source Software Archive

Member "xhtml2pdf-0.2.5/test/testEvenOddPage.py" (8 Aug 2018, 579 Bytes) of package /linux/www/xhtml2pdf-0.2.5.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Python source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 # -*- coding: utf-8 -*-
    2 #############################################
    3 ## (C)opyright by Dirk Holtwick            ##
    4 ## All rights reserved                     ##
    5 #############################################
    6 
    7 __version__ = "$Revision: 176 $"
    8 __author__ = "$Author: kgrodzicki $"
    9 __date__ = "$Date: 2011-01-15 10:11:47 +0100 (Fr, 15 July 2011) $"
   10 
   11 """
   12 HTML/CSS to PDF converter
   13 Test for support left/right (even/odd) pages
   14 """
   15 
   16 from cookbook import html2pdf
   17 
   18 if __name__ == "__main__":
   19     xhtml = open('test-template-even-odd.html')
   20     html2pdf(xhtml.read(), "testEvenOdd.pdf")