<kendo:diagram-pdf>

Configures the export settings for the saveAsPDF method.

Example

<kendo:diagram>
    <kendo:diagram-pdf></kendo:diagram-pdf>
</kendo:diagram>

Configuration Attributes

author java.lang.String

The author of the PDF document.

Example

<kendo:diagram-pdf author="author">
</kendo:diagram-pdf>

creator java.lang.String

The creator of the PDF document.

Example

<kendo:diagram-pdf creator="creator">
</kendo:diagram-pdf>

date java.util.Date

The date when the PDF document is created. Defaults to new Date().

Example

<kendo:diagram-pdf date="date">
</kendo:diagram-pdf>

fileName java.lang.String

Specifies the file name of the exported PDF file.

Example

<kendo:diagram-pdf fileName="fileName">
</kendo:diagram-pdf>

forceProxy boolean

If set to true, the content is forwarded to proxyURL even if the browser supports the saving of files locally.

Example

<kendo:diagram-pdf forceProxy="forceProxy">
</kendo:diagram-pdf>

keywords java.lang.String

Specifies the keywords of the exported PDF file.

Example

<kendo:diagram-pdf keywords="keywords">
</kendo:diagram-pdf>

landscape boolean

If set to true, reverses the paper dimensions if needed to verify that the width corresponds to the longer side.

Example

<kendo:diagram-pdf landscape="landscape">
</kendo:diagram-pdf>

paperSize java.lang.Object

Specifies the paper size of the PDF document. The default setting is auto and determines the paper size by content.The supported values are: A predefined size: A4, A3, and so on.; An array of two numbers specifying the width and height in points (1pt = 1/72in) or An array of two strings specifying the width and height in units. The supported units are mm, cm, in, and pt..

Example

<kendo:diagram-pdf paperSize="paperSize">
</kendo:diagram-pdf>

proxyTarget java.lang.String

A name or keyword indicating where to display the document returned from the proxy.If you want to display the document in a new window or iframe, the proxy has to set the Content-Disposition header to inline; filename="".

Example

<kendo:diagram-pdf proxyTarget="proxyTarget">
</kendo:diagram-pdf>

proxyURL java.lang.String

The URL of the server side proxy which will stream the file to the end user.When the browser is not capable of saving files locally, a proxy will be used. Such browsers are Internet Explorer version 9 (and older) and Safari. You are responsible for implementing the server-side proxy. The proxy receives a POST request with the following parameters in the request body: contentType - The MIME type of the file; base64 - The base-64 encoded file content or fileName - The file name, as requested by the caller.. The proxy is expected to return the decoded file with a set Content-Disposition header.

Example

<kendo:diagram-pdf proxyURL="proxyURL">
</kendo:diagram-pdf>

subject java.lang.String

Sets the subject of the PDF file.

Example

<kendo:diagram-pdf subject="subject">
</kendo:diagram-pdf>

title java.lang.String

Sets the title of the PDF file.

Example

<kendo:diagram-pdf title="title">
</kendo:diagram-pdf>

Configuration JSP Tags

kendo:diagram-pdf-margin

Specifies the margins of the page (numbers or strings with units). The supported units are mm, cm, in, and pt (default).

More documentation is available at kendo:diagram-pdf-margin.

Example

<kendo:diagram-pdf>
    <kendo:diagram-pdf-margin></kendo:diagram-pdf-margin>
</kendo:diagram-pdf>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy