public class ColorMode
Example:
Document doc = new Document(getMyDir() + "Images.docx");
// Configure PdfSaveOptions to save every image in the input document in greyscale during conversion
PdfSaveOptions pdfSaveOptions = new PdfSaveOptions();
{
pdfSaveOptions.setColorMode(ColorMode.GRAYSCALE);
}
doc.save(getArtifactsDir() + "PdfSaveOptions.ColorRendering.pdf", pdfSaveOptions);
Field Summary | ||
---|---|---|
static final int | NORMAL | |
Rendering with unmodified colors.
|
||
static final int | GRAYSCALE | |
Rendering with colors in a range of gray shades from white to black.
|