mergePage crash pypdf
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyPdf |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Platform: Windows XP sp3
Python: 2.6.3
PyPdf: last official release 1.12 / same problem with last git
I'm trying to merge 2 page of different pdf into one with the following code:
from pyPdf import PdfFileWriter, PdfFileReader
#input file 1
in_1 = PdfFileReader(
#input file 2
in_2 = PdfFileReader(
page_1 = in_1.getPage(0)
page_1.
output.
outputStream = file("out_2.pdf", "wb")
output.
outputStream.
and i get this error
Traceback (most recent call last):
File "merge_test.py", line 11, in <module>
page_
File "c:\Python26\
self.
File "c:\Python26\
originalCon
File "c:\Python26\
stream = ContentStream(
File "c:\Python26\
self.
File "c:\Python26\
operands.
File "c:\Python26\
return NumberObject.
File "c:\Python26\
return NumberObject(name)
ValueError: invalid literal for int() with base 10: ''
Let me know if you need also the pdf I've used.
Thank you!
I' ve checked that this problem is related to the pdfs I'm using, because with other pdfs there is no crash.
I change the bug status to invalid.
Thanks!