mirror of
https://github.com/UglyToad/PdfPig.git
synced 2026-03-10 00:23:29 +08:00
Make MediaBox public
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// See table 3.27 from the PDF specification version 1.7.
|
/// See table 3.27 from the PDF specification version 1.7.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
internal class MediaBox
|
public class MediaBox
|
||||||
{
|
{
|
||||||
///<summary>
|
///<summary>
|
||||||
/// User space units per inch.
|
/// User space units per inch.
|
||||||
@@ -66,8 +66,14 @@
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public static readonly MediaBox A6 = new MediaBox(new PdfRectangle(0, 0, 105 * PointsPerMm, 148 * PointsPerMm));
|
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; }
|
public PdfRectangle Bounds { get; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Create a new <see cref="MediaBox"/>.
|
||||||
|
/// </summary>
|
||||||
public MediaBox(PdfRectangle? bounds)
|
public MediaBox(PdfRectangle? bounds)
|
||||||
{
|
{
|
||||||
Bounds = bounds ?? throw new ArgumentNullException(nameof(bounds));
|
Bounds = bounds ?? throw new ArgumentNullException(nameof(bounds));
|
||||||
|
|||||||
@@ -35,7 +35,10 @@
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public CropBox CropBox { get; }
|
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; }
|
internal PageContent Content { get; }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user