| Constructor and Description |
|---|
PDFColorHandler(PDFResources resources,
PDFResourceContext resourceContext)
Create a new instance for the given
PDFResources |
| Modifier and Type | Method and Description |
|---|---|
void |
establishColor(StringBuffer codeBuffer,
Color color,
boolean fill,
boolean alpha)
Generates code to select the given color and handles the registration of color spaces in
PDF where necessary.
|
public PDFColorHandler(PDFResources resources, PDFResourceContext resourceContext)
PDFResourcesresources - the PDF resourcespublic void establishColor(StringBuffer codeBuffer, Color color, boolean fill, boolean alpha)
codeBuffer - the target buffer to receive the color selection codecolor - the colorfill - true for fill color, false for stroke colorCopyright © 2023 Apache Software Foundation. All rights reserved.