using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
namespace PdfiumViewer
{
///
/// Configuration for printing multiple PDF pages on a single page.
///
public class PdfPrintMultiplePages
{
///
/// Gets the number of pages to print horizontally.
///
public int Horizontal { get; }
///
/// Gets the number of pages to print vertically.
///
public int Vertical { get; }
///
/// Gets the orientation in which PDF pages are layed out on the
/// physical page.
///
public Orientation Orientation { get; }
///
/// Gets the margin between PDF pages in device units.
///
public float Margin { get; }
///
/// Creates a new instance of the PdfPrintMultiplePages class.
///
/// The number of pages to print horizontally.
/// The number of pages to print vertically.
/// The orientation in which PDF pages are layed out on
/// the physical page.
/// The margin between PDF pages in device units.
public PdfPrintMultiplePages(int horizontal, int vertical, Orientation orientation, float margin)
{
if (horizontal < 1)
throw new ArgumentOutOfRangeException("horizontal cannot be less than one");
if (vertical < 1)
throw new ArgumentOutOfRangeException("vertical cannot be less than one");
if (margin < 0)
throw new ArgumentOutOfRangeException("margin cannot be less than zero");
Horizontal = horizontal;
Vertical = vertical;
Orientation = orientation;
Margin = margin;
}
}
}