namespace UglyToad.PdfPig.Content { using System; using Outline.Destinations; using Tokens; /// /// The root of the document's object hierarchy. Contains references to objects defining the contents, /// outline, named destinations and more. /// public sealed class Catalog { /// /// The catalog dictionary containing assorted information. /// public DictionaryToken CatalogDictionary { get; } internal NamedDestinations NamedDestinations { get; } internal Pages Pages { get; } /// /// Create a new . /// internal Catalog(DictionaryToken catalogDictionary, Pages pages, NamedDestinations namedDestinations) { CatalogDictionary = catalogDictionary ?? throw new ArgumentNullException(nameof(catalogDictionary)); Pages = pages ?? throw new ArgumentNullException(nameof(pages)); NamedDestinations = namedDestinations; } } }