javascript - Links to download and print a PDF doc (w/o PHP) -


could please me make 2 different links: 1 launch open/save pdf, print dialog boxes (e.g. in adobe reader application)

<a href="http://gasparean.com/resume.pdf">my résumé</a> 

i mean, maybe need put file on server in way (without extension, instance; please, check how's done here: http://gasparean.academia.edu/gasparean/curriculumvitae

please note, hosting use, not support php, need solution without scripts.

thank you!

ideally, php best option. if can use .htaccess files on server, or can access apache config files, add line in there:

addtype application/octet-stream .pdf 

note: if add in .htaccess, make pdf in directory download -- , if set line in apache config files, force pdf download.

you use html5 download attribute, works in chrome @ minute anyway...

<a href="http://gasparean.com/resume.pdf" download="resume">my résumé</a> 

Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -