Module page

Module page 

Source
Expand description

Page settings for document sections.

PageSettings defines the physical dimensions of a page: width, height, and margins. Each section in a document can have its own page settings (e.g. landscape pages mixed with portrait).

All measurements use HwpUnit from Foundation.

§Examples

use hwpforge_core::PageSettings;

let a4 = PageSettings::a4();
assert!(a4.width.to_mm() > 209.0);
assert!(a4.width.to_mm() < 211.0);

let letter = PageSettings::letter();
assert!(letter.width.to_inch() > 8.4);

Structs§

PageSettings
Physical page dimensions and margins for a section.