Package org.apache.fop.render.pdf
Class EnhancedPDFDocumentHandler
- java.lang.Object
-
- org.apache.fop.render.intermediate.AbstractIFDocumentHandler
-
- org.apache.fop.render.intermediate.AbstractBinaryWritingIFDocumentHandler
-
- org.apache.fop.render.pdf.PDFDocumentHandler
-
- org.apache.fop.render.pdf.EnhancedPDFDocumentHandler
-
- All Implemented Interfaces:
org.apache.fop.render.intermediate.IFDocumentHandler
public class EnhancedPDFDocumentHandler extends org.apache.fop.render.pdf.PDFDocumentHandler
A handler that allows to interrupt FOP's writing process so that theCobraHtml2FopRenderer
can render into the same pdf document
-
-
Constructor Summary
Constructors Constructor Description EnhancedPDFDocumentHandler(org.apache.fop.apps.FOUserAgent userAgent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doReallyEndDocument()
void
endDocument()
org.apache.fop.pdf.PDFPage
getPage(int idx)
int
getPageCount()
org.apache.fop.pdf.PDFDocument
getPDFDocument()
boolean
isStopWriting()
void
setStopWriting(boolean stopWriting)
void
startDocument()
void
startPage(int index, String name, String pageMasterName, Dimension size)
org.apache.fop.render.intermediate.IFPainter
startPageContent()
-
Methods inherited from class org.apache.fop.render.pdf.PDFDocumentHandler
endDocumentHeader, endPage, endPageContent, endPageSequence, getConfigurator, getDocumentNavigationHandler, getMimeType, getPageNumbers, getStructureTreeEventHandler, handleExtensionObject, setDocumentLocale, startPageSequence, supportsPagesOutOfOrder
-
Methods inherited from class org.apache.fop.render.intermediate.AbstractBinaryWritingIFDocumentHandler
getFontInfo, setDefaultFontInfo, setFontInfo, setResult
-
-
-
-
Method Detail
-
startPageContent
public org.apache.fop.render.intermediate.IFPainter startPageContent() throws org.apache.fop.render.intermediate.IFException
- Specified by:
startPageContent
in interfaceorg.apache.fop.render.intermediate.IFDocumentHandler
- Overrides:
startPageContent
in classorg.apache.fop.render.pdf.PDFDocumentHandler
- Throws:
org.apache.fop.render.intermediate.IFException
-
startPage
public void startPage(int index, String name, String pageMasterName, Dimension size) throws org.apache.fop.render.intermediate.IFException
- Specified by:
startPage
in interfaceorg.apache.fop.render.intermediate.IFDocumentHandler
- Overrides:
startPage
in classorg.apache.fop.render.pdf.PDFDocumentHandler
- Throws:
org.apache.fop.render.intermediate.IFException
-
endDocument
public void endDocument() throws org.apache.fop.render.intermediate.IFException
- Specified by:
endDocument
in interfaceorg.apache.fop.render.intermediate.IFDocumentHandler
- Overrides:
endDocument
in classorg.apache.fop.render.pdf.PDFDocumentHandler
- Throws:
org.apache.fop.render.intermediate.IFException
-
doReallyEndDocument
public void doReallyEndDocument() throws org.apache.fop.render.intermediate.IFException
- Throws:
org.apache.fop.render.intermediate.IFException
-
startDocument
public void startDocument() throws org.apache.fop.render.intermediate.IFException
- Specified by:
startDocument
in interfaceorg.apache.fop.render.intermediate.IFDocumentHandler
- Overrides:
startDocument
in classorg.apache.fop.render.pdf.PDFDocumentHandler
- Throws:
org.apache.fop.render.intermediate.IFException
-
getPDFDocument
public org.apache.fop.pdf.PDFDocument getPDFDocument()
-
getPageCount
public int getPageCount()
-
getPage
public org.apache.fop.pdf.PDFPage getPage(int idx)
-
isStopWriting
public boolean isStopWriting()
-
setStopWriting
public void setStopWriting(boolean stopWriting)
-
-