示例#1
0
        /// <summary>
        /// Raises the System.Drawing.Printing.PrintDocument.EndPrint event. It is called
        /// when the last page of the document has printed.
        /// </summary>
        /// <param name="e">A System.Drawing.Printing.PrintEventArgs that contains the event data.</param>
        protected override void OnEndPrint(PrintEventArgs e)
        {
            base.OnEndPrint(e);

            if (_printHandle != IntPtr.Zero)
            {
                Pdfium.FPDFPRINT_Close(_printHandle);
            }
            _printHandle = IntPtr.Zero;
        }