New to Telerik UI for ASP.NET MVC? Download free 30-day trial

PivotGridV2PdfSettingsBuilder

Methods

Author(System.String)

Defines the author of the exported PDF document.

Parameters

value - System.String

The value that configures the author.

Example


            @(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


            @(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


            @(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


            @(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


            @(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


            @(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


            @(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


            @(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


            @(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


            @(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


            @(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


            @(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


            @(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


            @(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


            @(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


            @(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


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

In this article
Not finding the help you need?