0
I have some links to PDF’s on my website and I checked that on google the information does not appear correct.
So the question is: Can I set the meta description and title in PDF?
With some search instead of directly showing the link to CertificadoQAmadeuAntunes.pdf
I started by changing to CertificadoQAmadeuAntunes.php
and put the following code:
<?php
$file = './CertificadoQAmadeuAntunes.pdf';
$filename = 'CertificadoQAmadeuAntunes.pdf';
/* Note: Always use .pdf at the end. */
header('Content-type: application/pdf');
header('Content-Disposition: inline; filename="' . $filename . '"');
header('Content-Transfer-Encoding: binary');
header('Content-Length: ' . filesize($file));
header('Accept-Ranges: bytes');
@readfile($file);
?>
Now I wanted to put the tags "title" "description" and "Keywords".