We are evaluating your tools to see if they will fit our needs. One of our requirements is that we need to be able to get an image of each page of a PDF so that we can further process it in our application. I noticed on another thread that there is a ThumbnailFactory that can be used to create an ImageSource from a RadFixedPage. I tried to use the PdfDocumentSource like so:
...but docSource.Document is always null.
How can I get an image of each page in the PDF file?
Thanks,
Clayton
ThumbnailFactory tf =
new
ThumbnailFactory();
PdfDocumentSource docSource =
new
PdfDocumentSource(
new
MemoryStream(myPdfByteArray), FormatProviderSettings.ReadAllAtOnce);
foreach
(RadFixedPage pdfPage
in
docSource.Document.Pages)
{
ImageSource pageImg = tf.CreateThumbnail(pdfPage,
new
System.Windows.Size(myWidth, myHeight));
// Do additional work here
}
...but docSource.Document is always null.
How can I get an image of each page in the PDF file?
Thanks,
Clayton