public class CachedRenderPagesModel extends RenderPagesModel
prepared, renderer
currentPageSequence, log
Constructor and Description |
---|
CachedRenderPagesModel(FOUserAgent userAgent,
String outputFormat,
FontInfo fontInfo,
OutputStream stream)
Main Constructor
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkPreparedPages(PageViewport newpage,
boolean renderUnresolved)
Check prepared pages
|
void |
endDocument()
End the document.
|
protected void |
savePage(PageViewport page)
Save a page.
|
addPage, handleOffDocumentItem, preparePage, renderPage, setDocumentLocale, startPageSequence
getCurrentPageSequence, getPage, getPageCount, getPageSequenceCount
public CachedRenderPagesModel(FOUserAgent userAgent, String outputFormat, FontInfo fontInfo, OutputStream stream) throws FOPException
userAgent
- FOUserAgent object for processoutputFormat
- the MIME type of the output format to use (ex. "application/pdf").fontInfo
- FontInfo objectstream
- OutputStreamFOPException
- if the renderer cannot be properly initializedprotected boolean checkPreparedPages(PageViewport newpage, boolean renderUnresolved)
checkPreparedPages
in class RenderPagesModel
newpage
- the new page being addedrenderUnresolved
- render pages with unresolved idref's
(done at end-of-document processing)protected void savePage(PageViewport page)
page
- the page to preparepublic void endDocument() throws SAXException
endDocument
in class RenderPagesModel
SAXException
- if a problem was encountered.Copyright © 2025 Apache Software Foundation. All rights reserved.