public class DefaultPageProcessor extends Object implements FSPageProcessor
| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultPageProcessor.DefaultPage |
| Constructor and Description |
|---|
DefaultPageProcessor(FSPageOutputStreamSupplier osFactory,
int imageType,
String imageFormat)
Creates a page processor which saves each page as an image.
|
| Modifier and Type | Method and Description |
|---|---|
Graphics2D |
createLayoutGraphics()
Create a graphics device that can be supplied to useLayoutGraphics.
|
FSPage |
createPage(int zeroBasedPageNumber,
int width,
int height) |
void |
finishPage(FSPage pg) |
public DefaultPageProcessor(FSPageOutputStreamSupplier osFactory, int imageType, String imageFormat)
osFactory - must supply an output stream for each page. The os
will be closed by the page processor.imageType - must be a constant from the BufferedImage class.imageFormat - must be a format such as png or jpegpublic Graphics2D createLayoutGraphics()
public FSPage createPage(int zeroBasedPageNumber, int width, int height)
createPage in interface FSPageProcessorpublic void finishPage(FSPage pg)
finishPage in interface FSPageProcessorCopyright © 2017. All rights reserved.