How to convert PDF pages to images in .NET Framework app? I've scoured the site, and it seems you recommend something like this:
RadPdfViewer pdfViewer = new RadPdfViewer();
pdfViewer.DocumentLoaded += (sender, e) =>
{
if (sender is RadPdfViewerElement pdfViewerElement)
{
for (int i = 1; i <= pdfViewerElement.Document.Pages.Count; i++)
{
Image pageImage = pdfViewerElement.ExportPage(i, 1, true, ImageFormat.Jpeg);
// Use pageImage
}
}
};
pdfViewer.LoadDocument(pdfPath);
pdfViewer.LoadElementTree();
Application.DoEvents();
Is this really the best way for .NET Framework apps? There is an example that uses PdfProcessing instead of PdfViewer, but requires the assembly Telerik.Documents.Fixed.FormatProviders.Image.Skia, which I don't have available in my Visual Studio with latest update of Telerik UI for WinForms 2024.3.806.462. Nor is it available on nuget, or I don't know how to find it.
Also, how in the example above to get to RadPdfViewer root object starting from pdfViewerElement object?