Hey Valentin, On Fri, Nov 09, 2018 at 10:35:59AM +0100, Valentin Iovene wrote: > Sometimes I however want to save the PDF. There is a Download button > embedded in pdf.js (top right corner) but it doesn't do anything when I > click it. Maybe this is a bug?
It's complicated - in short, it's a PDF.js bug (or feature - it silently ignores downloads not coming from a http/https URL) which triggers because of a workaround for a Qt bug. It should be possible to disable that workaround with Qt 5.12, where the download button should start working. > My current process is to disable pdfjs, download the PDF by re-opening > the initial PDF URL, re-enabling pdfjs. But this is cumbersome. You can instead disable content.pdfjs and hit Ctrl-P (:prompt-open-download --pdfjs) in the download prompt. > Also, where are temporary PDF files located? This could be an > alternative solution to just cp the PDF from a terminal. In a qutebrowser-download-... directory in your OS' temporary directory. Don't remember where that was on macOS, but you can do :debug-console and this: from qutebrowser.browser import downloads downloads.temp_download_manager.get_tmpdir().name Florian -- https://www.qutebrowser.org | m...@the-compiler.org (Mail/XMPP) GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc I love long mails! | https://email.is-not-s.ms/
signature.asc
Description: PGP signature