You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: knowledge-base/add-charts-to-pdf-radpdfprocessing.md
+14-5Lines changed: 14 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,17 +21,26 @@ This article shows how to programmatically generate a Chart and embed it into a
21
21
22
22
## Solution
23
23
24
+
RadPdfProcessing doesn't provide functionality for generating chart elements inside the PDF document. However, the chart can be generated by the appropriate UI control and export it as an image which can be later inserted in the document.
25
+
24
26
To embed a chart into a PDF document using RadPdfProcessing, follow these steps:
25
27
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.
28
+
1\.**Export the Chart as an Image**: First, generate the chart you want to include in your PDF with the appropriate UI control offered by the Telerik family and convert it an image format.
29
+
30
+
- For **.NET Standard** scenario, it is suitable to use the Telerik UI for Blazor Chart, and 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.
31
+
32
+
- For **.NET Framework** scenario, it is suitable to use the Telerik UI for WinForms ChartView, and utilize its [Export to image]({%slug winforms/chartview-/features/export%}) functionality.
27
33
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%}).
34
+
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:
35
+
36
+
- Using `FixedContentEditor` as detailed in [How to Generate a PDF Document from Images with FixedContentEditor]({%slug pdf-from-images-with-fixedcontenteditor%}).
37
+
38
+
- Utilizing `RadFixedDocumentEditor` as outlined in [How to Generate a PDF Document from Images with RadFixedDocumentEditor]({%slug pdf-from-images-with-radfixeddocumenteditor%}).
31
39
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.
40
+
Choose the approach that best suits your needs. Both methods will allow you to insert and scale the image (chart) as needed within your PDF document.
33
41
34
42
## See Also
35
43
36
44
-[Exporting Telerik UI for Blazor Chart as Image](https://www.telerik.com/blazor-ui/documentation/knowledge-base/chart-export-to-image)
37
45
-[Telerik UI for Blazor Chart Documentation](https://docs.telerik.com/blazor-ui/components/chart/overview)
46
+
-[How to Draw a Chart with FixedContentEditor in PdfProcessing]({%slug draw-chart-with-fixedcontenteditor%})
0 commit comments