Package org.apache.fop.render.pdf
Class PDFDocumentNavigationHandler
java.lang.Object
org.apache.fop.render.pdf.PDFDocumentNavigationHandler
- All Implemented Interfaces:
IFDocumentNavigationHandler
Implementation of the
IFDocumentNavigationHandler
interface for PDF output.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map
private final PDFDocumentHandler
private final Map
-
Constructor Summary
ConstructorsConstructorDescriptionPDFDocumentNavigationHandler
(PDFDocumentHandler documentHandler) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addResolvedAction
(AbstractAction action) void
commit()
Commits all pending elements to the PDF document.private PDFAction
getAction
(AbstractAction action) private String
getCompleteID
(AbstractAction action) int
(package private) PDFDocument
void
private void
renderBookmark
(Bookmark bookmark, PDFOutline parent) void
Render the bookmark tree.void
renderLink
(Link link) void
renderNamedDestination
(NamedDestination destination) Renders a named destination.private void
updateTargetLocation
(PDFGoTo pdfGoTo, GoToXYAction action)
-
Field Details
-
documentHandler
-
incompleteActions
-
completeActions
-
-
Constructor Details
-
PDFDocumentNavigationHandler
Default constructor.- Parameters:
documentHandler
- the parent document handler
-
-
Method Details
-
getPDFDoc
PDFDocument getPDFDoc() -
renderNamedDestination
Renders a named destination.- Specified by:
renderNamedDestination
in interfaceIFDocumentNavigationHandler
- Parameters:
destination
- the named destination- Throws:
IFException
- if an error occurs while handling this event
-
renderBookmarkTree
Render the bookmark tree.- Specified by:
renderBookmarkTree
in interfaceIFDocumentNavigationHandler
- Parameters:
tree
- the bookmark tree- Throws:
IFException
- if an error occurs while handling this event
-
renderBookmark
- Throws:
IFException
-
renderLink
- Specified by:
renderLink
in interfaceIFDocumentNavigationHandler
- Parameters:
link
- a link- Throws:
IFException
- of not caught
-
commit
public void commit()Commits all pending elements to the PDF document. -
addResolvedAction
- Specified by:
addResolvedAction
in interfaceIFDocumentNavigationHandler
- Parameters:
action
- an action- Throws:
IFException
- of not caught
-
getPageIndex
public int getPageIndex()- Specified by:
getPageIndex
in interfaceIFDocumentNavigationHandler
-
getAction
- Throws:
IFException
-
updateTargetLocation
- Throws:
IFException
-
getCompleteID
-
registerIncompleteActions
public void registerIncompleteActions()
-