I can merge on the first page of this file, but not on the second.
The error is:
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
ValueError: invalid literal for int() with base 10: ''
------------------------------------------------------------------------------------------------------------
I can merge on the first page of this file, but not on the second. ------- ------- ------- ------- ------- ------- ------- ------- ------- -----
The error is:
-------
ValueError Traceback (most recent call last)
84 print "Page: " + str(n) stamp_page) addPage( page)
85 page = base_pdf.getPage(n)
---> 86 page.mergePage(
87 output.
88
/usr/lib/ pymodules/ python2. 6/pyPdf/ pdf.pyc in mergePage(self, page2) Contents" ].getObject( ) .append( PageObject. _pushPopGS( originalContent , self.pdf)) /Contents' ].getObject( )
995
996 originalContent = self["/
--> 997 newContentArray
998
999 page2Content = page2['
/usr/lib/ pymodules/ python2. 6/pyPdf/ pdf.pyc in _pushPopGS( contents, pdf)
952 # of a content stream. This isolates it from changes such as
953 # transformation matricies.
--> 954 stream = ContentStream( contents, pdf) operations. insert( 0, [[], "q"]) operations. append( [[], "Q"])
955 stream.
956 stream.
/usr/lib/ pymodules/ python2. 6/pyPdf/ pdf.pyc in __init__(self, stream, pdf) stream. getData( )) parseContentStr eam(stream) tream(self, stream):
1116 else:
1117 stream = StringIO(
-> 1118 self.__
1119
1120 def __parseContentS
/usr/lib/ pymodules/ python2. 6/pyPdf/ pdf.pyc in __parseContentS tream(self, stream) append( readObject( stream, None)) e(self, stream):
1155 peek = stream.read(1)
1156 else:
-> 1157 operands.
1158
1159 def _readInlineImag
/usr/lib/ pymodules/ python2. 6/pyPdf/ generic. pyc in readObject(stream, pdf) readFromStream( stream, pdf) readFromStream( stream)
85 return IndirectObject.
86 else:
---> 87 return NumberObject.
88
89 class PdfObject(object):
/usr/lib/ pymodules/ python2. 6/pyPdf/ generic. pyc in readFromStream( stream) readFromStream)
230 return FloatObject(name)
231 else:
--> 232 return NumberObject(name)
233 readFromStream = staticmethod(
234
ValueError: invalid literal for int() with base 10: '' ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ---
-------