On 1/5/2011 6:24 PM Bubba said...
Your code only shows the first 488 bytes of the file?
add 'rb' to the open statement... >>> pdflines = open(r'c:\shared\python_book_01.pdf','rb').readlines() >>> sps = [0] >>> for ii in pdflines: sps.append(sps[-1]+len(ii)) Emile -- http://mail.python.org/mailman/listinfo/python-list