Hi
I use this code to convert pdf to List<image> but the resolution is not so high and the QR code inside the page is not detachable
Is there some way to improve the resolution (more DPI)?
public
static
List<ImageSource> ConvertPdfToImage(
string
filePath)
{
List<ImageSource> result =
new
List<ImageSource>();
ThumbnailFactory tf =
new
ThumbnailFactory();
using
(Stream stream = File.Open(filePath, FileMode.Open))
{
PdfFormatProvider formatProvider =
new
PdfFormatProvider(stream, FormatProviderSettings.ReadAllAtOnce);
RadFixedDocument document = formatProvider.Import();
foreach
(RadFixedPage page
in
document.Pages)
{
ImageSource pageImg = tf.CreateThumbnail(page, page.Size);
result.Add(pageImg);
}
}
return
result;
}
Thank you