Beispiel #1
0
        public PdfData(IntPtr document, IntPtr form, int pageIndex)
        {
            _form = form;

            Page     = PdfiumLibrary.FPDF_LoadPage(document, pageIndex);
            TextPage = PdfiumLibrary.FPDFText_LoadPage(Page);
            PdfiumLibrary.FORM_OnAfterLoadPage(Page, _form);
            PdfiumLibrary.FORM_DoPageAAction(Page, _form, FPDFPAGE_AACTION.OPEN);

            Width  = PdfiumLibrary.FPDF_GetPageWidth(Page);
            Height = PdfiumLibrary.FPDF_GetPageHeight(Page);
        }