portrait

Description

Specifies the page orientation for HTML print-outs.

The portrait property is part of the basic freely-distributable printing subset.

Setting this property never causes the margins to be swapped. If margin swapping is required, please use the orientation property.

Syntax

printing.portrait = true|false

Settings

This is a read/write property. Use true to specify portrait and false for landscape.

Applies To

printing

Example

Check out the source code of the ScriptX Basic Printing example.

See Also

orientation

bottomMargin, leftMarginpageHeight, pageWidth, paperSizetemplateURL, topMargin, unprintableBottom, unprintableLeft, unprintableRight, unprintableTop

PageSetup