update readme and make page dictionary public

This commit is contained in:
Eliot Jones
2019-05-19 13:14:38 +01:00
parent 872e338ecb
commit e9e376c52a
2 changed files with 16 additions and 22 deletions

View File

@@ -15,7 +15,10 @@
/// </summary>
public class Page
{
private readonly DictionaryToken dictionary;
/// <summary>
/// The raw PDF dictionary token for this page in the document.
/// </summary>
public DictionaryToken Dictionary { get; }
/// <summary>
/// The page number (starting at 1).
@@ -72,7 +75,7 @@
throw new ArgumentOutOfRangeException(nameof(number), "Page number cannot be 0 or negative.");
}
this.dictionary = dictionary ?? throw new ArgumentNullException(nameof(dictionary));
Dictionary = dictionary ?? throw new ArgumentNullException(nameof(dictionary));
Number = number;
MediaBox = mediaBox;