I recently used Reportlab to generate PDFs. Unfortunately, they were deemed corrupt by my Mac’s preview and Adobe Reader. Interestingly, they would render properly on Chrome’s PDF reader, but when I tried to print, the page was empty.
Long story short, I found the issue:
canvas = Canvas(filename, pagesize=”letter”)
had to be changed in:
canvas = Canvas(filename, pagesize=(612,792))
The reason for this is that “letter” equals (612.0,792.0).