public PdfPrintDocument(PdfReader pdf) { this.pdf = pdf; DocumentName = Path.GetFileName(pdf.Name); } // ctor
internal PdfBookmark(PdfReader pdf, PdfBookmark parent, IntPtr hBookmark) { this.pdf = pdf ?? throw new ArgumentNullException(nameof(pdf)); this.parent = parent; this.hBookmark = hBookmark; } // ctor
internal static PdfDestination Create(PdfReader pdf, IntPtr hDestination) => hDestination == IntPtr.Zero ? null : new PdfDestination(pdf, hDestination);
internal static PdfAction Create(PdfReader pdf, IntPtr hAction) => hAction == IntPtr.Zero ? null : new PdfAction(pdf, hAction);
public PdfProperties(PdfReader pdf) { this.pdf = pdf ?? throw new ArgumentNullException(nameof(pdf)); }