Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

read .pdf file

$
0
0

Hi,
At present, my code can access a .pdf file and read a few properties.
Question:
How is it possible to extend my c# code so that I can read the text inside txtLastname control which is on the second page of the .pdf file?
Thanks

Existing code:

PdfReader reader = new PdfReader(@"D:\test.pdf");
            // total number of pages
            int n = reader.NumberOfPages;
            // size of the first page
            Rectangle psize = reader.GetPageSize(1);

            // file properties
            Dictionary<string, string> infodict = reader.Info;
            foreach (KeyValuePair<string, string> kvp in infodict)
                Console.WriteLine(kvp.Key + " => " + kvp.Value);
               


Viewing all articles
Browse latest Browse all 31927

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>