The IlvPaperFormat Class

The IlvPaperFormat class describes paper formats. Paper formats can be registered and queried by name.

A number of commonly used paper formats have been preregistered. Dimensions must be given in PostScript points.

Note

On the Windows platform, when using IlvWindowsPrinter, the printer driver is responsible for the paper sizes, so this class is used only with IlvPSPrinter.

Retrieving a paper format:

IlvPaperFormat* letterformat = IlvPaperFormat::Get("Letter");

Creating a new paper format:

IlvPrintCMUnit width(100.0);

IlvPrintCMUnit height(100.0);

IlvPaperFormat::Register("MyFormat", width.getPoints(), height.getPoints());

Predefined paper formats are shown in Predefined Paper Formats:

Predefined Paper Formats

Name

Width (in points)

Height (in points)

A0

2380

3368

A1

1684

2380

A2

1190

1684

A3

842

1190

A4

595

842

A5

421

595

A6

297

421

B4

709

1003

B5

516

729

C5

459

649

Quarto

610

780

Folio

612

936

Statement

396

612

Monarch

279

540

Executive

540

720

Ledger

1224

792

Tabloid

792

1224

Legal

612

1008

Letter

612

792