pipwerks/PDFObject — Issue #12: Load multiple PDF's
Author: maxavi
Created: 2012-01-19 21:00:00+00:00
State: open

Hi, nice object! only thing is that I would like to load a pdf in my div when a user clicks on a link without refreshing the browser. Something like:

myPDF = new PDFObject({ file }).embed('pdf_viewer');
myPDF({ url: new_file }).embed('pdf_viewer');

With new_file being the path, the first file is loaded but the second not. Tried it even like:

myPDF.url = 'new_file';
myPDF.embed('pdf_viewer');

Thanks!