Important if PDFs are only to be available behind login or downloadable after transaction.
//add to header.php file:
header("X-Robots-Tag: noindex, nofollow", true);
//or add to .htaccess:
<FilesMatch ".(doc|pdf)$">
Header set X-Robots-Tag "noindex, noarchive, nosnippet"
</FilesMatch>