java.lang.Object
org.sejda.sambox.util.SpecVersionUtils
Utility class with pdf spec versions related methods and constants
- Author:
- Andrea Vacondio
-
Field Summary
Fields -
Method Summary
-
Field Details
-
PDF_HEADER
- See Also:
-
V1_0
- See Also:
-
V1_1
- See Also:
-
V1_2
- See Also:
-
V1_3
- See Also:
-
V1_4
- See Also:
-
V1_5
- See Also:
-
V1_6
- See Also:
-
V1_7
- See Also:
-
V2_0
- See Also:
-
-
Method Details
-
parseHeaderString
Parses a conforming file header string or returning the version (ex. "1.4") found. File header is defined in Chap 7.5.2 of PDF 32000-1:2008- Parameters:
header-- Returns:
- the parsed version (ex. "1.4")
- Throws:
IOException- if the string is not a valid header
-
isAtLeast
- Parameters:
version- the version to compareatLeast- min version to return true (ex. "1.5")- Returns:
- true if the given pdf spec version is at least as high as the given atLeast version
-