开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜