Re: [OT] how to calculate a printable page?
Re: [OT] how to calculate a printable page?
- Subject: Re: [OT] how to calculate a printable page?
- From: Haris Pobric <email@hidden>
- Date: Tue, 20 Apr 2010 08:19:09 -0500
Hi Ute,
In my experience, at least with sites/apps used by users primarily from the US, it is safe to assume that Windows machines will by default have printer margins set to 0.75" (roughly 1.835 cm). Since default margins on the Mac are smaller (I think it may be 0.5" or 1.27 cm) we tend to use Windows as the guideline as it makes things easier and less time consuming. The default margins in Europe are different (A4 vs. letter size paper, etc.) but I think that the ratio is between two platforms is similar.
As for the footer, we usually just add sufficient space between the footer and the content above it by specifying top or bottom margin value to the appropriate div in our CSS file. While this does not guarantee that the footer will be perfectly at the bottom of the page it handles user-specific variables (increased type size in the browser, etc.) better and is, in my experience, a much easier approach. However, if you need absolute control over element positioning you may need to resort to using PDF instead.
Hope this helps.
Haris
On Apr 20, 2010, at 3:02 AM, ute Hoffmann wrote:
> Hi,
> I need to place a footer at the end of a page, the page is html and is to be printed.
>
> Now I found a formula which changes cm to pixel, but it states,
> that there is a difference between windows and mac, which
> leads to a difference of 200 Pixel for the same cm-Values.
>
> requirement is this: User enters the printing borders in cm
> and the web-Page is changed accordingly and finally printed
> with the entered borders.
>
> Now: I cannot believe that this means I have to ask the user
> whether he is on windows or mac and thus have different
> calculations going on.
>
> Is the right way to not let the user print from the webpage but let
> him download a pdf?
>
> How do others solve this?
>
> Regards,
>
> Ute
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden