Class FilterHelper
- java.lang.Object
-
- org.apache.pdfbox.preflight.utils.FilterHelper
-
public final class FilterHelper extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Set<java.lang.String>
ALLOWED_FILTERS
-
Constructor Summary
Constructors Modifier Constructor Description private
FilterHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
isAuthorizedFilter(PreflightContext context, java.lang.String filter)
This method checks if the filter is authorized for the PDF file according to the preflight document specification attribute.static void
isAuthorizedFilterInPDFA(PreflightContext context, java.lang.String filter)
This method checks if the filter is authorized for a PDF/A file.
-
-
-
Method Detail
-
isAuthorizedFilter
public static void isAuthorizedFilter(PreflightContext context, java.lang.String filter)
This method checks if the filter is authorized for the PDF file according to the preflight document specification attribute. For example according to the PDF/A-1 specification, only the LZW filter is forbidden due to Copyright compatibility. Because of the PDF/A is based on the PDF1.4 specification, all filters that aren't declared in the PDF Reference Third Edition are rejected.- Parameters:
context
- the preflight contextfilter
- the filter to check
-
isAuthorizedFilterInPDFA
public static void isAuthorizedFilterInPDFA(PreflightContext context, java.lang.String filter)
This method checks if the filter is authorized for a PDF/A file. According to the PDF/A-1 specification, only the LZW filter is forbidden due to Copyright compatibility. Because of the PDF/A is based on the PDF1.4 specification, all filters that aren't declared in the PDF Reference Third Edition are rejected.- Parameters:
context
- the preflight contextfilter
- the filter to check
-
-