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

                Page     = NativePdfiumMethods.FPDF_LoadPage(document, pageNumber);
                TextPage = NativePdfiumMethods.FPDFText_LoadPage(Page);
                NativePdfiumMethods.FORM_OnAfterLoadPage(Page, form);
                NativePdfiumMethods.FORM_DoPageAAction(Page, form, NativePdfiumMethods.FPDFPAGE_AACTION.OPEN);

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