I want to read and display the contents of the PDF files into my RichtextBox. I am using windows application C#. Is it possible? What is the way to do it?
in Windows, i just use this code: ShellExecute(GetDesktopWindow(), "open", "D:\\Folder\\File. pdf", NULL, NULL, SW_SHOWNORMAL);
C++ as a language doesn't equip you with such features as "write to DOC file" or "read from PDF file". The only staff available to you a a programmer is raw byte-by-byte reading or writing.
You can use Adobe PDF IFilter Library to convert a PDF document to text.
Also see an example on the CodeProject
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With