Anchor link Work in PDF

In IE, at this time, snapping to a section in a PDF file only works if the PDF in question is cached or has been recently downloaded to a user computer.

Example

User clicks anchor link to pdf first time 
    PDF loads at the beginning of document
User goes back to website and clicks link again
    PDF loads at anchor linked position

Does anyone know of a job where a PDF will load in the right place after the first click on a link?

Please note that anchor links are of type #page=200and comply with these recommendations http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/pdf_open_parameters.pdf

+1
source share
1 answer

Here is my current solution, although it does not work perfectly.

<div class="hidden" id="iframes"></div> //-- hidden div at bottom of page 

$(function() {
    var urls = ["url one", "url two", "etc..."];
    $(urls).each(function(index, url) {
        var iframe = $("<iframe />").attr({ src: url });
        $("#iframes").append(iframe);
    });
});
0
source

Source: https://habr.com/ru/post/1723992/


All Articles