import org.apache.fop.apps.MimeConstants;
import org.apache.fop.fo.extensions.xmp.XMPMetadata;
import org.apache.fop.pdf.PDFAnnotList;
+import org.apache.fop.pdf.PDFArray;
import org.apache.fop.pdf.PDFDocument;
import org.apache.fop.pdf.PDFPage;
import org.apache.fop.pdf.PDFResources;
private final PDFDocumentNavigationHandler documentNavigationHandler
= new PDFDocumentNavigationHandler(this);
+ private Map<Integer, PDFArray> pageNumbers = new HashMap<Integer, PDFArray>();
+
/**
* Default constructor.
*/
}
return structureTreeBuilder;
}
+
+ public Map<Integer, PDFArray> getPageNumbers() {
+ return pageNumbers;
+ }
}
PDFRenderingContext pdfContext = new PDFRenderingContext(
getUserAgent(), generator, getDocumentHandler().getCurrentPage(), getFontInfo());
pdfContext.setMarkedContentInfo(imageMCI);
+ pdfContext.setPageNumbers(getDocumentHandler().getPageNumbers());
return pdfContext;
}
package org.apache.fop.render.pdf;
+import java.util.Map;
+
import org.apache.xmlgraphics.util.MimeConstants;
import org.apache.fop.apps.FOUserAgent;
import org.apache.fop.fonts.FontInfo;
+import org.apache.fop.pdf.PDFArray;
import org.apache.fop.pdf.PDFPage;
import org.apache.fop.render.AbstractRenderingContext;
import org.apache.fop.render.pdf.PDFLogicalStructureHandler.MarkedContentInfo;
private FontInfo fontInfo;
private PDFPage page;
private MarkedContentInfo mci;
+ private Map<Integer, PDFArray> pageNumbers;
/**
* Main constructor.
MarkedContentInfo getMarkedContentInfo() {
return mci;
}
+
+ public Map<Integer, PDFArray> getPageNumbers() {
+ return pageNumbers;
+ }
+
+ public void setPageNumbers(Map<Integer, PDFArray> pageNumbers) {
+ this.pageNumbers = pageNumbers;
+ }
}