-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
invalid or corrupted PDF file #2048
Comments
I'm facing the same issue.. I'm using Ubuntu 18.10 |
Please update to the latest release version (0.56.12). The problem (#1287) has been fixed. |
Great! it works fine |
This issue is still present in Version 0.61.51 Chromium: 73.0.3683.75 on macos. Let me know if you need further information. The cookies seems to not be included on the request made for the pdf file, which ends up resulting in a redirect to a login page. |
I also see this issue with |
@LefterisJP do you have more information? (not sure if the site you are using requires a login). Would be great if we had some way to reproduce on our side |
Yep. So the site is actually mine. It does require a login and it's a django website (not live yet) so the test code is all local. The url requires login access so cookies are involved. The response is a pdf. In python code it's the following: ...
...
...
with fs.open(internal_filename) as pdf:
response = HttpResponse(pdf, content_type='application/pdf')
response['Content-Disposition'] = f'attachment; filename="{external_filename}"'
return response Anything else I can do to help? |
@LefterisJP nice! ok so the only thing I would ask would be: can you try Nightly? We removed PDF.js in favor of PDFium. If it works in Chrome/Chromium, it should now work for you 😄 This code will eventually make it's way into the release channel (currently, we're on 0.65.x and the fix was in 0.68.x) - estimated ship date August 20th |
@bsclifton Done. Used latest AUR nightly package in Archlinux so that makes it 0.68.60-1. There the problem is gone. Clicking on the URL downloads the pdf, just like in Chromium and then you can click on the download to see a preview which renders just fine. 👍 |
@LefterisJP awesome! thank you so much for confirming 😄 Feel free to stick with Nightly or you can ride it out (and continue to use the more stable Release channel). Thanks again 😎 |
Description
Doesn't show pdf file, showing :
PDF.js v2.0.673 (build: 31012570)
Message: Invalid PDF structure
the same pdf is correctly opened in Mozzilla, Chrome and Edges
Actual result
Brave version (brave://version info)
Version 0.55.22 Chromium: 70.0.3538.77 (Official Build) (64-bit)
Wibdows 10
The text was updated successfully, but these errors were encountered: