I have a pdf file that i have created using a report from another system
When I extract the images from the report it does not find the first one in this attached file which is a QR Code
Any reason why ?
The PDF shows two images. ,the first one is not found by the library ??
If the pdf has only the first item then a null exception is returned ( no images )
using the code sample
- Code: Select all
//Create a pdf document.
PdfDocument doc = new PdfDocument();
//doc.LoadFromFile(@"..\..\..\..\..\..\Data\Sample2.pdf");
doc.LoadFromFile(@"d:\Report50001.pdf");
StringBuilder buffer = new StringBuilder();
IList<Image> images = new List<Image>();
foreach (PdfPageBase page in doc.Pages)
{
buffer.Append(page.ExtractText());
foreach (Image image in page.ExtractImages())
{
images.Add(image);
}
}
Thanks