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"]); } }
public DocumentCatalog() { System.Text.Encoding.RegisterProvider(System.Text.CodePagesEncodingProvider.Instance); this.pageTree = new DocumentPageTree(); this.outlines = new DocumentOutlines(); }