Class PDFEncoding
java.lang.Object
org.apache.fop.pdf.PDFObject
org.apache.fop.pdf.PDFDictionary
org.apache.fop.pdf.PDFEncoding
- All Implemented Interfaces:
PDFWritable
Class representing an /Encoding object.
A small object expressing the base encoding name and
the differences from the base encoding.
The three base encodings are given by their name.
Encodings are specified in section 5.5.5 of the PDF 1.4 spec.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassBuilder class for constructing the Differences array. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringthe name for the Mac Export encoding schemestatic final Stringthe name for the Mac Roman encoding schemestatic final Stringthe name for the PDF document encoding schemestatic final Stringthe name for the standard encoding schemestatic final Stringthe name for the WinAnsi encoding schemeFields inherited from class PDFDictionary
entries, order -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates and returns a new DifferencesBuilder instance for constructing the Differences array.static booleanisPredefinedEncoding(String name) Indicates whether a given encoding is one of the predefined encodings.voidsetDifferences(PDFArray differences) Sets the Differences value.Methods inherited from class PDFDictionary
containsKey, get, getChildren, getChildren, keySet, output, put, put, remove, writeDictionaryMethods inherited from class PDFObject
contentEquals, encode, encodeBinaryToHexString, encodeString, encodeText, formatObject, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, outputInline, referencePDF, setDocument, setObjectNumber, setObjectNumber, setObjectNumber, setParent, toPDF, toPDFString
-
Field Details
-
STANDARD_ENCODING
-
MAC_ROMAN_ENCODING
-
MAC_EXPERT_ENCODING
the name for the Mac Export encoding scheme- See Also:
-
WIN_ANSI_ENCODING
-
PDF_DOC_ENCODING
-
-
Constructor Details
-
PDFEncoding
Create a new /Encoding object.- Parameters:
basename- the name of the character encoding schema
-
-
Method Details
-
isPredefinedEncoding
Indicates whether a given encoding is one of the predefined encodings.- Parameters:
name- the encoding name (ex. "StandardEncoding")- Returns:
- true if it is a predefined encoding
-
createDifferencesBuilder
Creates and returns a new DifferencesBuilder instance for constructing the Differences array.- Returns:
- the DifferencesBuilder
-
setDifferences
Sets the Differences value.- Parameters:
differences- the differences.
-