Another feature request (unless it already exists and I'm just not aware of this). The libraries do a great job at reading in existing PDF documents. When importing a page, I imagine that it's reading in all of the objects. Is it possible for an application to read all of the strings a document contains? For example, let's say that I have a text document that was exported to a PDF from Word. I'd like to be able to pull in that PDF file and read the original text. Formatting is unimportant to me -- whatever order the strings appear in is fine. I know that iTextSharp can read in strings, but that library is a little bulky and I imagine that DynamicPDF has this capability if it's not currently being publicly exposed. Is this at all possible?
PDF Strings
Re: PDF Strings
Support · Aug 30, 2006Hello,
Currently it is not possible to read any contents like strings from an existing PDF document.
We have added this feature on our wish list. This is something we may add to a future version but nothing is currently planned on when it will be added.
Thanks,
ceTe Software Support Team
Re: PDF Strings
Forum member · Aug 30, 2006I was playing around with the DocumentWriter last night and it almost looked like I'd be able to inherit it (and then call the Draw method on an ImportedPageContents to my custom DocumentWriter that captures the WriteText method), but kept running into an issue wherein it wanted me to implement PagesObjectNumber.get (couldn't find that in the Object Browser though). Perhaps if you could create your own DocumentWriter from the existing abstract class and then pass that custom DocumentWriter in to the Document.Draw method. It might operate in the same way that you can pass a custom System.Xml.XmlTextWriter to a XslCompiledTransform, for example. It seems that the functionality is almost there, if one can cleanly inherit from the DocumentWriter class. Just a thought! Thanks!