public final class PDFHints
extends java.lang.Object
PDFGraphics2D
class. There is just one hint defined at present:KEY_DRAW_STRING_TYPE
that controls how the drawString() methods
generate output (regular text or vector graphics);Modifier and Type | Class and Description |
---|---|
static class |
PDFHints.Key
A key for hints used by the
PDFGraphics2D class. |
Modifier and Type | Field and Description |
---|---|
static PDFHints.Key |
KEY_DRAW_STRING_TYPE
The key for the hint that controls whether strings are rendered as
characters (standard PDF output) or vector graphics (implemented using
TextLayout ). |
static java.lang.Object |
VALUE_DRAW_STRING_TYPE_STANDARD
Hint value for
KEY_DRAW_STRING_TYPE to specify that strings
should be written to the output using standard PDF text primitives. |
static java.lang.Object |
VALUE_DRAW_STRING_TYPE_VECTOR
Hint value for
KEY_DRAW_STRING_TYPE to say that strings
should be written to the output using vector graphics primitives. |
public static final PDFHints.Key KEY_DRAW_STRING_TYPE
TextLayout
). The latter will result in larger output files
but permits rendering Unicode characters without font embedding (which is
not supported by OrsonPDF at this point). Valid hint
values are VALUE_DRAW_STRING_TYPE_STANDARD
and
VALUE_DRAW_STRING_TYPE_VECTOR
.public static final java.lang.Object VALUE_DRAW_STRING_TYPE_STANDARD
KEY_DRAW_STRING_TYPE
to specify that strings
should be written to the output using standard PDF text primitives.public static final java.lang.Object VALUE_DRAW_STRING_TYPE_VECTOR
KEY_DRAW_STRING_TYPE
to say that strings
should be written to the output using vector graphics primitives.