Menu

Configuration files

Dirk Krause
← Previous ↑ Home ↑ Administration Next →

Configuration files

Paper sizes

Syntax

Programs using DK libraries version 4 process both dk4paper.conf and dk3paper.conf files. Programs using DK libraries version 3 process only dk3paper.conf files.

All found files — see [Configuration and resource file search] — are processed cumulatively, settings in files processed later overwrite settings in files processed earlier.

The dk3paper.conf files specify paper sizes, one per line.

Each line consists of a name, an equal sign ("=") and either 2 or 6 floating point values.

The floating point values specify dimensions in PS points (72 points per inch):

  • Paper width.
     
  • Paper height.
     
  • Left/inner border.
    When printing duplex without tumble (book), this value is used for the left border on odd pages and for right border on even pages.
     
  • Right/outer border.
    When printing duplex without tumble (book), this value is used for the right border on odd pages and for left border on even pages.
     
  • Top/inner border.
    When printing duplex with tumble (calendar), this value is used for the top border on odd pages and for bottom border on even pages.
     
  • Bottom/outer border.
    When printing duplex with tumble (calendar), this value is used for the bottom border on odd pages and for top border on even pages.

Example lines

A4  =   595 842
a4  =   595 842 56  28  14  14

In the example above we configure two paper sizes: "A4" and "a4".
Paper size names are case-sensitive. The "A4" size is 595 points wide and 842 points high. The entire sheet is used for this paper size, no borders are left.
The "a4" size also is 595 points wide and 842 points high. When using this paper size we have to leave 56 points (approximately 2cm) border on the left side, 28 points on the right side and 14 points on top and bottom.

← Previous ↑ Home ↑ Administration Next →

Related

Wiki: Administration
Wiki: Configuration and resource file search

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.