public final class IDGenerator extends Object
This class specified for creating ID`s for every object from model.
| Modifier and Type | Method and Description |
|---|---|
static String |
generateID(COSBase pdfBoxObject)
Generate ID for pdf box object.
|
static String |
generateID(int hashcode,
String fontName,
int glyphCode,
int renderingMode)
Generate ID for font glyph.
|
static String |
generateID(PDFontLike font)
Generate ID for font.
|
static String |
generateID(PDOutlineItem item) |
public static String generateID(COSBase pdfBoxObject)
COSObject, where 'N' and 'M'
are numbers, and null for other pdf box objectspdfBoxObject - object of pdf box librarypublic static String generateID(int hashcode, String fontName, int glyphCode, int renderingMode)
hashcode - hashcode of font dictionaryfontName - name of fontglyphCode - code of glyphpublic static String generateID(PDFontLike font)
font - target font for generating IDpublic static String generateID(PDOutlineItem item)
Copyright © 2015–2019 The veraPDF Consortium. All rights reserved.