W3C home > Mailing lists > Public > www-style@w3.org > April 2003

@page { size: A4 }

From: Michael Day <mikeday@yeslogic.com>
Date: Fri, 11 Apr 2003 10:44:46 +1000 (EST)
To: www-style@w3.org
Message-ID: <Pine.LNX.4.44.0304111023490.10992-100000@lorien.yeslogic.com>


Hi,

This is a proposal for an extension to the page size property to take
named paper sizes in addition to lengths, to make it easier for users to
specify standard paper sizes without resorting to a ruler.

Syntax:

@page { size: identifier1 [identifier2] }

identifier1 is the case-insensitive name for a standard paper size.
http://www.cl.cam.ac.uk/~mgk25/iso-paper.html has a suitable list of
standard paper size names and dimensions, for example:

 A4 : 210mm x 297mm
 A5 : 148mm x 210mm
 ...

identifier2 is an optional orientation of either "portrait" or
"landscape". Without this it would be impossible to request a landscape A4
size page for example without resorting to a ruler again.

Examples:

@page { size: A4 }
@page { size: A4 landscape }
@page { size: US-Letter }
@page { size: 210mm 297mm }  /* old syntax still acceptable */

Implementation:

YesLogic Prince implements this property in the manner described above
(http://yeslogic.com/prince). It supports all of the ISO paper sizes and
also "US-Letter", "US-Legal", "US-Executive" and "US-Ledger" for the
convenience of US users.

Thanks,

Michael Day

YesLogic Pty. Ltd.
Received on Thursday, 10 April 2003 19:30:18 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:20 GMT