Element - document

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. A4.

B0 to B5

 

letter

 

value

width, height

margin

value

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

orientation

portrait

Default.

landscape

 

background

color

 

border

boolean

Default. false.

grid

boolean

Default. false.

author

string

 

title

string

 

subject

string

 

keywords

string

 

creator

string

LANSA Integrator Document Service

hide-toolbar

boolean

Default. false.

hide-menubar

boolean

Default. false.

hide-windowui

boolean

Default. false.

allow-printing

boolean

Default. true.

allow-copy

boolean

Default. true.

allow-modify-contents

boolean

Default. true.

allow-modify-annotations

boolean

Default. true.

allow-fillin

boolean

Default. true.

allow-screenreader

boolean

Default. true.

allow-assembly

boolean

Default. true.

allow-degraded-printing

boolean

Default. true.

compression

boolean

Default. false.

page-layout

onecolumn

 

singlepage

Default.

twopageleft

 

twopageright

 

twocolumnleft

 

twocolumnright

 

fitwindow

boolean

Default. false.

centerwindow

boolean

Default. false.

display-doctitle

boolean

Default. false.

printscaling-none

boolean

Default. 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).