public static string SimpleReader(string filePath) { PdfDocument pdf = PdfReader.Open(filePath); StringBuilder sb = new StringBuilder(); foreach (var page in pdf.Pages) { PdfString s = new PdfString(page.Contents.ToString(), PdfStringEncoding.PDFDocEncoding); sb.Append(s.ToStringFromPdfDocEncoded()); } return(sb.ToString()); }