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


FLASHBACK WITH SIRASA FM AT GALGAMUWA 2022


Mp3 Download: Mdu - Mazola


Imitation gun was fired at motorist in Leicester road-rage incident


Ndebele names


MCKINNEY EMALINE “EMMA” OF WES...


Okra & Motia — The Workshop (Prod by Hammer)


Skint TV teen to be sentenced


Moondru Mudichu 19-09-2017 – Polimer tv Serial


YOSVANI JAMES Arrested by Miami-Dade County Corrections on Jan 10, 2017


Stories • Goddess Stepmom