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

Error for files with Layers #21

Open
bargool opened this issue Feb 17, 2011 · 0 comments
Open

Error for files with Layers #21

bargool opened this issue Feb 17, 2011 · 0 comments

Comments

@bargool
Copy link

bargool commented Feb 17, 2011

I'm having error when using pdf with Layers:
Traceback:
File "G:\python-education\pdfinfo.py", line 16, in
print name, inFile.getNumPages()
File "build\bdist.win-amd64\egg\pyPdf\pdf.py", line 431, in getNumPages
File "build\bdist.win-amd64\egg\pyPdf\pdf.py", line 607, in _flatten
File "build\bdist.win-amd64\egg\pyPdf\generic.py", line 165, in getObject
File "build\bdist.win-amd64\egg\pyPdf\pdf.py", line 649, in getObject
File "build\bdist.win-amd64\egg\pyPdf\generic.py", line 67, in readObject
File "build\bdist.win-amd64\egg\pyPdf\generic.py", line 531, in readFromStream

File "build\bdist.win-amd64\egg\pyPdf\generic.py", line 58, in readObject
File "build\bdist.win-amd64\egg\pyPdf\generic.py", line 153, in readFromStream

File "build\bdist.win-amd64\egg\pyPdf\generic.py", line 67, in readObject
File "build\bdist.win-amd64\egg\pyPdf\generic.py", line 531, in readFromStream

File "build\bdist.win-amd64\egg\pyPdf\generic.py", line 67, in readObject
File "build\bdist.win-amd64\egg\pyPdf\generic.py", line 531, in readFromStream

File "build\bdist.win-amd64\egg\pyPdf\generic.py", line 58, in readObject
File "build\bdist.win-amd64\egg\pyPdf\generic.py", line 153, in readFromStream

File "build\bdist.win-amd64\egg\pyPdf\generic.py", line 67, in readObject
File "build\bdist.win-amd64\egg\pyPdf\generic.py", line 531, in readFromStream

File "build\bdist.win-amd64\egg\pyPdf\generic.py", line 52, in readObject
File "build\bdist.win-amd64\egg\pyPdf\generic.py", line 339, in readStringFrom
Stream pyPdf.utils.PdfReadError: Unexpected escaped string

If I merge Layers in that pdf - all works good

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