Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

py3: global name 'RectangleObject' is not defined #5

Open
DavidWiesner opened this issue May 12, 2010 · 0 comments
Open

py3: global name 'RectangleObject' is not defined #5

DavidWiesner opened this issue May 12, 2010 · 0 comments

Comments

@DavidWiesner
Copy link

I try the Example from README in python 3.1. there are two issues:

  1. command file() should be replaced with command open()
  2. pdf.py needed the RectangleObject but is not imported.

here is an diff to solve the second issue

--- ../../old_pdf.py/pdf.py 2009-10-15 10:56:54.000000000 +0200
+++ pdf.py 2010-05-12 18:19:45.000000000 +0200
@@ -47,7 +47,7 @@
from .generic import (readObject, DictionaryObject, DecodedStreamObject,
NameObject, NumberObject, ArrayObject, IndirectObject,
ByteStringObject, StreamObject, NullObject, TextStringObject,

  •    createStringObject, BooleanObject)
    
  •    createStringObject, BooleanObject, RectangleObject)
    
    from .utils import (readNonWhitespace, readUntilWhitespace,
    ConvertFunctionsToVirtualList, PdfReadError, RC4_encrypt)
    thanks so far,
    david wiesner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant