/** * Adds information about the PDF/A conformance level to the XMP metadata. * @param conformanceLevel * @throws IOException */ private void AddRdfDescription(PdfAConformanceLevel conformanceLevel) { PdfASchema schema = new PdfASchema(); switch (conformanceLevel) { case PdfAConformanceLevel.PDF_A_1A: schema.AddPart("1"); schema.AddConformance("A"); break; case PdfAConformanceLevel.PDF_A_1B: schema.AddPart("1"); schema.AddConformance("B"); break; case PdfAConformanceLevel.PDF_A_2A: schema.AddPart("2"); schema.AddConformance("A"); break; case PdfAConformanceLevel.PDF_A_2B: schema.AddPart("2"); schema.AddConformance("B"); break; case PdfAConformanceLevel.PDF_A_2U: schema.AddPart("2"); schema.AddConformance("U"); break; case PdfAConformanceLevel.PDF_A_3A: schema.AddPart("3"); schema.AddConformance("A"); break; case PdfAConformanceLevel.PDF_A_3B: schema.AddPart("3"); schema.AddConformance("B"); break; case PdfAConformanceLevel.PDF_A_3U: schema.AddPart("3"); schema.AddConformance("U"); break; default: break; } base.AddRdfDescription(schema); }