PDFSettings
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Syntax:
public class PDFSettings : JsonObject
Inheritance: objectJsonObjectPDFSettings
Inherited Members
Constructors
public PDFSettings()
Properties
Specifies if the Print dialog must be opened immediately after loading the document.
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.
public object AvoidLinks { get; set; }
Specifies the file name of the exported PDF file.
public string FileName { get; set; }
Defines a CSS selector and forces the page to break before each element that matches the CSS selector.
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.
public bool ForceProxy { get; set; }
Specifies the quality of the images within the exported file (from 0 to 1).
public double? JpegQuality { get; set; }
If set to "true", all PNG images contained in the exported file will be kept in PNG format.
public bool? KeepPNG { get; set; }
Specifies the keywords of the exported PDF file.
public string Keywords { get; set; }
If set to "true", the paper dimensions are reversed (the width is the larger edge).
public bool Landscape { get; set; }
Specifies the margins of the page. The supported units are "mm", "cm", "in" and "pt" (default).
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.
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".
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.
public string ProxyURL { get; set; }
If set to "true", the Grid headers will be repeated on each page.
public bool? RepeatHeaders { get; set; }
Defines the scale factor to get a better output for print.
public double? Scale { 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".
public string Template { get; set; }
Defines the JavaScript function that returns the page template.
public string TemplateHandler { get; set; }
Defines the id of the Kendo UI external template that contains the page template.
public string TemplateId { get; set; }
Methods
protected override void Serialize(IDictionary<string, object> json)
Overrides: