Free Support Forum - aspose.com

Err during grab text from PDF. Letter 's' transforms to 't'. Exmpl: 'infornasion' became 'infornation'

Hello ASPOSE,

Thank you for your component Aspose.Pdf.Kit we planned to buy it. But there is a strange problem with it. During grab text from PDF file letter 's' transforms to letter 't'. Examples:

Ptychiatric -> Psychiatric

request -> requett

Also 'm' to 'n'.

Summary -> Sunnary

Commentary ->Connentary

We are using Aspose.Pdf.Kit for .NET 1.1. Ver: 2.6.4.0

Source code:

String szTableOfContants = string.Empty;

Aspose.Pdf.Kit.PdfExtractor pdfExtractor = new Aspose.Pdf.Kit.PdfExtractor();

MemoryStream outStream = new MemoryStream();

if(File.Exists(szPathToPDF))

{

pdfExtractor.BindPdf(szPathToPDF);

pdfExtractor.ExtractText();

if(pdfExtractor.HasNextPageText())

pdfExtractor.GetNextPageText(outStream);

ASCIIEncoding encoding = new ASCIIEncoding();

szTableOfContants = encoding.GetString(

outStream.GetBuffer(),

0, outStream.GetBuffer().Length);

}

Hi,

Thank you for considering Aspose.

It is caused by evaluation version. To avoid this problem you can purchase this component or ask a temp license from the sales department.