• Resolved plumsa

    (@plumsa)


    After updating the PDF Embedder plugin to 4.7.1, the pdf is no longer displayed.
    Instead of not being displayed, only a link to the pdf is generated.
    I am using the following shortcode, but is the shortcode no longer available?

    [pdf-embedder url=”**”]

    Can I continue to use the shortcode if I use the paid version of the plugin?

    I am on version 6.4.3 of WordPress.
    I am using the Classic Editor plugin.

    • This topic was modified 8 months, 1 week ago by plumsa.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi, @plumsa.
    Thanks for contacting us!

    Can you please share with us a URL with this issue? I’d like to check the console and see if there are any errors.

    Shortcodes are still a way to embed the PDF on your page. It’s not necessary to change it, it should be working fine.

    Thanks,
    and count on us!

    Hi, @plumsa.

    It occurred to me now that maybe an incorrect URLs to PDF was used in the shortcode. The URL should contain?https://?.

    Technically, a full path?will work as well (/wp-content/uploads/2024/03/test.pdf) – but this is not the best option.

    Please know that using something like path traversing:?../?is not supported anymore (security concerns, fixed in 4.7.0).

    Could you please check this and let me know? We made security-related improvements in the plugin and thus it’s important to review and fix URLs in shortcode which remained the same and are used across all free and paid versions of the PDF Embedder.

    Thanks,
    and count on us!

    Thread Starter plumsa

    (@plumsa)

    Thank you for your prompt reply.

    We apologize for not being able to share the URL regarding this issue due to our circumstances.
    However, the part where the pdf was always displayed is just a link description as shown below.

    <a href="***** class="pdfemb-viewer" style="width:100px;height:100px;" data-width="100" data-height="100" data-toolbar="top" data-toolbar-fixed="off">test</a>

    Also, the following code is successfully embedded

    <link rel='stylesheet' id='pdfemb_embed_pdf_css-css' href='******/wp-content/plugins/pdf-embedder/assets/css/pdfemb-embed -pdf.min.css?ver=4.7.1' type='text/css' media='all' />
    
    <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js?ver=6.4.3" id="jquery-js"></ script>
    
    <script type="text/javascript" src='******/wp-content/plugins/pdf-embedder/assets/js/pdfjs/pdf.min.js?ver=2.2.228" id=" pdfemb_pdfjs-js"></script>
    • This reply was modified 8 months, 1 week ago by plumsa.

    Hi, @plumsa.
    Thanks for the details.

    Can you please check your browser’s console and let us know if there are any errors? And, if possible, can you share the shortcode used replacing your domain and PDF file’s name with “domain” or “pdf_name”?

    Thanks,
    and count on us!

    Thread Starter plumsa

    (@plumsa)

    It seems that the old version of jQuery was loaded together, sorry.
    Thank you very much for your help!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘After updating the PDF Embedder plugin to 4.7.1, the pdf is no longer displayed.’ is closed to new replies.