- ret.paper_width = 595 * 4096;
- ret.paper_height = 841 * 4096;
- ret.left_margin = 72 * 4096;
- ret.top_margin = 72 * 4096;
- ret.right_margin = 72 * 4096;
- ret.bottom_margin = 108 * 4096;
- ret.indent_list_bullet = 6 * 4096;
- ret.indent_list_after = 18 * 4096;
- ret.indent_quote = 18 * 4096;
- ret.base_leading = 4096;
- ret.base_para_spacing = 10 * 4096;
- ret.chapter_top_space = 72 * 4096;
- ret.sect_num_left_space = 12 * 4096;
- ret.chapter_underline_depth = 14 * 4096;
- ret.chapter_underline_thickness = 3 * 4096;
- ret.rule_thickness = 1 * 4096;
+ ret.paper_width = 595 * UNITS_PER_PT;
+ ret.paper_height = 841 * UNITS_PER_PT;
+ ret.left_margin = 72 * UNITS_PER_PT;
+ ret.top_margin = 72 * UNITS_PER_PT;
+ ret.right_margin = 72 * UNITS_PER_PT;
+ ret.bottom_margin = 108 * UNITS_PER_PT;
+ ret.indent_list_bullet = 6 * UNITS_PER_PT;
+ ret.indent_list_after = 18 * UNITS_PER_PT;
+ ret.indent_quote = 18 * UNITS_PER_PT;
+ ret.base_leading = UNITS_PER_PT;
+ ret.base_para_spacing = 10 * UNITS_PER_PT;
+ ret.chapter_top_space = 72 * UNITS_PER_PT;
+ ret.sect_num_left_space = 12 * UNITS_PER_PT;
+ ret.chapter_underline_depth = 14 * UNITS_PER_PT;
+ ret.chapter_underline_thickness = 3 * UNITS_PER_PT;
+ ret.rule_thickness = 1 * UNITS_PER_PT;