Exemplo n.º 1
0
        public bool RenderPageToDC(int pageIndex, IntPtr dc, int dpiX, int dpiY, int boundsOriginX, int boundsOriginY, int boundsWidth, int boundsHeight, FPDF flags)
        {
            if (_disposed)
            {
                throw new ObjectDisposedException(GetType().Name);
            }

            using (var pdfData = new PdfData(_document, _form, pageIndex))
            {
                PdfiumLibrary.FPDF_RenderPage(dc, pdfData.Page, boundsOriginX, boundsOriginY, boundsWidth, boundsHeight, 0, flags);
            }

            return(true);
        }