Migration from Aspose.Pdf.Kit to Aspose.Pdf 6.x

Support for Legacy code

If you want to use the legacy code developed with Aspose.PDF.Kit for .NET, you only need to import Aspose.PDF.Facades namespace and your code will be working fine. We need to make some changes in the code while using classes present under Aspose.PDF.Facades namespace. These details are explained in Changes Required when Migrating from Aspose.PDF.Kit.

The following code snippet shows you how to run your existing Aspose.PDF.Kit code with new Aspose.PDF.


 //use new Facades namespace to access legacy classes

using Aspose.PDF.Facades;

namespace Aspose.PDF.FacadesSample


    class Program


        static void Main(string[] args)


            //set license

            //Note: License class is under Aspose.PDF namespace

            Aspose.PDF.License license = new Aspose.PDF.License();


            //Note: PdfExtractor class is under Aspose.PDF.Facades

            //bind input PDF file

            PdfExtractor pdfExtractor = new PdfExtractor();


            //extract all the text


            //get extracted text in file or stream