From 5c78345633b828ff4cb505bdcc9d589a287f5a8f Mon Sep 17 00:00:00 2001 From: David Russo Date: Wed, 27 Feb 2019 15:42:19 +0000 Subject: [PATCH] PDF: Disable PDF/A profile reporting Current implementation was found to be unfit for purpose. Disabling PDF/A profile reporting until code can be improved or removed entirely. --- .../java/edu/harvard/hul/ois/jhove/module/PdfModule.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/jhove-modules/pdf-hul/src/main/java/edu/harvard/hul/ois/jhove/module/PdfModule.java b/jhove-modules/pdf-hul/src/main/java/edu/harvard/hul/ois/jhove/module/PdfModule.java index 3770a9f9b..fa9bc6f89 100644 --- a/jhove-modules/pdf-hul/src/main/java/edu/harvard/hul/ois/jhove/module/PdfModule.java +++ b/jhove-modules/pdf-hul/src/main/java/edu/harvard/hul/ois/jhove/module/PdfModule.java @@ -380,7 +380,7 @@ public class PdfModule extends ModuleBase { "Portable Document Format" }; private static final String COVERAGE = "PDF 1.0-1.6; PDF/X-1 (ISO 15930-1:2001), X-1a (ISO 15930-4:2003), " + "X-2 (ISO 15930-5:2003), and X-3 (ISO 15930-6:2003); Tagged PDF; " - + "Linearized PDF; PDF/A (ISO/CD 19005-1)"; + + "Linearized PDF"; private static final String[] MIMETYPE = { MIME_TYPE }; private static final String WELLFORMED = "A PDF file is " + "well-formed if it meets the criteria defined in Chapter " @@ -651,6 +651,10 @@ public PdfModule() { _profile.add(new LinearizedProfile(this)); TaggedProfile tpr = new TaggedProfile(this); _profile.add(tpr); + + /* + * CURRENT PDF/A PROFILING UNFIT FOR PURPOSE; SEE GITHUB ISSUE #101. + * AProfile apr = new AProfile(this); _profile.add(apr); // Link AProfile to TaggedProfile to save checking @@ -661,6 +665,7 @@ public PdfModule() { _profile.add(apra); // AProfileLevelA depends on AProfile apra.setAProfile(apr); + */ X1Profile x1 = new X1Profile(this); _profile.add(x1); @@ -671,6 +676,7 @@ public PdfModule() { x1a.setX1Profile(x1); _profile.add(new X2Profile(this)); _profile.add(new X3Profile(this)); + _showAnnotations = false; _showFonts = false; _showOutlines = false;