Package org.ghost4j.renderer
Interface Renderer
- All Superinterfaces:
Component
- All Known Subinterfaces:
RemoteRenderer
- All Known Implementing Classes:
AbstractRemoteRenderer
,AbstractRenderer
,SimpleRenderer
Interface defining a renderer used to render a Document to a given format.
-
Method Summary
Modifier and TypeMethodDescriptionRenders a given document an outputs result as a list of Image objects (on image per page).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 Details
-
render
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:
IOException
AnalyzerException
RendererException
DocumentException
-
render
List<Image> render(Document document, int begin, int end) throws 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:
IOException
AnalyzerException
RendererException
DocumentException
-