Error = Invalid PDF structure, while viewing and downloading any PDF file

bug

#1

<----Please try to adhere to this template when reporting bugs and delete this top section between and including the arrows when posting! ---->

Description of the issue:
PDF file fails to open or to be downloaded

Steps to Reproduce (add as many as necessary):

  1. I just click to open/download on any PDF file link
  2. Get the error on every website, especially those where I’m logged in (bank, webmail, shopping website…), while it works with Safari without any problem.

Actual Result (gifs and screenshots are welcome!):
PDF.js v2.0.673 (identifiant de compilation: 31012570)
Message: Invalid PDF Structure

Expected result:
PDF to be opened or downloaded

Reproduces how often: each time

Brave Version(about:brave):
Brave is up to date
Version 0.55.22 Chromium: 70.0.3538.77 (Build officiel) (64 bits)

Reproducible on current live release (yes/no): yes

Additional Information:


#2

Is there any link with the fact that I don’t have any pdf viewer extensions ?

I noticed a friend had an older version of Brave where a list of extensions were natively proposed.

Here is what I have on my side: Lastpass is the only extension I have
49

What my friend has:

It works on his side, but not on mine.


#3

Hi @SuperDupont,
Brave comes with a built in pdf viewer (PDFjs)but we’ve been having some issues surrounding it recently.



However, to workaround this until the issue is addressed, you can install a PDF viewer extension that will allow you to view pdfs in-browser. Not a super convenient answer but should alleviate the problem until we can resolve it on our end.

Hope this helps!


#4

I’m using MacOS High Sierra on my desk computer, my wife gets the same issue with the same version of Brave with MacOs Mojave.

I also tried to install 2 extensions from the Chrome store:

Does not solve the fact to view the pdf in the window. The PDF structure error is still there

It can’t even be installed, there is another bug:


Error says the element is being downloaded (in progress) and added to Chrome, which is not the case at all !!! I can just close the pop-up, no extension installed in the end.


#5

still not able to open pdf in Windows 10, Brave Version 0.56.15 Chromium: 70.0.3538.110 (Official Build) (64-bit)


#6

@jerrygoyal,
We’ve addressed several PDF issues but there are some that still remain. If you can provide a link the PDF you’re attempting to access as well as a more detailed description of your issue and/or a screenshot of the error you’re seeing we’d be happy to help find out what’s going on.


#7

The issue is still there, but only on sites where I’m looged in !!
If I have to access to a pdf on any “non connected” websites, there is no issue at all, the pdf is displayed.

If I’m logged in (bank, insurance…), I can’t acess directly to the pdf (the display is broken). The only solution is to download it.


#8

@SuperDupont, the above issue is captured here:


Looks like this is already fixed in Beta - should be hitting Release build shortly afterwards. So you shouldn’t be encountering it for much longer!


#9

I’m getting the same error when attempting to view a bill from my Electricity provider (Energy Australia). The “PDF.js v2.0.673 (build: 31012570) Message: Invalid PDF structure” error.

However, even right-clicking to Save As… on my computer downloads a version of the PDF that cannot be opened (macOS - Preview reports a problem with the PDF file).

Attempting same in Safari and it views and downloads okay.

I can’t post the PDF here for privacy reasons…