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

Definition

Constructors

C#
public PDFSettings()

Properties

Specifies if all pages must be exported.

C#
public bool? AllPages { get; set; }

Sets the author of the PDF document.

C#
public string Author { get; set; }

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

C#
public bool? AutoPrint { get; set; }

Indicates whether to produce actual hyperlinks in the exported PDF file. If a CSS selector is passed as an argument, all matching links will be ignored.

C#
public object AvoidLinks { get; set; }

Sets the creator of the PDF document.

C#
public string Creator { get; set; }

Sets the date when the PDF document is created.

C#
public DateTime? Date { get; set; }

Specifies the file name of the exported PDF file.

C#
public string FileName { get; set; }

Defines a CSS selector and forces the page to break before each element that matches the CSS selector.

C#
public string ForcePageBreak { get; set; }

If set to "true", the content will be forwarded to the defined proxy URL even if the browser supports saving files locally.

C#
public bool ForceProxy { get; set; }

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

C#
public double? JpegQuality { get; set; }

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

C#
public bool? KeepPNG { get; set; }

Specifies the keywords of the exported PDF file.

C#
public string Keywords { get; set; }

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

C#
public bool Landscape { get; set; }

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

C#
public IDictionary<string, object> Margin { get; set; }

Specifies the paper size of the PDF document. The default value is "auto" meaning the paper size is determined by the content.

C#
public object PaperSize { get; set; }

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

C#
public string ProxyTarget { get; set; }

Specifies the URL of the server-side proxy, which will stream the file to the end user. A proxy will be used when the browser is not capable of saving files locally.

C#
public string ProxyURL { get; set; }

If set to "true", the Grid headers will be repeated on each page.

C#
public bool? RepeatHeaders { get; set; }

Defines the scale factor to get a better output for print.

C#
public double? Scale { get; set; }

Sets the subject of the PDF file.

C#
public string Subject { get; set; }

Defines HTML that must be included in each page. It can be used to display headers and footers. The available template variables are "pageNum" and "totalPages".

C#
public string Template { get; set; }

Defines the JavaScript function that returns the page template.

C#
public string TemplateHandler { get; set; }

Defines the id of the Kendo UI external template that contains the page template.

C#
public string TemplateId { get; set; }

Sets the title of the PDF file.

C#
public string Title { get; set; }

Methods

C#
protected override void Serialize(IDictionary<string, object> json)
Parameters:jsonIDictionary<string, object>

Overrides: JsonObject.Serialize(IDictionary<string, object>)