Defines the fluent API for configuring EditorPdfSettings
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class EditorPdfSettingsBuilder : PdfSettingsBuilder<EditorPdfSettingsBuilder>
Inheritance: objectPdfSettingsBuilder<EditorPdfSettingsBuilder>EditorPdfSettingsBuilder
Inherited Members
Constructors
EditorPdfSettingsBuilder method.
public EditorPdfSettingsBuilder(EditorPdfSettings container)
Properties
Gets the settings being configured.
protected EditorPdfSettings Container { get; }
Methods
The author of the PDF document.
public EditorPdfSettingsBuilder Author(string value)
The value for Author
Returns:Returns the current EditorPdfSettingsBuilder instance.
Specifies if the Print dialog should be opened immediately after loading the document.
public EditorPdfSettingsBuilder AutoPrint()
Returns the current EditorPdfSettingsBuilder instance.
Specifies if the Print dialog should be opened immediately after loading the document.
public EditorPdfSettingsBuilder AutoPrint(bool value)
The value for AutoPrint
Returns:Returns the current EditorPdfSettingsBuilder instance.
A flag indicating whether to produce actual hyperlinks in the exported PDF file.It's also possible to pass a CSS selector as argument. All matching links will be ignored.
public EditorPdfSettingsBuilder AvoidLinks()
Returns the current EditorPdfSettingsBuilder instance.
A flag indicating whether to produce actual hyperlinks in the exported PDF file.It's also possible to pass a CSS selector as argument. All matching links will be ignored.
public EditorPdfSettingsBuilder AvoidLinks(bool value)
The value for AvoidLinks
Returns:Returns the current EditorPdfSettingsBuilder instance.
The creator of the PDF document.
public EditorPdfSettingsBuilder Creator(string value)
The value for Creator
Returns:Returns the current EditorPdfSettingsBuilder instance.
The date when the PDF document is created. Defaults to new Date().
public EditorPdfSettingsBuilder Date(DateTime value)
The value for Date
Returns:Returns the current EditorPdfSettingsBuilder instance.
Specifies the file name of the exported PDF file.
public EditorPdfSettingsBuilder FileName(string value)
The value for FileName
Returns:Returns the current EditorPdfSettingsBuilder instance.
If set to true, the content will be forwarded to proxyURL even if the browser supports saving files locally.
public EditorPdfSettingsBuilder ForceProxy()
Returns the current EditorPdfSettingsBuilder instance.
If set to true, the content will be forwarded to proxyURL even if the browser supports saving files locally.
public EditorPdfSettingsBuilder ForceProxy(bool value)
The value for ForceProxy
Returns:Returns the current EditorPdfSettingsBuilder instance.
Specifies the quality of the images within the exported file, from 0 to 1.
public EditorPdfSettingsBuilder JpegQuality(double value)
The value for JpegQuality
Returns:Returns the current EditorPdfSettingsBuilder instance.
If set to true all PNG images contained in the exported file will be kept in PNG format.
public EditorPdfSettingsBuilder KeepPNG()
Returns the current EditorPdfSettingsBuilder instance.
If set to true all PNG images contained in the exported file will be kept in PNG format.
public EditorPdfSettingsBuilder KeepPNG(bool value)
The value for KeepPNG
Returns:Returns the current EditorPdfSettingsBuilder instance.
Specifies the keywords of the exported PDF file.
public EditorPdfSettingsBuilder Keywords(string value)
The value for Keywords
Returns:Returns the current EditorPdfSettingsBuilder instance.
Set to true to reverse the paper dimensions if needed such that width is the larger edge.
public EditorPdfSettingsBuilder Landscape()
Returns the current EditorPdfSettingsBuilder instance.
Set to true to reverse the paper dimensions if needed such that width is the larger edge.
public EditorPdfSettingsBuilder Landscape(bool value)
The value for Landscape
Returns:Returns the current EditorPdfSettingsBuilder instance.
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 should set the "Content-Disposition" header to inline; filename="<fileName.pdf>".
public EditorPdfSettingsBuilder ProxyTarget(string value)
The value for ProxyTarget
Returns:Returns the current EditorPdfSettingsBuilder instance.
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, for example, Internet Explorer 9 and Safari.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 or fileName: The file name, as requested by the caller.. The proxy should return the decoded file with the "Content-Disposition" header set to attachment; filename="<fileName.pdf>".
public EditorPdfSettingsBuilder ProxyURL(string value)
The value for ProxyURL
Returns:Returns the current EditorPdfSettingsBuilder instance.
Sets the subject of the PDF file.
public EditorPdfSettingsBuilder Subject(string value)
The value for Subject
Returns:Returns the current EditorPdfSettingsBuilder instance.
Sets the title of the PDF file.
public EditorPdfSettingsBuilder Title(string value)
The value for Title
Returns:Returns the current EditorPdfSettingsBuilder instance.