To display a PDF file you need to upload the file to the media library and then add a short code to the page where you want it displayed. For example, the code for the file on Day 6 of StaPoWriMo is:
[code][pdfjs-viewer url=http://crossborderpoets.co.uk/wp-content/uploads/2014/10/ToDad.pdf viewer_width=600px viewer_height=700px fullscreen=true download=true print=true openfile=false][/code]
You can get the url from the media page for the file. Just use the code above with your file name.
Here is the short code syntax.
Shortcode Syntax:
[code][pdfjs-viewer url=http://www.website.com/test.pdf viewer_width=600px viewer_height=700px fullscreen=true download=true print=true openfile=false][/code]
- url (required): direct url to pdf file
- viewer_width (optional): width of the viewer (default: 100%)
- viewer_height (optional): height of the viewer (default: 1360px)
- fullscreen (optional): true/false, displays fullscreen link above viewer (default: true)
- download (optional): true/false, enables or disables download button (default: true)
- print (optional): true/false, enables or disables print button (default: true)
- openfile (optional): true/false, enables or disables open file button (default: false)