Skip to content

Commit 64dfc58

Browse files
author
KB Bot
committed
Added new kb article add-charts-to-pdf-radpdfprocessing
1 parent 59ebfa2 commit 64dfc58

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
title: Adding Charts to a PDF Document in RadPdfProcessing
3+
description: Learn how to insert charts into a PDF document using RadPdfProcessing.
4+
type: how-to
5+
page_title: How to Include Charts in PDF Files with RadPdfProcessing
6+
slug: add-charts-to-pdf-radpdfprocessing
7+
tags: pdfprocessing, document, processing, chart, pdf, image, export
8+
res_type: kb
9+
ticketid: 1679135
10+
---
11+
12+
## Environment
13+
14+
| Version | Product | Author |
15+
| ---- | ---- | ---- |
16+
| 2025.1.205 (2025 Q1)| RadPdfProcessing |[Desislava Yordanova](https://www.telerik.com/blogs/author/desislava-yordanova)|
17+
18+
## Description
19+
20+
This article shows how to programmatically generate a Chart and embed it into a PDF file using [RadPdfProcessing]({%slug radpdfprocessing-overview%}).
21+
22+
## Solution
23+
24+
To embed a chart into a PDF document using RadPdfProcessing, follow these steps:
25+
26+
1. **Export the Chart as an Image**: First, generate the chart you want to include in your PDF and convert it an image format. For Telerik UI for Blazor Chart, you can utilize the [Export Chart as Image](https://www.telerik.com/blazor-ui/documentation/knowledge-base/chart-export-to-image) feature. Refer to [forum post](https://www.telerik.com/forums/export-chart-as-image-47277c4c2e77) for detailed instructions.
27+
28+
2. **Insert the Image into the PDF**: After obtaining the image of your chart, use RadPdfProcessing to insert this image into your PDF document. RadPdfProcessing offers two approaches for working with images in PDFs:
29+
- Using `FixedContentEditor` as detailed in [How to Generate a PDF Document from Images with FixedContentEditor]({%slug pdf-from-images-with-fixedcontenteditor%}).
30+
- Utilizing `RadFixedDocumentEditor` as outlined in [How to Generate a PDF Document from Images with RadFixedDocumentEditor]({%slug pdf-from-images-with-radfixeddocumenteditor%}).
31+
32+
Choose the approach that best suits your needs. Both methods will allow you to position and scale the image (chart) as needed within your PDF document.
33+
34+
## See Also
35+
36+
- [Exporting Telerik UI for Blazor Chart as Image](https://www.telerik.com/blazor-ui/documentation/knowledge-base/chart-export-to-image)
37+
- [Telerik UI for Blazor Chart Documentation](https://docs.telerik.com/blazor-ui/components/chart/overview)

0 commit comments

Comments
 (0)