when I want to extract Text of a PDF-document using which has the PDFA/1 Standard there is an System.NullReferenceException.
I use the following code:
- Code: Select all
if (document.Pages.Count > 0)
{
PdfPageBase page = document.Pages[0];
string text = page.ExtractText();
//int length = page.ExtractText().Length;
if (text == null)
{
return 0;
}
else
{
return text.Length;
}
Do you have any idea?
Thank you.
Kind Regards,
Jan Brandenburger
Can you please remove the attached file after read this post?