The document element is the root element of all other elements and describes the PDF document.

Syntax:

Element

Attributes

Value

Notes for Element/Attribute/Value

document

page-size

A0 to A10

Default is A4.

B0 to B5


letter


value

width, height

margin

value

left, right, top, bottom
Default is 36 points.

orientation

portrait

Default.

landscape


background

color


border

boolean

Default is false.

grid

boolean

Default is false.

author

string


title

string


subject

string


keywords

string


creator

string

LANSA Integrator Document Service

hide-toolbar

boolean

Default is false.

hide-menubar

boolean

Default is false.

hide-windowui

boolean

Default is false.

allow-printing

boolean

Default is true.

allow-copy

boolean

Default is true.

allow-modify-contents

boolean

Default is true.

allow-modify-annotations

boolean

Default is true.

allow-fillin

boolean

Default is true.

allow-screenreader

boolean

Default is true.

allow-assembly

boolean

Default is true.

allow-degraded-printing

boolean

Default is true.

compression

boolean

Default is false.

page-layout

onecolumn


singlepage

Default.

twopageleft


twopageright


twocolumnleft


twocolumnright


fitwindow

boolean

Default is false.

centerwindow

boolean

Default is false.

display-doctitle

boolean

Default is false.

printscaling-none

boolean

Default is false.

page-direction

L2R


R2L


page-mode

useoc


usenone

Default.

usethumbs


useoutlines


useattachments


fullscreen


nonfullscreen-page-mode

useoc


usenone

Default.

usethumbs


useoutlines


The page-layout attribute sets the page layout to be used when the document is opened (choose one).

The page-mode attribute sets the page mode to be used when the document is opened (choose one).

hide-toolbar - A flag specifying whether to hide the viewer application's tool bars when the document is active.

hide-menubar - A flag specifying whether to hide the viewer application's menu bar when the document is active.

hide-windowui - A flag specifying whether to hide user interface elements in the document's window (such as scroll bars and navigation controls), leaving only the document's contents displayed.

fitwindow - A flag specifying whether to resize the document's window to fit the size of the first displayed page.

centerwindow - A flag specifying whether to position the document's window in the center of the screen.

display-doctitle - A flag specifying whether to display the document's title in the top bar.

printscaling-none - Indicates that the print dialog should reflect no page scaling.


The page-direction attribute has no direct effect on the document's contents or page numbering but can be used to determine the relative positioning of pages when displayed side by side or printed n-up (choose one).


The nonfullscreen-page-mode sets the page mode when exiting full-screen mode.

It is meaningful only if the page mode is fullscreen (choose one).