Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public void checkAndFixPDFAPrefixes(MetadataFixerResultImpl.Builder resultBuilde
if (!PDFFlavours.isFlavourPart(flavour, PDFAFlavour.Specification.ISO_19005_1)) {
fixPropertyPrefix(resultBuilder, VeraPDFMeta.CORR, XMPConst.NS_PDFA_ID, VeraPDFMeta.PDFAID_PREFIX);
}
} else if (PDFFlavours.isFlavourPart(flavour, PDFAFlavour.Specification.ISO_19005_4)) {
} else if (PDFFlavours.isPDFA4RelatedFlavour(flavour)) {
fixPropertyPrefix(resultBuilder, VeraPDFMeta.PART, XMPConst.NS_PDFA_ID, VeraPDFMeta.PDFAID_PREFIX);
fixPropertyPrefix(resultBuilder, VeraPDFMeta.REVISION_YEAR, XMPConst.NS_PDFA_ID, VeraPDFMeta.PDFAID_PREFIX);
}
Expand Down Expand Up @@ -278,7 +278,7 @@ private boolean addPropertyDefinition(MetadataFixerResultImpl.Builder resultBuil

public void addPDFAIdentificationSchema(MetadataFixerResultImpl.Builder resultBuilder, PDFAFlavour flavour) {
int part = flavour.getPart().getPartNumber();
String conformance = !PDFFlavours.isFlavour(flavour, PDFAFlavour.PDFA_4) ? flavour.getLevel().getCode().toUpperCase() : null;
String conformance = (!PDFFlavours.isPDFA4RelatedFlavour(flavour)) ? flavour.getLevel().getCode().toUpperCase() : null;
boolean isBadPart = true;
boolean isMissingPart = false;
try {
Expand Down Expand Up @@ -311,7 +311,7 @@ public void addPDFAIdentificationSchema(MetadataFixerResultImpl.Builder resultBu
}

private void fixRevProperty(MetadataFixerResultImpl.Builder resultBuilder, PDFAFlavour flavour) {
if (!PDFFlavours.isFlavourPart(flavour, PDFAFlavour.Specification.ISO_19005_4) &&
if (!PDFFlavours.isPDFA4RelatedFlavour(flavour) &&
!PDFFlavours.isFlavour(flavour, PDFAFlavour.PDFUA_2)) {
return;
}
Expand Down Expand Up @@ -354,7 +354,7 @@ private static int confToInt(String conf) {
private boolean isWrongPDFAIdentification(PDFAFlavour flavour) {
try {
int part = flavour.getPart().getPartNumber();
String conformance = !PDFFlavours.isFlavour(flavour, PDFAFlavour.PDFA_4) ? flavour.getLevel().getCode().toUpperCase() : null;
String conformance = (!PDFFlavours.isPDFA4RelatedFlavour(flavour)) ? flavour.getLevel().getCode().toUpperCase() : null;
Integer schemaPart = this.metadata.getPDFAIdentificationPart();
String schemaConformance = this.metadata.getPDFAIdentificationConformance();
return schemaPart != part ||
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ private List<OutputIntents> getOutputIntents() {
}

private OutputIntents parseOutputIntents() {
if (!PDFFlavours.isFlavourPart(StaticContainers.getFlavour(), PDFAFlavour.Specification.ISO_19005_4)) {
if (!PDFFlavours.isPDFA4RelatedFlavour(StaticContainers.getFlavour())) {
return null;
}
List<org.verapdf.pd.PDOutputIntent> outInts = ((org.verapdf.pd.PDPage) this.simplePDObject).getOutputIntents();
Expand Down
Loading