I have a license for Spire.PDF and have recently upgraded the version to 10.4.2, now I'm receiving the following message when using the text extraction:
Evaluation Warning : The document was created with Spire.PDF for .NET.
The product is licensed using the newer interface as follows:
- Code: Select all
var stream = ResourceLoader.LoadResourceStream("Pdf.license.elic.xml");
Spire.Pdf.License.LicenseProvider.SetLicense(stream);
Spire.Pdf.License.LicenseProvider.LoadLicense();
and I've also had to change to the newer interface for extracting text as follows:
- Code: Select all
var searchOptions = new PdfTextExtractOptions
{
IsExtractAllText = true,
IsSimpleExtraction = false,
};
var extractor = new PdfTextExtractor(page);
var text = extractor.ExtractText(searchOptions);
any idea what is wrong?