We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

How to read the content of an existing pdf file


When I open an existing pdf file the sections count is zero.

Pdf pdf = new Pdf(new FileStream(pdfdoc, FileMode.Open));

The pdf object doesn't have any useful information. Unlike in

Aspose.Word.Document doc1 = new Document(document1);

where we get the entire document in a tree structure.

The problem I'm trying to solve is to open two pdf documents and compare them.


I am sorry but opening of existing pdf file with Aspose.Pdf is not supported at the moment. You can however use Aspose.Pdf.Kit to process existing pdf files.


Hi Adeel,

Thanks for the reply.

In our company, we have the license for Aspose.Word and Pdf, do we need to buy another license for using Aspose.Pdf.Kit?


Yes, you need to buy Aspose.Pdf.Kit because it is a different product then Aspose.Pdf. And sorry to tell you that you can’t compare two Pdf documents like this.