简体   繁体   中英

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.

All 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM