Opened 18 years ago
Closed 18 years ago
#587 closed defect (fixed)
PDFs limited to 4kB on Win32
Reported by: | Owned by: | Alec Thomas | |
---|---|---|---|
Priority: | normal | Component: | PageToPdfPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.10 |
Description
I use the trunk version of trac with Python 2.3.
I've managed to run PageToPdfPlugin on Windows.
All pdfs end exactly @ position 0x12a0 (4kb). The first 4kB are (in hexedit) excactly the same as generated with command line.
I assume this is an python error, but please help me with this.
Attachments (0)
Change History (7)
comment:1 Changed 18 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:2 Changed 18 years ago by
These kinds of things are usualy because of not working with the file in binary mode.
comment:3 Changed 18 years ago by
Good point. Actually, I'm also open()
ing the file then immediately unlinking it, relying on *NIX file ref count semantics. But perhaps this does not work correctly under Windows?
comment:5 Changed 18 years ago by
Resolution: | invalid |
---|---|
Status: | closed → reopened |
comment:6 Changed 18 years ago by
I changed pagetopdf.py#27 to:
out = open(pfilename,'rb').read()
Now it works for me.
Maybe cause was a \0 problem or something else.
comment:7 Changed 18 years ago by
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
I can't see how this could be a Python problem. I suspect it's more likely to be a web server configuration problem, but without more information I can't tell.