#******************************************************************************
# File:     @(#)$Id: example.mdf,v 1.5 1998-05-10 19:43:35+02 mjl Rel $
# Contents: Example of a margin file for the ghostscript device "hpdj":
#	    Supported media dimensions and their margins for the model "unspec"
# Author:   Martin Lottermoser, Metzgerfeldweg 9, 85737 Ismaning, Germany
#
#******************************************************************************
#									      *
#	Copyright (C) 1997, 1998 by Martin Lottermoser			      *
#	All rights reserved						      *
#									      *
#******************************************************************************
#
# Note: Unless you modify this margin file it is not needed for "unspec"
# because the values given here are built into hpdj. Just use this file as a
# template for modifications.
#
# You should comment out all lines with page sizes not supported by your
# printer model.
#
#------------------------------------------------------------------------------
#
# For DeskJet printers, the left and top margins determine clipping
# boundaries and how the output is positioned on the page. The right and bottom
# margins are merely clipping boundaries.  The right margin should be
# sufficiently large to prevent the print head being caught at the medium's
# edge. HP recommends at least 1/8 in for the DeskJet 500 series. The bottom
# margin should be large enough to prevent printing beyond the sheet, even if
# the paper becomes skewed. A value around 0.5 in seems usual.
#
# Be careful when defining margins! In particular for envelopes, older
# (pre-1997) HP documentation frequently give their margins in landscape
# orientation instead of in portrait orientation as needed here. A useful rule
# of thumb is this: If the bottom margin is not the largest of the four margins,
# it's very likely landscape. The value should be around 0.5 in (ca. 12 mm).
# As far as I was able to check (I found no statement in HP's documentation),
# the relation between landscape and portrait is the same in PCL as in
# PostScript: rotate the page contents by +90 degrees (counterclockwise) from
# portrait and you get landscape.  This means that if the bottom margin is not
# the largest, the left margin should be. If it isn't, THINK CAREFULLY!, because
# I can't help you any further.
#
# This discussion also assumes that the printable area does not change when the
# orientation changes. If this is not true, you can't convert margins given for
# landscape orientation to margins for portrait orientation. (No HP statement
# available for this point either...)
#
#------------------------------------------------------------------------------
#
# The syntax of margin entries is:
#   <PCL page size code> <left> <bottom> <right> <top>
# Margins are measured in inches or millimetres as specified by the last
# preceding "unit in" or "unit mm" line (inches are default). All four margins
# refer to
#   (a) portrait orientation for the medium (width <= height),
#   (b) raster graphics mode, and
#   (c) printing in black.
# For hpdj's model "unspec", the margins are assumed to apply to colour
# printing as well.

# The default values given here almost agree with:
#   Hewlett-Packard
#   "HP DeskJet 855C, 850C, 870C, and 890C Series Printers - Printable Areas"
#   1996-06-06, available from http://www.hp.com: bpd02523
# For the 870C und 890C DeskJets you should therefore not need a margin file
# when printing via "unspec".

# The margins are specified in inches (the unit line is actually superfluous
# because this is the default, but it's here to remind you that this can be
# changed):
unit in

# US Executive (7.25 x 10.5 in):
1	0.25 0.46 0.25 0.04
# US Letter (8.5 x 11 in):
2	0.25 0.46 0.25 0.04
# US Legal (8.5 x 14 in):
3	0.25 0.46 0.25 0.04
# US Tabloid (11 x 17 in) or Ledger (17 x 11 in)
# 6	not supported by default
# US Statement (5.5 x 8.5 in)
# 15	not supported by default
# Super B (305 x 487 mm)
# 16	not supported by default
# ISO A6 (105 x 148 mm):
24	0.125 0.46 0.125 0.04
# ISO A5 (148 x 210 mm):
25	0.13 0.46 0.13 0.04
# ISO A4 (210 x 297 mm):
26	0.13 0.46 0.13 0.04
# ISO A3 (297 x 420 mm)
# 27	not supported by default
# JIS B5 (182 x 257 mm)
45	0.13 0.46 0.13 0.04
#	Actually, bpd02523 states that the top margin should be 0.46 in for
#	JIS B5. This is unlikely in general and provably wrong for the DJ 850C.
# JIS B4 (257 x 364 mm)
# 46	not supported by default
# Hagaki card (100 x 148 mm)
71	0.125 0.46 0.125 0.04
# US Index card (4 x 6 in):
74	0.125 0.46 0.125 0.04
# US Index card (5 x 8 in):
75	0.125 0.46 0.125 0.04
# US No. 10 envelope (4.125 x 9.5 in):
81	0.125 0.87 0.125 0.04
# ISO DL (110 x 220 mm):
90	0.125 0.87 0.125 0.04
# ISO C6 (114 x 162 mm):
92	0.125 0.87 0.125 0.04

# Custom page size:
101	0.13 0.46 0.13 0.04

# US A2 envelope (4.375 x 5.75 in)
# 109	not supported by default
