Free Support Forum - aspose.com

Extracting Data from PDF

I am not able to extract data from PDF the code is as follows:Its not able to read the sections.The similar code for Words works. Please suggest a solution.

FileStream fs = new FileStream(datafile.PostedFile.FileName , FileMode.Open , FileAccess.ReadWrite);

Aspose.Pdf.Pdf pdf = new Pdf(fs);

for (int n = 0; n < pdf.Sections.Count ; n++)

{

}

Hi,

Thank you for considering Aspose.

Aspose.Pdf is used to create PDF and it can't be used to extract data. You can try another product Aspose.Pdf.Kit. Refer to Data Extraction and other Utilities.