Hello,
thanks for this excellent library, I use it almost every day.
Now, I'm having problems retrieving raw text from an existing
PDF File.
I use the following code, and the string are then parsed to find some info.
Code:
PdfDocument pddDoc = PdfReader.Open(strPath_, PdfDocumentOpenMode.ReadOnly);
foreach (PdfPage ppgPage in pddDoc.Pages)
{
strReturn += Page.Contents.CreateSingleContent().Stream.ToString();
}
All is ok with PDF files generated by MS Reporting Services,
but with some PDF files generated with MigraDoc, I retrieve no text,
just codes as these ones :
Code:
15 0 Td <005000440076005700550048> Tj
36.979 0 Td <003C005900480056> Tj
27.662 0 Td <002700480045004800570048005100460052005800550057> Tj
It looks like dictionnary keys, but how can I extract the text content from it ?
Regards,
Antesima