Can someone help me solve the following problem? ... I have several PDF files to which I need to extract the text, I'm using GdPicturePDF.GetPageText () but I could not get the full text of the document, only some areas.
This is the code and attached PDF file.
Regards
Code: Select all
private string GetTextPdfFile(){
GdPicturePDF oGdPicturePDF = new GdPicturePDF();
string filePDF = @"C:\Temp\Endoso Niv-Pol 000000001 CIRUGIA DE NARIZ Y_O SENOS PARANASALES.pdf";
string pageText = '';
if (oGdPicturePDF.LoadFromFile(filePDF, false) == GdPictureStatus.OK)
{
oGdPicturePDF.SelectPage(1);
pageText = oGdPicturePDF.GetPageText();
}
oGdPicturePDF.CloseDocument();
return pageText;
}