Cross browser download demo (of PDF)
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md
example.pdf
index.html
package-lock.json
package.json

README.md

FileReader can be used to save PDF file to desk but Chrome needs a.href = window.URL.createObjectURL(blob) while iOS needs a.href = reader.result.

Turns out it was working with just FileReader all along. But Chrome is subject to port forwarding errors when downloading...

https://dotnetcarpenter.github.io/FileReader_Chrome/

To run locally

  1. npm i
  2. npm start
  3. open web browser at localhost:9000