Package org.ghost4j.renderer
Interface Renderer
-
- All Superinterfaces:
Component
- All Known Subinterfaces:
RemoteRenderer
- All Known Implementing Classes:
AbstractRemoteRenderer,AbstractRenderer,SimpleRenderer
public interface Renderer extends Component
Interface defining a renderer used to render a Document to a given format.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<java.awt.Image>render(Document document)Renders a given document an outputs result as a list of Image objects (on image per page).java.util.List<java.awt.Image>render(Document document, int begin, int end)Renders pages of a given document an outputs result as a list of Image objects (on image per page).-
Methods inherited from interface org.ghost4j.Component
copySettings, extractSettings
-
-
-
-
Method Detail
-
render
java.util.List<java.awt.Image> render(Document document) throws java.io.IOException, RendererException, DocumentException
Renders a given document an outputs result as a list of Image objects (on image per page).- Parameters:
document- Document to render. Document type may or may no be supported (support left to the render final implementation).- Returns:
- a List of Image objects
- Throws:
java.io.IOExceptionAnalyzerExceptionRendererExceptionDocumentException
-
render
java.util.List<java.awt.Image> render(Document document, int begin, int end) throws java.io.IOException, RendererException, DocumentException
Renders pages of a given document an outputs result as a list of Image objects (on image per page).- Parameters:
document- Document to render. Document type may or may no be supported (support left to the render final implementation).begin- Index of the first page to renderend- Index of the last page to render- Returns:
- a List of Image objects
- Throws:
java.io.IOExceptionAnalyzerExceptionRendererExceptionDocumentException
-
-