PivotGridV2PdfSettingsBuilder

Methods

Author(System.String)

Defines the author of the exported PDF document.

Parameters

value - System.String

The value that configures the author.

Example

Razor
 
            @(Html.Kendo().PivotGridV2()
                .Name("pivotgrid")
                .Pdf(pdf => pdf.Author("User1"))
            )
             

AutoPrint(System.Boolean)

Specifies if the Print dialog must be opened immediately after loading the document.

Parameters

value - System.Boolean

The value that configures the AutoPrint option.

Example

Razor
 
            @(Html.Kendo().PivotGridV2()
                .Name("pivotgrid")
                .Pdf(pdf => pdf.AutoPrint(true))
            )
             

AvoidLinks(System.Boolean)

Indicates whether to produce actual hyperlinks in the exported PDF file.

Parameters

value - System.Boolean

The value that configures the AvoidLinks option.

Example

Razor
 
            @(Html.Kendo().PivotGridV2()
                .Name("pivotgrid")
                .Pdf(pdf => pdf.AvoidLinks(true))
            )
             

Creator(System.String)

Defines the creator of the exported PDF document.

Parameters

value - System.String

The value that configures the creator.

Example

Razor
 
            @(Html.Kendo().PivotGridV2()
                .Name("pivotgrid")
                .Pdf(pdf => pdf.Creator("User1"))
            )
             

Date(System.DateTime)

Defines the date when the PDF document is created.

Parameters

value - System.DateTime

The value that configures the date of creation.

Example

Razor
 
            @(Html.Kendo().PivotGridV2()
                .Name("pivotgrid")
                .Pdf(pdf => pdf.Date(DateTime.Now))
            )
             

FileName(System.String)

Specifies the file name of the exported PDF file.

Parameters

value - System.String

The value that configures the file name.

Example

Razor
 
            @(Html.Kendo().PivotGridV2()
                .Name("pivotgrid")
                .Pdf(pdf => pdf.FileName("Exported_PivotGridV2"))
            )
             

ForceProxy(System.Boolean)

If set to "true", the content will be forwarded to the specified ProxyURL even if the browser supports saving files locally.

Parameters

value - System.Boolean

The value that enables or disabled the ForceProxy option.

Example

Razor
 
            @(Html.Kendo().PivotGridV2()
                .Name("pivotgrid")
                .Pdf(pdf => pdf.ForceProxy(true).ProxyURL(Url.Action("ExportSave", "Home")))
            )
             

JpegQuality(System.Double)

Specifies the quality of the images within the exported file (from 0 to 1).

Parameters

value - System.Double

The value that configures the JpegQuality option.

Example

Razor
 
            @(Html.Kendo().PivotGridV2()
                .Name("pivotgrid")
                .Pdf(pdf => pdf.JpegQuality(1))
            )
             

KeepPNG(System.Boolean)

If set to "true", all PNG images contained in the exported file will be kept in PNG format.

Parameters

value - System.Boolean

The value that configures the KeepPNG option.

Example

Razor
 
            @(Html.Kendo().PivotGridV2()
                .Name("pivotgrid")
                .Pdf(pdf => pdf.KeepPNG(true))
            )
             

Keywords(System.String)

Specifies the keywords of the exported PDF file.

Parameters

value - System.String

The value that configures the keywords.

Example

Razor
 
            @(Html.Kendo().PivotGridV2()
                .Name("pivotgrid")
                .Pdf(pdf => pdf.Keywords("northwind products"))
            )
             

Landscape(System.Boolean)

If set to "true", the paper dimensions are reversed (the width is the larger edge).

Parameters

value - System.Boolean

The value that configures the Landscape option.

Example

Razor
 
            @(Html.Kendo().PivotGridV2()
                .Name("pivotgrid")
                .Pdf(pdf => pdf.Landscape(true))
            )
             

Margin(System.Action)

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

Parameters

configurator - System.Action<PivotGridV2PdfMarginSettingsBuilder>

The action that configures the margins.

Example

Razor
 
            @(Html.Kendo().PivotGridV2()
                .Name("pivotgrid")
                .Pdf(pdf => pdf.Margin(m => m.Top(2).Left(2).Right(2).Bottom(2)))
            )
             

PaperSize(System.String)

Specifies the paper size of the PDF document. The default value is "auto" meaning the paper size is determined by the content. The supported values are "A4", "A3", and more. The supported units are "mm", "cm", "in", and "pt".

Parameters

value - System.String

The value that configures the PaperSize option.

Example

Razor
 
            @(Html.Kendo().PivotGridV2()
                .Name("pivotgrid")
                .Pdf(pdf => pdf.PaperSize("A4"))
            )
             

ProxyURL(System.String)

The URL of the server side proxy that will stream the file to the end user. The developer is responsible for implementing the server-side proxy. The proxy will receive 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. - fileName: The file name, as requested by the caller. The proxy must return the decoded file with the "Content-Disposition" header set to 'attachment; filename="<fileName.xslx>"'.

Parameters

value - System.String

The value that configures the proxy URL.

Example

Razor
 
            @(Html.Kendo().PivotGridV2()
                .Name("pivotgrid")
                .Pdf(pdf => pdf.ProxyURL(Url.Action("ExportSave", "Home")))
            )
             

ProxyTarget(System.String)

Defines a name or keyword indicating where to display the document returned from the proxy. The default value is "_self".

Parameters

value - System.String

The value that configures the ProxyTarget option.

Example

Razor
 
            @(Html.Kendo().PivotGridV2()
                .Name("pivotgrid")
                .Pdf(pdf => pdf.ProxyTarget("_target"))
            )
             

Subject(System.String)

Sets the subject of the exported PDF file.

Parameters

value - System.String

The value that configures the subject.

Example

Razor
 
            @(Html.Kendo().PivotGridV2()
                .Name("pivotgrid")
                .Pdf(pdf => pdf.Subject("Products"))
            )
             

Title(System.String)

Sets the title of the exported PDF file.

Parameters

value - System.String

The value that configures the title.

Example

Razor
 
            @(Html.Kendo().PivotGridV2()
                .Name("pivotgrid")
                .Pdf(pdf => pdf.Title("Internet Sales Amount"))
            )