Exemple #1
0
        public override void Load(PDFObjects pdf, PdfObject pdfObject)
        {
            System.Text.Encoding.RegisterProvider(System.Text.CodePagesEncodingProvider.Instance);
            var dictionary = pdf.GetObject <DictionaryObject>(pdfObject);

            pageTree = pdf.GetDocument <DocumentPageTree>(dictionary.Dictionary["Pages"]);

            if (dictionary.Dictionary.ContainsKey("Outlines"))
            {
                outlines = pdf.GetDocument <DocumentOutlines>(dictionary.Dictionary["Outlines"]);
            }
        }
Exemple #2
0
 public DocumentCatalog()
 {
     System.Text.Encoding.RegisterProvider(System.Text.CodePagesEncodingProvider.Instance);
     this.pageTree = new DocumentPageTree();
     this.outlines = new DocumentOutlines();
 }