Export Options
The Barcode and QR Code provide built-in support for Image, SVG, and PDF export.
You can send the export output to a remote service as a Base64-encoded string or save it on the client machine.
Similar to all Kendo UI for Angular components, the Barcode and QR Code can also be included in PDF documents created by the PDF Export component.
The Barcodes support the following options:
- Exporting to an image
- Exporting to the Scalable Vector Graphics (SVG) image format
- Exporting to the Portable Document Format (PDF)
- Exporting to a drawing visual
Exporting to Images
The following example demonstrates how to save the Barcode as a PNG image by using the BarcodeComponent.exportImage
and the QRCodeComponent.exportImage
methods.
Exporting to SVG
The following example demonstrates how to save the Barcode and QR Code as an SVG file by using the BarcodeComponent.exportSVG
and QRCodeComponent.exportSVG
methods.
Exporting to Drawing Visuals
The BarcodeComponent.exportVisual
and QRCodeComponent.exportVisual
methods return a Drawing scene which you can further process.
The following example demonstrates how to export the Barcodes as a Drawing visual scene by using the exportVisual
method.
Exporting to PDF
The following example demonstrates how to save a section containing a Barcode and a QR Code as a PDF file by using the PDF Export component.