| Modifier and Type | Field and Description |
|---|---|
| protected final PDType3Font | |
| protected final COSDictionary |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | checkCharProcsAndMetrics()
CharProcs is a dictionary where the key is a character name and the value is a Stream which contains the glyph representation of the key. |
| protected void | checkEncoding()
Overrides org. For a Type3 font, the mapping between the Character Code and the Character name is entirely defined in the /Encoding entry. |
| private void | checkEncodingAsDictionary(COSDictionary
the encoding dictionary. encodingDictionary)This method is called by the CheckEncoding method if the /Encoding entry is an instance of COSDictionary. |
| private void | checkEncodingAsString(String
The name of the encoding. enc)This method is called by the CheckEncoding method if the /Encoding entry is a String. |
| private void | checkFontBBox()
Check that the FontBBox element has the right format as declared in the PDF reference document. |
| private void | checkFontMatrix()
Check that the FontMatrix element has the right format as declared in the PDF reference document. |
| protected void | |
| private void | |
| private PDType3CharProc | |
| private float | Returns: the width of the characterParse the Glyph description to obtain the Width |
| public List | |
| public void |
| font | back to summary |
|---|---|
| protected final PDType3Font font | |
| fontDictionary | back to summary |
|---|---|
| protected final COSDictionary fontDictionary | |
| Type3FontValidator | back to summary |
|---|---|
| public Type3FontValidator(PreflightContext context, PDType3Font font) | |
| checkCharProcsAndMetrics | back to summary |
|---|---|
| private void checkCharProcsAndMetrics() CharProcs is a dictionary where the key is a character name and the value is a Stream which contains the glyph representation of the key. This method checks that all characters codes defined in the Widths Array exist in the CharProcs dictionary. If the CharProcs doesn't know the Character, it is mapped with the .notdef one. For each character, the Glyph width must be the same as the Width value declared in the Widths array. | |
| checkEncoding | back to summary |
|---|---|
| protected void checkEncoding() Overrides org. For a Type3 font, the mapping between the Character Code and the Character name is entirely defined in the /Encoding entry. The /Encoding Entry can be a Name (For the 5 predefined encodings) or a dictionary. If it is a dictionary, the /Differences array contains the correspondence between a character code and a set of character name which are different from the encoding entry of the dictionary. This method checks that the encoding is :
| |
| checkEncodingAsDictionary | back to summary |
|---|---|
| private void checkEncodingAsDictionary(COSDictionary encodingDictionary) This method is called by the CheckEncoding method if the /Encoding entry is an instance of COSDictionary. If that dictionary has a /BaseEncoding entry, the name is checked. In any case, the /Differences array is validated.
| |
| checkEncodingAsString | back to summary |
|---|---|
| private void checkEncodingAsString(String enc) This method is called by the CheckEncoding method if the /Encoding entry is a String. In this case, the String must be an existing encoding name. (WinAnsi, MacRoman...)
| |
| checkFontBBox | back to summary |
|---|---|
| private void checkFontBBox() Check that the FontBBox element has the right format as declared in the PDF reference document. | |
| checkFontMatrix | back to summary |
|---|---|
| private void checkFontMatrix() Check that the FontMatrix element has the right format as declared in the PDF reference document. | |
| checkMandatoryField | back to summary |
|---|---|
| protected void checkMandatoryField() | |
| checkResources | back to summary |
|---|---|
| private void checkResources() throws ValidationException If the Resources entry is present, this method checks its content. Only fonts and images are checked because this resource describes glyphs. | |
| getCharProc | back to summary |
|---|---|
| private PDType3CharProc getCharProc(int code) | |
| getWidthFromCharProc | back to summary |
|---|---|
| private float getWidthFromCharProc(PDType3CharProc charProc) throws IOException Parse the Glyph description to obtain the Width
| |
| getWidths | back to summary |
|---|---|
| public List | |
| validate | back to summary |
|---|---|
| public void validate() throws ValidationException Implements abstract org.
| |