Edit: Don’t try the first method I listed here, it will pull from the system repos or AUR if that’s not available. Also something called a partial upgrade which I don’t understand but here: Brave (AUR brave-bin) cannot open PDFs - #3 by cscs it was said.
Even though the AUR is an official distribution channel of Brave, I’d encourage you to try another official distribution of Brave to rule out the AUR source being the problem. This one for example on Installing Brave on Linux | Brave :
Brave showing off again that there are more reasons to doubt than to trust..
That script wont do anything special for you .. its going to try to install brave-bin from the repos if it exists or brave-bin from the AUR if not. Through a partial-upgrade.
elif available pacman; then
if pacman -Ss "brave-browser$dashCHANNEL" >/dev/null 2>&1; then
show $sudo pacman -Sy --needed --noconfirm "brave-browser$dashCHANNEL"
else
aur_helper="$(first_of paru pikaur yay)" ||
error "Could not find an AUR helper. Please install paru/pikaur/yay to proceed." "" \
"You can find more information about AUR helpers at https://wiki.archlinux.org/title/AUR_helpers"
show "$aur_helper" -Sy --needed --noconfirm "brave$dashCHANNEL-bin"
fi
Brave has various other reasons to be avoided like how they might decide to insert tracking code to your links and so on .. but if you want to use it then just install using your preferred AUR-helper and not that broken-by-design script on their website.
I have no such issues with the cachyos/brave-bin package. PDFs load fine, both from websites and from disk. Your points under Observations hold true even in my version though, so they’re not related.
It is a slightly older version though (mine: 1.85.111-1, repo: 1.85.116-1, see here), so may just be a regression in Brave itself. In any case, would recommend using cachyos repos over AUR when available.