Load dynamic pdf file through page viewer or content editor wepart
Basically, if you had more than one pdf to view; it is not that easy to insert a pdf file onto a SharePoint page (through page viewer Webpart). To fix this, I used a query string and a small java script to dynamically load the pdf on my page.
You have to first create a url. It consists of the url of the pdf documentl.
http://<Server>/<Site Collection>/site/pages/<YourPage>.aspx?pdfurl=/sites/demojoseph/Lists/List Read Attach/Attachments/1/jebaticket.pdf
Add the following code in the source of a Content Editor Webpart