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 |
|
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).
- singlepage - Display one page at a time.(default)
- onecolumn - Display the pages in one column.
- twocolumnleft - Display the pages in two columns, with odd numbered pages on the left.
- twocolumnright - Display the pages in two columns, with odd numbered pages on the right.
- twopageleft - Display the pages two at a time, with odd numbered pages on the left.
- twopageright - Display the pages two at a time, with odd numbered pages on the right.
The page-mode attribute sets the page mode to be used when the document is opened (choose one).
- useoc - Optional content group panel visible
- usenone - Neither document outline nor thumbnail images visible.(default)
- usethumbs - Thumbnail images visible.
- useoutlines - Document outline visible.
- useatttachments - Attachments visible.
- fullscreen - Full-screen mode, with no menu bar, window controls, or any other window visible.
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).
- L2R - Left to right
- R2L - Right to left (including vertical writing systems such as Chinese, Japanese, and Korean)
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).
- useoc - Optional content group panel visible
- usenone - Neither document outline nor thumbnail images visible
- usethumbs - Thumbnail images visible
- useoutlines - Document outline visible