Open viewer in new tab

Asked by At

I am using pdf.js and viewer.js to render an in-memory PDF document. Rendering works fine, but I need the viewer to open in a new tab.

// This will open the PDF in the current page
// pdfViewer is an iframe on my page
var pdfjsframe = document.getElementById('pdfViewer');

// data is an arraybuffer;

0 Answers