@page { size: A4 }

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 UTC