#!/usr/bin/env python2.7
# *-* coding: utf-8 *-*

from reportlab.pdfgen import canvas
from reportlab.lib.pagesizes import A4
from reportlab.lib.units import inch

example_doc = canvas.Canvas('hello_world_buggy.pdf', 
                        pagesize = A4,
                        bottomup = 1,
                        pageCompression=1,
                        verbosity=1,
                        encrypt=None
                        )

example_doc.setAuthor('Ángel Guzmán Maeso')
example_doc.setTitle("ev_document_get_n_pages bug")
example_doc.setSubject("This is a example for bug ev_document_get_n_pages")

example_doc.drawCentredString(3.7*inch, 3.7*inch, "Hello world buggy!")
example_doc.showPage()
example_doc.save()
