public static byte[] CreatePDF(List<PdfContentParameter> contents, string[] images, int type)
        {
            PDFContext context = null;
            switch (type)
            {
                case 111:
                    context = new PDFContext(new ProcessPDFBuilderStrategy());
                    break;
                case 142:
                    context = new PDFContext(new SubProcessPDFBuilderStrategy());
                    break;
                default:
                    context = new PDFContext(new GenericPDFBuilderStrategy());
                    break;
            }

            return context.BuildPDF(contents, images, type);
        }
예제 #2
0
        public static byte[] CreatePDF(List <PdfContentParameter> contents, string[] images, int type)
        {
            PDFContext context = null;

            switch (type)
            {
            case 111:
                context = new PDFContext(new ProcessPDFBuilderStrategy());
                break;

            case 142:
                context = new PDFContext(new SubProcessPDFBuilderStrategy());
                break;

            default:
                context = new PDFContext(new GenericPDFBuilderStrategy());
                break;
            }

            return(context.BuildPDF(contents, images, type));
        }