[thelist] Automatic Print .PDF?

Dunstan Orchard dunstan at 1976design.com
Sat Oct 12 18:25:01 CDT 2002

> > From: "Janet FitzGerald" <waxplanet at sunflower.com>
> >
> > I was wondering if it's possible to code a page to automatically print
> > a .pdf when the user tries to File/Print from the browser.  We are
> > building an online gallery that has a printable .pdf.  We don't want
> > the user to inadvertently print the web page thinking they are
> > printing the .pdf.  Does that make sense?
> well, no, not quite...
> the browser will try to print the page it sees, and as far as i know,
> there is no scripting to modify that behavior (thankfully)...

yes, there is - just pop this in the head of your document (and
replace 'printversion.pdf' with the name of your printable file):

<link rel="alternate" media="print" href="printversion.pdf">

> of course, you need to manage the
> user's expectations before you push a 500k PDF down their 56k line...
> consider an alert, a tooltip, text beneath the icon, etc...

good point :op

hth - dunstan (good lord, have I actually managed to offer some useful advice?)

Dorset, England

More information about the thelist mailing list