~ubuntu-branches/ubuntu/vivid/pdfposter/vivid-proposed

« back to all changes in this revision

Viewing changes to test/gen-allboxespage.py

  • Committer: Package Import Robot
  • Author(s): Elena Grandi
  • Date: 2014-09-18 18:51:17 UTC
  • Revision ID: package-import@ubuntu.com-20140918185117-41wdx3poidxhg5l6
Tags: 0.6.0-2
* Migrate from PyPdf to PyPDF2 (Closes: #763256)
* Update maintainer email
* debian/control: bump Standards-Version to 3.9.6 (no changes needed).

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
from reportlab.lib.pagesizes import A4, legal, landscape
30
30
from reportlab.pdfgen.canvas import Canvas
31
31
 
32
 
from pyPdf import PdfFileWriter, PdfFileReader
33
 
from pyPdf.generic import RectangleObject
 
32
from PyPDF2 import PdfFileWriter, PdfFileReader
 
33
from PyPDF2.generic import RectangleObject
34
34
 
35
35
def draw_box(canvas, color, x,y, width,height, text=None):
36
36
    canvas.setStrokeColorRGB(*color)