[ Comments |
Contents
|
Previous
|
Next
]
HTMLDOC supports many special HTML comments to initiate page breaks,
set the header and footer text, and control the current media options:
<!-- FOOTER LEFT "foo" -->
- Sets the left footer text; the test is applied to the current page
if empty, or the next page otherwise.
<!-- FOOTER CENTER "foo" -->
- Sets the center footer text; the test is applied to the current page
if empty, or the next page otherwise.
<!-- FOOTER RIGHT "foo" -->
- Sets the right footer text; the test is applied to the current page
if empty, or the next page otherwise.
<!-- HALF PAGE -->
- Break to the next half page.
<!-- HEADER LEFT "foo" -->
- Sets the left header text; the test is applied to the current page
if empty, or the next page otherwise.
<!-- HEADER CENTER "foo" -->
- Sets the center header text; the test is applied to the current page
if empty, or the next page otherwise.
<!-- HEADER RIGHT "foo" -->
- Sets the right header text; the test is applied to the current page
if empty, or the next page otherwise.
<!-- MEDIA BOTTOM nnn -->
- Sets the bottom margin of the page. The "nnn" string can be any
standard measurement value, e.g. 0.5in, 36, 12mm, etc. Breaks to a new
page if the current page is already marked.
<!-- MEDIA COLOR "foo" -->
- Sets the media color attribute for the page. The "foo" string is any
color name that is supported by the printer, e.g. "Blue", "White", etc.
Breaks to a new page or sheet if the current page is already marked.
<!-- MEDIA DUPLEX NO -->
- Chooses single-sided printing for the page; breaks to a new page or
sheet if the current page is already marked.
<!-- MEDIA DUPLEX YES -->
- Chooses double-sided printing for the page; breaks to a new sheet if
the current page is already marked.
<!-- MEDIA LANDSCAPE NO -->
- Chooses portrait orientation for the page; breaks to a new page if
the current page is already marked.
<!-- MEDIA LANDSCAPE YES -->
- Chooses landscape orientation for the page; breaks to a new page if
the current page is already marked.
<!-- MEDIA LEFT nnn -->
- Sets the left margin of the page. The "nnn" string can be any
standard measurement value, e.g. 0.5in, 36, 12mm, etc. Breaks to a new
page if the current page is already marked.
<!-- MEDIA POSITION nnn -->
- Sets the media position attribute (input tray) for the page. The
"nnn" string is an integer that usually specifies the tray number.
Breaks to a new page or sheet if the current page is already marked.
<!-- MEDIA RIGHT nnn -->
- Sets the right margin of the page. The "nnn" string can be any
standard measurement value, e.g. 0.5in, 36, 12mm, etc. Breaks to a new
page if the current page is already marked.
<!-- MEDIA SIZE foo -->
- Sets the media size to the specified size. The "foo" string can be
"Letter", "Legal", "Universal", or "A4" for standard sizes or
"WIDTHxHEIGHTunits" for custom sizes, e.g. "8.5x11in"; breaks to a new
page or sheet if the current page is already marked.
<!-- MEDIA TOP nnn -->
- Sets the top margin of the page. The "nnn" string can be any
standard measurement value, e.g. 0.5in, 36, 12mm, etc. Breaks to a new
page if the current page is already marked.
<!-- MEDIA TYPE "foo" -->
- Sets the media type attribute for the page. The "foo" string is any
type name that is supported by the printer, e.g. "Plain", "Glossy",
etc. Breaks to a new page or sheet if the current page is already
marked.
<!-- NEED length -->
- Break if there is less than
length units left on the
current page. The length value defaults to lines of text
but can be suffixed by in, mm, or cm
to convert from the corresponding units.
<!-- NEW PAGE -->
- Break to the next page.
<!-- NEW SHEET -->
- Break to the next sheet.
<!-- NUMBER-UP nn -->
- Sets the number of pages that are placed on each output page. Valid
values are 1, 2, 4, 6, 9, and 16.
<!-- PAGE BREAK -->
- Break to the next page.
[ Comments |
Contents
|
Previous
|
Next
]
No comments for this page.
|