diff --git a/pdfbox-validation-model/src/main/java/org/verapdf/model/impl/pb/operator/markedcontent/PBOpMarkedContent.java b/pdfbox-validation-model/src/main/java/org/verapdf/model/impl/pb/operator/markedcontent/PBOpMarkedContent.java index 3d15152f..f81a6883 100644 --- a/pdfbox-validation-model/src/main/java/org/verapdf/model/impl/pb/operator/markedcontent/PBOpMarkedContent.java +++ b/pdfbox-validation-model/src/main/java/org/verapdf/model/impl/pb/operator/markedcontent/PBOpMarkedContent.java @@ -61,6 +61,7 @@ public abstract class PBOpMarkedContent extends PBOperator implements public static final String LANG = "Lang"; /** Name of link to ActualText value from the properties dictionary */ public static final String ACTUAL_TEXT = "actualText"; + public static final String ALT = "alt"; public PBOpMarkedContent(List arguments, final String opType, PDDocument document, PDFAFlavour flavour) { super(arguments, opType); @@ -88,6 +89,8 @@ public List getLinkedObjects(String link) { switch (link) { case ACTUAL_TEXT: return this.getactualText(); + case ALT: + return Collections.emptyList(); default: return super.getLinkedObjects(link); } diff --git a/pdfbox-validation-model/src/main/java/org/verapdf/model/impl/pb/operator/textshow/PBGlyph.java b/pdfbox-validation-model/src/main/java/org/verapdf/model/impl/pb/operator/textshow/PBGlyph.java index 3d55b8ab..b2e43f2a 100644 --- a/pdfbox-validation-model/src/main/java/org/verapdf/model/impl/pb/operator/textshow/PBGlyph.java +++ b/pdfbox-validation-model/src/main/java/org/verapdf/model/impl/pb/operator/textshow/PBGlyph.java @@ -152,4 +152,9 @@ public Boolean getactualTextPresent() { // actual text obtaining should be implemented return Boolean.FALSE; } + + @Override + public Boolean getaltPresent() { + return null; + } } \ No newline at end of file diff --git a/pdfbox-validation-model/src/main/java/org/verapdf/model/impl/pb/pd/PBoxPDStructElem.java b/pdfbox-validation-model/src/main/java/org/verapdf/model/impl/pb/pd/PBoxPDStructElem.java index 7dfdb267..f22921e4 100644 --- a/pdfbox-validation-model/src/main/java/org/verapdf/model/impl/pb/pd/PBoxPDStructElem.java +++ b/pdfbox-validation-model/src/main/java/org/verapdf/model/impl/pb/pd/PBoxPDStructElem.java @@ -81,6 +81,7 @@ public class PBoxPDStructElem extends PBoxPDObject implements PDStructElem { * Link name for {@code ActualText} key */ public static final String ACTUAL_TEXT = "actualText"; + public static final String ALT = "alt"; private TaggedPDFRoleMapHelper roleMapHelper; @@ -267,7 +268,9 @@ public List getLinkedObjects(String link) { case LANG: return this.getLang(); case ACTUAL_TEXT: - return this.getactualText(); + return this.getactualText(); + case ALT: + return Collections.emptyList(); default: return super.getLinkedObjects(link); }