New to Kendo UI for jQuery? Start a free 30-day trial
PDF Options
The Drawing library provides options for specifying the basic parameters of the generated PDF file.
paperSize
—This option can be either a paper name, such as A4, an array of two numbers, such as paper width and height, or"auto"
. By default, it is"auto"
, which means the paper size will be just enough to fit the drawing. If numbers are specified, they are assumed to be in a typographic points unit. A point is 1/72 of an inch. Strings of the form297mm
" can also be used. The supported units aremm
,cm
,in
andpt
. The available paper sizes are:A0-A10
,B0-B10
,C0-C10
,Executive
,Folio
,Legal
,Letter
,Tabloid
.margin
—This option indicates the paper margins. It must be an object containingtop
,left
,right
, andbottom
numbers which specify the paper margins. Again, if numbers are passed, they are assumed to be in points. By using strings you can specify units. WhenpaperSize
is"auto"
, the dimensions are adjusted to include the margin.landscape
(Boolean, defaultfalse
)—Iftrue
is specified, the paper dimensions will be rotated if needed, so that the width is the larger edge.title
,author
,subject
,keywords
,creator
—These are the optional strings to be included in the PDF information dictionary.date
—ThisDate
object is optional and specifies the creation date of the document. The default value is the current date/time (new Date()
).multiPage
(Boolean, defaultfalse
)—Passtrue
to enable support for multiple page output, which is explained in the next section.