Skip to content

Shows how to show a PDF file in a browser from a node webserver, using Angular or a vanilla XMLHttpRequest

Notifications You must be signed in to change notification settings

rich-newman/node-serve-pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-serve-pdf

Shows how to show a PDF file in a browser from a node webserver, using Angular or a vanilla XMLHttpRequest

To run:

  • Make sure you have node installed (https://nodejs.org/en/download/)
  • Clone the repo, or unzip the four files, and start a command prompt/terminal in the resulting folder
  • Run 'node nodewebserver'. It should say 'Listening on port 8000'.
  • In a browser enter URL localhost:8000. Click on the buttons and if you unblock popups it should show the PDF file.

This doesn't work in Edge because http://stackoverflow.com/questions/24007073/open-links-made-by-createobjecturl-in-ie11

About

Shows how to show a PDF file in a browser from a node webserver, using Angular or a vanilla XMLHttpRequest

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published