Thomas Hoevel wrote:
"IEnumerable<string>" means you have a list of strings, so you should use e.g. a foreach loop to get all the strings.
Many thanks for your reply, Thomas Hoevel.
I've use the forearch to get all the characters and it works with some PDF files. The problem is that it works only with simple pdf files,
in most of them I get a blank string (it retrieves nothing). Of course, I've try to get the content of those files using other libraries such as XpdfViewer or the Adobe Acrobat type library and it gets the text.
I'm sure the problem is the way I convert from the PdfPage to the string, because I'm able to get pages and create a new pdf using PDFSharp (it allows me to split PDF files).
The truth is it looks really weird to me, I had the idea that getting the content of a PDF into string was something very basic for PDFSharp, but I'm starting to think I'm wrong. Have you ever try to do this using PDFSharp??
I've go to the features webpage:
http://www.pdfsharp.net/PDFsharpFeatures.ashxIt does not say that it's usefull to do what I need, it semms to me that PDFSharp purpose is creating your own PDFs, not reading others created with other format.
But, I see Migradoc's page:
http://www.pdfsharp.net/MigraDocFeatures.ashxAnd I see this:
Import data from various sources via XML files or direct interfaces (any data source that can be used with .NET)I'm not sure if MigraDoc could do this.
I'm quite desperate, can you help me
.
Regards