• Resolved cocis91

    (@cocis91)


    I am experiencing exactly the same issue where a link is showing instead of the pdf viewer as has been reported elsewhere, including for LearnDash here:
    https://www.ads-software.com/support/topic/pdf-is-not-shown-just-a-link-within-learndash/

    I am using V 4.4.5 of the PDF Embedder Premium Secure (the paid secure version of PDF Embedder). How do I fix this critical issue?

    The viewer / embed works fine on normal web pages, it is just the lesson pages in Tutor LMS that have this issue.

    Also, does anyone know how to set one embedded pdf on one page so it is fully protected from download, and set another different pdf on another page to allow downloads? Is there some code that can be added to the shortcode for this? It seems crazy that this premium version of the plugin is a one size fits all for all pdfs on your website? We really ought to be able to configure such things for individual pdfs?

    Thanks for any help with this!

Viewing 4 replies - 1 through 4 (of 4 total)
  • PDFG Support

    (@wppdfsupport)

    Hi @cocis91,

    Is the lesson page rendered using AJAX? If so, you will need to have the PDF Embedder scripts initiated just after that AJAX element is called. Please see https://wp-pdf.com/kb/the-viewer-doesnt-display-at-all-or-at-wrong-size-when-inside-a-javascript-based-tab-or-ajax-page-transitions/.

    When using the PDF Embedder Secure, you can still allow downloading of individual documents by using the shortcode attribute download=”on”. You will need to enter the shortcode manually or use the Classic Editor block instead of the PDF Embedder block in order to have the shortcode output in an editable form. Then added the attribute for the download. Please see https://wp-pdf.com/premium-instructions/shortcodes/

    If you have any other questions, please feel free to send an email to [email protected] as we may not see messages posted here to respond in a timely fashion and our paid support is available via email.

    Thread Starter cocis91

    (@cocis91)

    Thank you for your reply!

    How do I find out if the page is loaded with AJAX? And where exactly should I be placing code? In the Custom CSS box of the theme or something? Please, if you could explain that would help a lot.

    PDFG Support

    (@wppdfsupport)

    Hi @cocis91,

    If you have to interact with the element on the page to view the content, such as tabbed sections, accordions, popups, etc. then this will be powered with AJAX.

    The snippet will need to be placed within the code that creates the tabbed/accordion/popup element. I would recommend reaching out to LearnDash’s support as they would know exactly where in their code the element is called and be able to modify it to insert additional scripts.

    Thread Starter cocis91

    (@cocis91)

    OK thanks, I will have a go to see if they will help me. Is it worth your team behind PDF Embedder working with Tutor LMS, Learndash and the few really big LMS platforms so they support your plugin?

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PDF viewer not loading on lesson page is Tutor LMS’ is closed to new replies.