Brave (AUR brave-bin) cannot open PDFs

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.

This is very much how not to do installs..

    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.