The short answer is no : PDF processing is completely dependent on client-side software, from a web browser to a PDF reader. Your server may provide hints that may or may not be used by the browser, but you will not be able to execute it using regular HTML.
Regardless, you can configure your web server to send the appropriate HTTP headers. If you are using Apache , you can use the .htaccess file :
<FilesMatch "\.(?i:pdf)$">
ForceType application/pdf
Header set Content-Disposition attachment
</FilesMatch>
If you replace application / pdf with an application / octet stream , you can even bypass the PDF plugin if it is installed (not guaranteed).
Other web servers will require a different configuration.
source
share