\Kendo\Dataviz\UI\DiagramPdf

A PHP class representing the pdf setting of Diagram.

Methods

author

The author of the PDF document.

Returns

\Kendo\Dataviz\UI\DiagramPdf

Parameters

$value string

Example

<?php
$pdf = new \Kendo\Dataviz\UI\DiagramPdf();
$pdf->author('value');
?>

creator

The creator of the PDF document.

Returns

\Kendo\Dataviz\UI\DiagramPdf

Parameters

$value string

Example

<?php
$pdf = new \Kendo\Dataviz\UI\DiagramPdf();
$pdf->creator('value');
?>

date

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

Returns

\Kendo\Dataviz\UI\DiagramPdf

Parameters

$value date

Example

<?php
$pdf = new \Kendo\Dataviz\UI\DiagramPdf();
$pdf->date(new date());
?>

fileName

Specifies the file name of the exported PDF file.

Returns

\Kendo\Dataviz\UI\DiagramPdf

Parameters

$value string

Example

<?php
$pdf = new \Kendo\Dataviz\UI\DiagramPdf();
$pdf->fileName('value');
?>

forceProxy

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

Returns

\Kendo\Dataviz\UI\DiagramPdf

Parameters

$value boolean

Example

<?php
$pdf = new \Kendo\Dataviz\UI\DiagramPdf();
$pdf->forceProxy(true);
?>

keywords

Specifies the keywords of the exported PDF file.

Returns

\Kendo\Dataviz\UI\DiagramPdf

Parameters

$value string

Example

<?php
$pdf = new \Kendo\Dataviz\UI\DiagramPdf();
$pdf->keywords('value');
?>

landscape

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

Returns

\Kendo\Dataviz\UI\DiagramPdf

Parameters

$value boolean

Example

<?php
$pdf = new \Kendo\Dataviz\UI\DiagramPdf();
$pdf->landscape(true);
?>

margin

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

Returns

\Kendo\Dataviz\UI\DiagramPdf

Parameters

$value \Kendo\Dataviz\UI\DiagramPdfMargin |array

Example - using \Kendo\Dataviz\UI\DiagramPdfMargin

<?php
$pdf = new \Kendo\Dataviz\UI\DiagramPdf();
$margin = new \Kendo\Dataviz\UI\DiagramPdfMargin();
$bottom = 1;
$margin->bottom($bottom);
$pdf->margin($margin);
?>

Example - using array

<?php
$pdf = new \Kendo\Dataviz\UI\DiagramPdf();
$bottom = 1;
$pdf->margin(array('bottom' => $bottom));
?>

paperSize

Specifies the paper size of the PDF document. The default setting is auto and determines the paper size by content.The supported values are:

Returns

\Kendo\Dataviz\UI\DiagramPdf

Parameters

$value string |array

Example - using string

<?php
$pdf = new \Kendo\Dataviz\UI\DiagramPdf();
$pdf->paperSize('value');
?>

Example - using array

<?php
$pdf = new \Kendo\Dataviz\UI\DiagramPdf();
$pdf->paperSize(array());
?>

proxyTarget

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="".

Returns

\Kendo\Dataviz\UI\DiagramPdf

Parameters

$value string

Example

<?php
$pdf = new \Kendo\Dataviz\UI\DiagramPdf();
$pdf->proxyTarget('value');
?>

proxyURL

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:The proxy is expected to return the decoded file with a set Content-Disposition header.

Returns

\Kendo\Dataviz\UI\DiagramPdf

Parameters

$value string

Example

<?php
$pdf = new \Kendo\Dataviz\UI\DiagramPdf();
$pdf->proxyURL('value');
?>

subject

Sets the subject of the PDF file.

Returns

\Kendo\Dataviz\UI\DiagramPdf

Parameters

$value string

Example

<?php
$pdf = new \Kendo\Dataviz\UI\DiagramPdf();
$pdf->subject('value');
?>

title

Sets the title of the PDF file.

Returns

\Kendo\Dataviz\UI\DiagramPdf

Parameters

$value string

Example

<?php
$pdf = new \Kendo\Dataviz\UI\DiagramPdf();
$pdf->title('value');
?>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve the information

close
Dummy