• Hi
    I’m thinking about use PDF.js(https://mozilla.github.io/pdf.js/) through my site, I want when I click PDF document link, open the WP attachment page inside the iframe with PDF.js support.

    I’m not using the PDF view plugin, because of it’s development 3 years ago, and haven’t update yet, I keep getting an error message. The most important thing is I have more than 100 PDF on my site, I want to use JQuery loop through all the link and open the attachment page with an iframe in it.

    Is that possible? Thank you.

Viewing 1 replies (of 1 total)
  • Yes it is. Are you using a child theme? If not you will need to create one. If you are, you can enqueue the pdf.js script and add the jquery necessary to add attributes to the links that contain .pdf in the filename.

Viewing 1 replies (of 1 total)
  • The topic ‘Use PDF.js for my wordpress site’ is closed to new replies.