Changeset 708

Show
Ignore:
Timestamp:
01/27/06 12:22:39 (3 years ago)
Author:
mfenniak
Message:

fixed bug where "0 0 RG" in a content stream was being thought of as an indirect reference to object 0 0.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • pypdf/trunk/pyPdf/generic.py

    r706 r708  
    7171        peek = stream.read(20) 
    7272        stream.seek(-len(peek), 1) # reset to start 
    73         if re.match(r"(\d+)\s(\d+)\sR", peek) != None: 
     73        if re.match(r"(\d+)\s(\d+)\sR[^a-zA-Z]", peek) != None: 
    7474            return IndirectObject.readFromStream(stream, pdf) 
    7575        else: