Fix saving PDFs open in pdf.js