コード例 #1
0
        public static PdfFunction MakeFunction(PdfDictionary pdfObject)
        {
            switch (pdfObject.GetObjectType())
            {
            case 0: {
                return(new PdfFunction.Type0((PdfStream)pdfObject));
            }

            case 2: {
                return(new PdfFunction.Type2(pdfObject));
            }

            case 3: {
                return(new PdfFunction.Type3(pdfObject));
            }

            case 4: {
                return(new PdfFunction.Type4((PdfStream)pdfObject));
            }
            }
            return(null);
        }