mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-06-28 15:30:17 +08:00

* 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)
33 lines
1.1 KiB
C#
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;
|
|
}
|
|
}
|
|
}
|