public PdfPrintDocument(IPdfDocument document, PdfPrintSettings settings)
        {
            if (document == null)
            {
                throw new ArgumentNullException("document");
            }

            _document = document;
            _settings = settings;
        }
Пример #2
0
 public PdfPrintDocument(IPdfDocument document, PdfPrintSettings settings)
 {
     _document = document ?? throw new ArgumentNullException("document");
     _settings = settings;
 }
Пример #3
0
 /// <summary>
 /// Creates a <see cref="PrintDocument"/> for the PDF document.
 /// </summary>
 /// <param name="settings">The settings used to configure the print document.</param>
 /// <returns></returns>
 public PrintDocument CreatePrintDocument(PdfPrintSettings settings)
 {
     return(new PdfPrintDocument(this, settings));
 }