Make MediaBox public

This commit is contained in:
BobLd
2020-11-23 11:21:10 +00:00
parent 910e22997c
commit 4d86dc399e
2 changed files with 11 additions and 2 deletions

View File

@@ -9,7 +9,7 @@
/// <remarks>
/// See table 3.27 from the PDF specification version 1.7.
/// </remarks>
internal class MediaBox
public class MediaBox
{
///<summary>
/// User space units per inch.
@@ -66,8 +66,14 @@
/// </summary>
public static readonly MediaBox A6 = new MediaBox(new PdfRectangle(0, 0, 105 * PointsPerMm, 148 * PointsPerMm));
/// <summary>
/// A rectangle, expressed in default user space units, that defines the boundaries of the physical medium on which the page shall be displayed or printed.
/// </summary>
public PdfRectangle Bounds { get; }
/// <summary>
/// Create a new <see cref="MediaBox"/>.
/// </summary>
public MediaBox(PdfRectangle? bounds)
{
Bounds = bounds ?? throw new ArgumentNullException(nameof(bounds));

View File

@@ -35,7 +35,10 @@
/// </summary>
public CropBox CropBox { get; }
internal MediaBox MediaBox { get; }
/// <summary>
/// Defines the boundaries of the physical medium on which the page shall be displayed or printed.
/// </summary>
public MediaBox MediaBox { get; }
internal PageContent Content { get; }