views:

270

answers:

1

IS THERE IS ANY Solution for My Problem

Hi all,

I want to read a PDF file having lots of text, images, tables in it. I want to read the entire file content by content page by page, from top to bottom.

For example:

The top of the page contains the Heading Then on left hand side the contents and on the right hand side images

So I first want to get the heading then the contents then the images.

Is there any Open Source for reading the PDF or any coding reference for .net 2.0 or greater version

Any help is urgently needed.

With regards, Ankur

Hi Konamiman, I make use of iTextSharp but unable to read the document. For more clarification this is the code I am using in case of iTextSharp

iTextSharp.text.pdf.PdfReader documentReader = new PdfReader(@"C:\Documents and Settings\admin\My Documents\Visual Studio 2008\Projects\pdfClownPDFReader\pdfClownPDFReader\Hongkong Buffet.pdf");
      //MessageBox.Show(documentReader.NumberOfPages.ToString());
      PdfStamper PDFS = new PdfStamper(documentReader, m);
      PdfDictionary dictonary = documentReader.GetPageN(1);
      PdfObject obj = dictonary.Get(PdfName.TEXT);

I also tried PDFSharp Please help

Please help still looking for the help.

+1  A: 

There is for example iTextSharp.

Konamiman
Hi Konamiman,I make use of iTextSharp but unable to read the document.For more clarification this is the code I am using in case of iTextSharpiTextSharp.text.pdf.PdfReader documentReader = new PdfReader(@"C:\Documents and Settings\admin\My Documents\Visual Studio 2008\Projects\pdfClownPDFReader\pdfClownPDFReader\Hongkong Buffet.pdf"); //MessageBox.Show(documentReader.NumberOfPages.ToString()); PdfStamper PDFS = new PdfStamper(documentReader, m); PdfDictionary dictonary = documentReader.GetPageN(1); PdfObject obj = dictonary.Get(PdfName.TEXT);I also tried PDFSharpPlease help
Ankur