15.2. Creating a document
The p:document
tag supports the following attributes:
-
type
-
The type of the document to be produced. Valid values are PDF
, RTF
and HTML
modes. Seam defaults to PDF generation, and many of the features only work correctly when generating PDF documents.
-
pageSize
-
The size of the page to be generate. The most commonly used values would be LETTER
and A4
. A full list of supported pages sizes can be found in com.lowagie.text.PageSize
class. Alternatively, pageSize can provide the width and height of the page directly. The value "612 792", for example, is equizalent to the LETTER page size.
-
orientation
-
The orientation of the page. Valid values are portrait
and landscape
. In landscape mode, the height and width page size values are reversed.
-
margins
-
The left, right, top and bottom margin values.
-
marginMirroring
-
Indicates that margin settings should be reversed an alternating pages.
Document metadata is also set as attributes of the document tag. The following metadata fields are supported:
-
title
-
-
subject
-
-
keywords
-
-
author
-
-
creator
-