I have a .net core 3.1 service application.
My company has bought the DevCraft subscription so I believe this gives me access to the Telerik document Process module.
Which nuget packages do I need to install to be able to load and print a PDF document?
I have found a few posts suggesting 'RadPdfViewer' is the class I need to get access to, but I cannot find a nuget package that allows this to be used in my project.
I found this post:- https://feedback.telerik.com/document-processing/1356074-documentprocessing-printing
But it doesnt compile and I cannot seem to be able to use this code snippet:-
RadPdfViewer pdfViewer = new RadPdfViewer();
PdfFormatProvider provider;
using (MemoryStream memoryStream = new MemoryStream())
{
using (Stream stream = File.OpenRead(fileLocation))
{
stream.CopyTo(memoryStream);
}
provider = new PdfFormatProvider(memoryStream, FormatProviderSettings.ReadOnDemand);
pdfViewer.Document = provider.Import();
string fileName = new FileInfo(fileLocation).Name;
PrintSettings printSettings = new PrintSettings() { DocumentName = fileName };
pdfViewer.Print(dialog, printSettings);
}
Would love some assistance on this please, thank you.