Dear Sirs,
The related code extracts the text from PDF file. Observe in the attached file, that the return results in an incorrect character. If you copy and paste the same information in the PDF file, the result is ok.
using (Spire.Pdf.PdfDocument pdf = new Spire.Pdf.PdfDocument())
//Load the PDF file
{
pdf.LoadFromFile(p_PDF);
PdfPageBase page = pdf.Pages[0];// newPdf.Pages[0]; //pdf.Pages[0];
// Extract text from a specific rectangular area within the page
string text = page.ExtractText();
text = Regex.Replace(text, "[\r\n\t]", "");
text = text.Trim().Replace("\r\n", string.Empty);
vPDFExtracALL.Add(p_PDF, text);
return text;
}