Skip to content

Commit 4827382

Browse files
committed
Update getProfilePath calculation for WCAG
1 parent daa207a commit 4827382

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

core/src/main/java/org/verapdf/pdfa/validation/profiles/ProfileDirectoryImpl.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,16 @@ private static String getProfilePath(PDFAFlavour flavour) {
180180
if (PDFFlavours.isWTPDFFlavour(flavour)) {
181181
profilePath.append("-"); //$NON-NLS-1$
182182
profilePath.append(flavour.getLevel().getCode());
183+
} else if (PDFFlavours.isWCAGFlavour(flavour)) {
184+
profilePath.append("-"); //$NON-NLS-1$
185+
if (PDFFlavours.isFlavourLevel(flavour, PDFAFlavour.Level.HUMAN)) {
186+
profilePath.append("Complete"); //$NON-NLS-1$
187+
} else {
188+
profilePath.append(flavour.getLevel().getCode());
189+
}
190+
if (PDFFlavours.isPDFSpecification(flavour, PDFAFlavour.PDFSpecification.ISO_32000_2_0)) {
191+
profilePath.append("-").append("PDF20"); //$NON-NLS-1$
192+
}
183193
} else {
184194
profilePath.append(flavour.getLevel().getCode().toUpperCase()); //$NON-NLS-1$
185195
}

0 commit comments

Comments
 (0)