PdfPig/src/UglyToad.PdfPig/Content/Catalog.cs
Jason Nelson a412a239be
Enable nullable annotations (#803)
* Enable nullable annotations

* Remove unused Jetbrain annotations

* Ensure system using statements are first

* Improve nullability annotations

* Annotate encryptionDictionary is non-null when IsEncrypted is true

* Disable nullable for PdfTokenScanner.Get

* Improve nullability annotations for ObjectLocationProvider.TryGetCached

* Revert changes to RGBWorkingSpace

* Update UglyToad.PdfPig.Package with new framework targets (fixes nightly builds)
2024-03-17 18:51:40 +00:00

33 lines
1.1 KiB
C#

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