How to solve PDF error when loading?
-
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
The topic ‘How to solve PDF error when loading?’ is closed to new replies.