• Hi. I was setting some images with an href that loads pdf files and, surprisingly, there is just one which is not working. The others work fine. This one open a new tab and displays the message: “Se ha producido un error al cargar el documento PDF.” (which means: There has been an error when loading the PDF file.).

    I would like to know why one PDF is not working and the others do. The code used is:

    <a href="<?php get_bloginfo('abs') ?>/docs/CE-Certificate.pdf" target="_blank"><img alt="CE Certificate" title="CE Certificate" src="<?php bloginfo('template_directory'); ?>/images/logo-ce.jpg"></a>
    						<a href="<?php get_bloginfo('abs') ?>/docs/Iso-Certificate.pdf" target="_blank"><img alt="ISO certificate" title="ISO certificate" src="<?php bloginfo('template_directory'); ?>/images/logo-iso.jpg"></a>
    						<a href="<?php get_bloginfo('abs') ?>/docs/Health-License.pdf" target="_blank"><img alt="Health License" title="Health License" src="<?php bloginfo('template_directory'); ?>/images/licencia-sanitaria.jpg"></a>

    First two links work, third does not. The name of the PDF file is Health-License.pdf, so it is correct. I tried changing the name of the pdf file for x.pdf (here in the href and the name of the file itself) and the same happens.

    Any help?

    Thank you

Viewing 1 replies (of 1 total)
  • Thread Starter adminadminadmin

    (@adminadminadmin)

    I fixed the problem loading the pdf file again and removing the previous on, with another name. But if I set the neam to Health-License, it doesn’t work again.

    Now I realized another issue. I was working with Google Chrome to display the website and see my changes. Now it is working and displayed as I want. But with other browsers like Internet Explorer or Mozilla Firefox it doesn’t work. I didn’t want to update to the new WordPress version just in case it stops working with some of my plugins, but maybe this is the reason the website is not updated in the other browsers? Actually, I tried in another computer with Google Chrome and it is not working either. What is the reason?

    Thank you

Viewing 1 replies (of 1 total)
  • The topic ‘How to solve PDF error when loading?’ is closed to new replies.