-
Notifications
You must be signed in to change notification settings - Fork 564
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
PDFSyntaxError('No /Root object! - Is this really a PDF?') #10
Comments
Hi @Canacedq can you share what PDF you are using? Is it one included in the repository? |
Hi,I'm also encountered with this issue and using the exactly same PDF file downloaded from this github. |
Hi @conango, I'm worried this might be a Windows encoding error, as it works fine on my Linux laptop. Can you try opening the file in binary mode?
Let me know if that works, thanks! -katharine |
Hi @kjam , |
Hi,
Did you try and pass that to slate? so next run:
doc = slate.PDF(mypdf)
?
…On Mon, Jan 8, 2018 at 2:25 AM Lee ***@***.***> wrote:
Hi @kjam <https://github.com/kjam> ,
This is the result screenshot.
Hope it can help.
[image: qq 20180108092153]
<https://user-images.githubusercontent.com/8816223/34656484-d3c87d30-f455-11e7-8d3e-eac562927535.png>
Thanks
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#10 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAUW2GuxNuV5_0FS9eq1Al5MWxLhZCeEks5tIW59gaJpZM4QeRZ9>
.
|
code like this:
import slate with open('xxx.pdf') as f: doc = slate.PDF(f)
raise problem:
Traceback (most recent call last):
File "", line 2, in
File "C:\Python27\lib\site-packages\slate\slate.py", line 38, in init
self.doc.set_parser(self.parser)
File "C:\Python27\lib\site-packages\pdfminer\pdfparser.py", line 333, in set_parser
raise PDFSyntaxError('No /Root object! - Is this really a PDF?')
pdfminer.pdfparser.PDFSyntaxError: No /Root object! - Is this really a PDF?
The text was updated successfully, but these errors were encountered: