From b0a55e49cb8fe6976ac2ff96c3fbf3e54f16a64c Mon Sep 17 00:00:00 2001 From: Maxim Date: Mon, 6 Nov 2023 15:45:38 +0300 Subject: [PATCH] PDF/UA-2. Add new methods --- .../java/org/verapdf/model/impl/pb/pd/PBoxPDDocument.java | 5 +++++ .../model/impl/pb/pd/annotations/PBoxPDWidgetAnnot.java | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/pdfbox-validation-model/src/main/java/org/verapdf/model/impl/pb/pd/PBoxPDDocument.java b/pdfbox-validation-model/src/main/java/org/verapdf/model/impl/pb/pd/PBoxPDDocument.java index 033bb018..2ad3c198 100644 --- a/pdfbox-validation-model/src/main/java/org/verapdf/model/impl/pb/pd/PBoxPDDocument.java +++ b/pdfbox-validation-model/src/main/java/org/verapdf/model/impl/pb/pd/PBoxPDDocument.java @@ -154,6 +154,11 @@ public String getmostCommonOrientation() { return SQUARE_ORIENTATION.equals(twoTheMostFrequent.get(0)) && twoTheMostFrequent.size() == 2 ? twoTheMostFrequent.get(1) : twoTheMostFrequent.get(0); } + @Override + public Boolean getcontainsXRefStream() { + return null; + } + @Override public List getLinkedObjects(String link) { switch (link) { diff --git a/pdfbox-validation-model/src/main/java/org/verapdf/model/impl/pb/pd/annotations/PBoxPDWidgetAnnot.java b/pdfbox-validation-model/src/main/java/org/verapdf/model/impl/pb/pd/annotations/PBoxPDWidgetAnnot.java index 85905ce2..d79c560f 100644 --- a/pdfbox-validation-model/src/main/java/org/verapdf/model/impl/pb/pd/annotations/PBoxPDWidgetAnnot.java +++ b/pdfbox-validation-model/src/main/java/org/verapdf/model/impl/pb/pd/annotations/PBoxPDWidgetAnnot.java @@ -58,6 +58,11 @@ public String getTU() { return ((PDAnnotation) simplePDObject).getCOSObject().getString(COSName.TU); } + @Override + public Boolean getcontainsLbl() { + return null; + } + @Override protected List getAdditionalActions() { COSBase actionDictionary = ((PDAnnotation) simplePDObject).getCOSObject().getDictionaryObject(COSName.AA);