开发者

Python, generating PDF using ReportLab.Platypus SimpleDocTemplate, date/time in header

开发者 https://www.devze.com 2022-12-20 09:26 出处:网络
I\'m working on a project in Python/Django which uses ReportLab\'s SimpleDocTemplate to generate PDF documents.

I'm working on a project in Python/Django which uses ReportLab's SimpleDocTemplate to generate PDF documents.

Al开发者_JAVA技巧l the documents generated have the current date/time printed in the top right corner. I can't see that it's being done anywhere in my code, is this a default behaviour in the SimpleDocTemplate object?

How do I get rid of this?

Regards, Haukur


I've just tried to reproduce the behavior you described, but unfortunately I cant. So I don't think it's a default behavior. Maybe it would be a good idea if you post a small example where the production date/time in the header is visible.

But if it's any help to you, here is what I've done: I used the following example from the user guide, which looks like this. But even when I call doc.build() without the additional arguments, I get no header at all.

0

精彩评论

暂无评论...
验证码 换一张
取 消