public abstract class AbstractIFDocumentHandler extends Object implements IFDocumentHandler
IFDocumentHandler implementations.| Modifier | Constructor and Description |
|---|---|
protected |
AbstractIFDocumentHandler(IFContext context)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
endDocumentHeader()
Indicates the end of the document header.
|
void |
endDocumentTrailer()
Indicates the end of the document trailer.
|
void |
endPageHeader()
Indicates the end of the page header.
|
void |
endPageTrailer()
Indicates the end of the page trailer.
|
IFContext |
getContext()
Returns the associated intermediate format context object.
|
IFDocumentNavigationHandler |
getDocumentNavigationHandler()
Returns a document navigation handler if this feature is supported.
|
StructureTreeEventHandler |
getStructureTreeEventHandler() |
FOUserAgent |
getUserAgent()
Returns the associated user agent.
|
void |
setDocumentLocale(Locale locale) |
void |
startDocument()
Indicates the start of a document.
|
void |
startDocumentHeader()
Indicates the start of the document header.
|
void |
startDocumentTrailer()
Indicates the start of the document trailer.
|
void |
startPageHeader()
Indicates the start of the page header.
|
void |
startPageTrailer()
Indicates the start of the page trailer.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitendDocument, endPage, endPageContent, endPageSequence, getConfigurator, getFontInfo, getMimeType, handleExtensionObject, setDefaultFontInfo, setFontInfo, setResult, startPage, startPageContent, startPageSequence, supportsPagesOutOfOrderprotected AbstractIFDocumentHandler(IFContext context)
public IFContext getContext()
getContext in interface IFDocumentHandlerpublic FOUserAgent getUserAgent()
public StructureTreeEventHandler getStructureTreeEventHandler()
getStructureTreeEventHandler in interface IFDocumentHandlerpublic IFDocumentNavigationHandler getDocumentNavigationHandler()
getDocumentNavigationHandler in interface IFDocumentHandlerpublic void startDocument()
throws IFException
startDocument in interface IFDocumentHandlerIFException - if an error occurs while handling this eventpublic void setDocumentLocale(Locale locale)
setDocumentLocale in interface IFDocumentHandlerlocale - Locale of the document.public void startDocumentHeader()
throws IFException
IFDocumentHandler.startDocument() method. Extensions sent to this painter between
IFDocumentHandler.startDocumentHeader() and IFDocumentHandler.endDocumentHeader() apply to the document as
a whole (like document metadata).startDocumentHeader in interface IFDocumentHandlerIFException - if an error occurs while handling this eventpublic void endDocumentHeader()
throws IFException
endDocumentHeader in interface IFDocumentHandlerIFException - if an error occurs while handling this eventpublic void startDocumentTrailer()
throws IFException
IFDocumentHandler.startDocumentTrailer() and IFDocumentHandler.endDocumentTrailer() apply to the document as
a whole and is used for document-level content that is only known after all pages have
been rendered (like named destinations or the bookmark tree).startDocumentTrailer in interface IFDocumentHandlerIFException - if an error occurs while handling this eventpublic void endDocumentTrailer()
throws IFException
IFDocumentHandler.endDocument() method.endDocumentTrailer in interface IFDocumentHandlerIFException - if an error occurs while handling this eventpublic void startPageHeader()
throws IFException
startPageHeader in interface IFDocumentHandlerIFException - if an error occurs while handling this eventpublic void endPageHeader()
throws IFException
endPageHeader in interface IFDocumentHandlerIFException - if an error occurs while handling this eventpublic void startPageTrailer()
throws IFException
startPageTrailer in interface IFDocumentHandlerIFException - if an error occurs while handling this eventpublic void endPageTrailer()
throws IFException
endPageTrailer in interface IFDocumentHandlerIFException - if an error occurs while handling this eventCopyright © 2023 Apache Software Foundation. All rights reserved.