[reportlab-users] pdf page shrinkage

John Pywtorak jpywtora at calpoly.edu
Tue Mar 29 19:47:34 EST 2005

On Tuesday 29 March 2005 10:40 am, Linda Gao wrote:
> Here is the simple code I wrote.
> from reportlab.pdfgen import canvas
> from reportlab.lib.units import inch
> from reportlab.lib.pagesizes import letter
> c = canvas.Canvas("print.pdf", pagesize = letter)
> c.line(inch,8*inch,8*inch,8*inch)
> c.line(inch,7*inch,8*inch,7*inch)
> c.showPage()
> c.save()
> this program is to create a pdf file in which I draw two lines and
> there is one inch between the lines,but it seems the distance between
> them is less than one inch when I measure it after printing out . Is there
> anyway to solve this problem?

What OS is your python package running on?   Also could you attach the 
generated pdf, so we could try it on other printers and platforms?


Start Here
Frustrating Hanging Crashing
Blue Screen of Death

More information about the reportlab-users mailing list