Exemplo n.º 1
0
        public static PdfPageObject Create(FPDF_PAGE page, FPDF_PAGEOBJECT pageObj)
        {
            switch (PDFium.FPDFPageObj_GetType(pageObj))
            {
            case PageObjTypes.Text:
                return(new PdfTextObject(page, pageObj));

            case PageObjTypes.Path:
                return(new PdfPathObject(page, pageObj));

            case PageObjTypes.Image:
                return(new PdfImageObject(page, pageObj));

            case PageObjTypes.Shading:
                return(new PdfShadingObject(page, pageObj));

            case PageObjTypes.Form:
                return(new PdfFormObject(page, pageObj));

            default:
                return(new PdfUnknownObject(page, pageObj));
            }
        }