import org.apache.fop.render.intermediate.extensions.Bookmark;
import org.apache.fop.render.intermediate.extensions.BookmarkTree;
import org.apache.fop.render.intermediate.extensions.GoToXYAction;
+import org.apache.fop.render.intermediate.extensions.NamedDestination;
import org.apache.fop.util.CharUtilities;
/**
}
}
+ private void renderNamedDestination(NamedDestination destination) {
+ PDFAction action = getAction(destination.getAction());
+ pdfDoc.getFactory().makeDestination(
+ destination.getName(), action.makeReference());
+ }
+
private PDFAction getAction(AbstractAction action) {
if (action instanceof GoToXYAction) {
GoToXYAction a = (GoToXYAction)action;
pdfUtil.renderXMPMetadata(wrapper);
} else if (extension instanceof BookmarkTree) {
renderBookmarkTree((BookmarkTree)extension);
+ } else if (extension instanceof NamedDestination) {
+ renderNamedDestination((NamedDestination)extension);
} else {
log.warn("Don't know how to handle extension object: "
+ extension + " (" + extension.getClass().getName());