Example #1
0
        /**
         * @see PdfAConformance#setConformanceLevel(com.itextpdf.text.pdf.PdfAConformanceLevel)
         */
        virtual public void SetConformanceLevel(PdfAConformanceLevel conformanceLevel)
        {
            this.conformanceLevel = conformanceLevel;
            switch (this.conformanceLevel)
            {
            case PdfAConformanceLevel.PDF_A_1A:
            case PdfAConformanceLevel.PDF_A_1B:
                pdfAChecker = new PdfA1Checker(conformanceLevel);
                break;

            case PdfAConformanceLevel.PDF_A_2A:
            case PdfAConformanceLevel.PDF_A_2B:
            case PdfAConformanceLevel.PDF_A_2U:
                pdfAChecker = new PdfA2Checker(conformanceLevel);
                break;

            case PdfAConformanceLevel.PDF_A_3A:
            case PdfAConformanceLevel.PDF_A_3B:
            case PdfAConformanceLevel.PDF_A_3U:
                pdfAChecker = new PdfA3Checker(conformanceLevel);
                break;

            case PdfAConformanceLevel.ZUGFeRD:
            case PdfAConformanceLevel.ZUGFeRDComfort:
            case PdfAConformanceLevel.ZUGFeRDBasic:
            case PdfAConformanceLevel.ZUGFeRDExtended:
                pdfAChecker = new ZugferdChecker(conformanceLevel);
                break;

            default:
                pdfAChecker = new PdfA1Checker(conformanceLevel);
                break;
            }
        }
Example #2
0
        /**
         * @see PdfAConformance#setConformanceLevel(com.itextpdf.text.pdf.PdfAConformanceLevel)
         */
        public void SetConformanceLevel(PdfAConformanceLevel conformanceLevel)
        {
            this.conformanceLevel = conformanceLevel;
            switch (this.conformanceLevel)
            {
            case PdfAConformanceLevel.PDF_A_1A:
            case PdfAConformanceLevel.PDF_A_1B:
                pdfAChecker = new PdfA1Checker(conformanceLevel);
                break;

            case PdfAConformanceLevel.PDF_A_2A:
            case PdfAConformanceLevel.PDF_A_2B:
            case PdfAConformanceLevel.PDF_A_2U:
                pdfAChecker = new PdfA2Checker(conformanceLevel);
                break;

            case PdfAConformanceLevel.PDF_A_3A:
            case PdfAConformanceLevel.PDF_A_3B:
            case PdfAConformanceLevel.PDF_A_3U:
                pdfAChecker = new PdfA3Checker(conformanceLevel);
                break;

            default:
                pdfAChecker = new PdfA1Checker(conformanceLevel);
                break;
            }
        }
Example #3
0
 /**
  * @see PdfAConformance#setConformanceLevel(com.itextpdf.text.pdf.PdfAConformanceLevel)
  */
 public void SetConformanceLevel(PdfAConformanceLevel conformanceLevel) {
     this.conformanceLevel = conformanceLevel;
     switch(this.conformanceLevel) {
         case PdfAConformanceLevel.PDF_A_1A:
         case PdfAConformanceLevel.PDF_A_1B:
             pdfAChecker = new PdfA1Checker(conformanceLevel);
             break;
         case PdfAConformanceLevel.PDF_A_2A:
         case PdfAConformanceLevel.PDF_A_2B:
         case PdfAConformanceLevel.PDF_A_2U:
             pdfAChecker = new PdfA2Checker(conformanceLevel);
             break;
         case PdfAConformanceLevel.PDF_A_3A:
         case PdfAConformanceLevel.PDF_A_3B:
         case PdfAConformanceLevel.PDF_A_3U:
             pdfAChecker = new PdfA3Checker(conformanceLevel);
             break;
         default:
             pdfAChecker = new PdfA1Checker(conformanceLevel);
             break;
     }
 }
 /**
  * @see PdfAConformance#setConformanceLevel(com.itextpdf.text.pdf.PdfAConformanceLevel)
  */
 virtual public void SetConformanceLevel(PdfAConformanceLevel conformanceLevel) {
     this.conformanceLevel = conformanceLevel;
     switch(this.conformanceLevel) {
         case PdfAConformanceLevel.PDF_A_1A:
         case PdfAConformanceLevel.PDF_A_1B:
             pdfAChecker = new PdfA1Checker(conformanceLevel);
             break;
         case PdfAConformanceLevel.PDF_A_2A:
         case PdfAConformanceLevel.PDF_A_2B:
         case PdfAConformanceLevel.PDF_A_2U:
             pdfAChecker = new PdfA2Checker(conformanceLevel);
             break;
         case PdfAConformanceLevel.PDF_A_3A:
         case PdfAConformanceLevel.PDF_A_3B:
         case PdfAConformanceLevel.PDF_A_3U:
             pdfAChecker = new PdfA3Checker(conformanceLevel);
             break;
         case PdfAConformanceLevel.ZUGFeRD:
         case PdfAConformanceLevel.ZUGFeRDComfort:
         case PdfAConformanceLevel.ZUGFeRDBasic:
         case PdfAConformanceLevel.ZUGFeRDExtended:
             pdfAChecker = new ZugferdChecker(conformanceLevel);
             break;
         default:
             pdfAChecker = new PdfA1Checker(conformanceLevel);
             break;
     }
 }