[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: web page accessibility :: PDF and print versions -- solved



* ArcticFox <genkokitsu@insightbb.com> [070722 00:35]:
>
>> My web site includes links to documents in PDF format.  Because of
>> length, the documents are set in a 10-point font, with footnotes in an
>> 8- or 9-point.
>>
>> I am attempting to accommodate visitors with impaired vision, by
>> generating a HTML version of each PDF document, in order to enable a
>> visitor to enlarge the type via the browser.
>>
>> But sometimes a visitor needs to be able to print out hardcopy for
>> reading off-line.  I do not know to specify the font size used in the
>> print version of a HTML document.  What is the mechanism?  Does a
>> browser access a default style sheet for printing?
>>
>> Can someone point me in the right direction?
>>
> Assuming you are talking about wanting to print the HTML version of the 
> page, include a snippet of CSS with the '@media print' rule in it in the 
> <head> of the document. If you don't use CSS anywhere else in the document 
> the following should be all you need (test it however, to ensure that it 
> works as intended.)
>
> <style>
> @media print {
> body { font-size:xx; }
> }
> </style>
>
> Replace 'xx' with the size you desire. I suggest starting with '2em' and 
> working up from there.

Many thanks, Arctic and all.  This approach works well.  You have
saved me much time.

It turns out that HeVeA has added a 

    <STYLE type="text/css">

section to the head of the HTML	document, so I inserted the lines

    @media print {
    body { font-size:2em; }
    }

just before the </STYLE> tag.

Experimenting, I found that "1em" produces a nearly-normal font, "2em"
produces a very large font, and that "1.5em" produces a font about the
size I think that most visually-impaired users shall find useful.

RLH



Reply to: