THanks ... I am new to Python ...
Comparing the result of find with -1 fixes the bug ... some
of the endobj start in the firt position ...
You're right about the lines ending in \n by accident,
EXCEPT in PDF files items are separated by obj <<\n
and endobj\n
--
On Fri, 07 Jan 2011 22:43:54 -0600, Keith Anthony wrote:
> My previous question asked how to read a file into a strcuture a line at
> a time. Figured it out. Now I'm trying to use .find to separate out
> the PDF objects. (See code) PROBLEM/QUESTION: My call to lines[i].find
> does NOT find all
On Fri, Jan 7, 2011 at 8:43 PM, Keith Anthony wrote:
> My previous question asked how to read a file into a strcuture
> a line at a time. Figured it out. Now I'm trying to use .find
> to separate out the PDF objects. (See code) PROBLEM/QUESTION:
> My call to lines[i].find does NOT find all ins