PDFExportComponent
Represents the Kendo UI PDF Export component for Angular.
<button kendoButton (click)="pdf.saveAs('document.pdf')">
Save As PDF...
</button>
<kendo-pdf-export #pdf paperSize="A4" margin="2cm">
Content goes here
</kendo-pdf-export>
Selector
kendo-pdf-export
Inputs
Name | Type | Default | Description |
---|---|---|---|
author |
|
Sets the author metadata for the PDF document. | |
autoPrint? |
|
|
If |
avoidLinks |
|
Specifies whether actual hyperlinks will be produced in the exported PDF file (see example). You can also set a CSS selector to ignore matching links. | |
creator |
|
|
Sets the creator metadata for the PDF document. |
date |
|
|
Sets the creation date for the PDF document. Defaults to |
fileName |
|
|
Sets the name of the exported PDF file. |
forcePageBreak |
|
Sets a CSS selector for elements that cause page breaks (see example). | |
forceProxy |
|
If | |
imageResolution |
|
Sets the image resolution in the exported PDF (see example). By default, images use full resolution. | |
keepTogether |
|
Sets a CSS selector for elements that should not split across pages (see example). | |
keywords |
|
Sets the keywords metadata for the PDF document. | |
landscape |
|
|
If |
margin |
|
Sets the page margins. Numbers use points ( | |
paperSize |
|
|
Sets the paper size for the PDF document. Defaults to If set, the content splits across pages, and allows you to use The value can be a |
producer |
|
Sets the producer metadata for the PDF document. | |
proxyData? |
|
Sets a key/value dictionary of form values sent to the proxy. Use this to send extra data, like Anti-Forgery tokens. | |
proxyTarget |
|
|
Sets where to display the document returned from the proxy. Use |
proxyURL |
|
Sets the server-side proxy URL for streaming the file to the user. You need to implement a proxy if
the browser is not capable of saving files locally.
The proxy returns the decoded file with the In the request body, the proxy receives a POST request with the specific parameters (see example). | |
repeatHeaders |
|
If | |
scale |
|
|
Sets a scale factor for the PDF output. Use this to make the PDF content smaller or larger (see example). |
subject |
|
Sets the subject metadata for the PDF document. | |
title |
|
Sets the title metadata for the PDF document. |
Methods
export | ||||
---|---|---|---|---|
Exports the content as a | ||||
|
saveAs | ||||||
---|---|---|---|---|---|---|
Saves the content as a PDF file with the specified name. | ||||||
|