| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private byte[] | |
| private byte | |
| private Document | |
| private final List | |
| private final float | |
| private final int | |
| private PDFCreationListener | |
| private SVGDrawer | |
| private OutputStream | |
| private final PdfBoxOutputDevice | |
| private PageSupplier | |
| private PdfRendererBuilder. | |
| private PDDocument | |
| private PDEncryption | |
| private boolean | |
| private float | |
| private String | |
| private BidiReorderer | |
| private BlockBox | |
| private final SharedContext | |
| private BidiSplitterFactory | |
| private SVGDrawer | |
| private boolean | |
| private final boolean | |
| private static final int | |
| private static final float | |
| private static final int | |
| private final Closeable | |
| private final Comparator | PAGE_POSITION_COMPARATOR
Start page to end page and then top to bottom on page. |
| Access | Constructor and Description |
|---|---|
| pack-priv | PdfBoxRenderer(BaseDocument doc, UnicodeImplementation unicode, PageDimensions pageSize, PdfRendererBuilderState state, Closeable diagnosticConsumer)
This method is constantly changing as options are added to the builder. |
| Modifier and Type | Method and Description |
|---|---|
| private void | addPdfASchema(PDDocument document, PdfRendererBuilder.
|
| public void | |
| public void | |
| private <T> PagePosition | |
| public void | |
| public void | |
| public void | |
| public void | createPDF(OutputStream os, boolean finish, int initialPageNo)
Deprecated
Use builder to set output stream.
NOTE: Caller is responsible for cleaning up the OutputStream.
|
| private XMPSchema | |
| private XMPSchema | |
| private void | |
| public void | |
| private String | |
| public void | |
| private int | findEndPage(RenderingContext c, Layer layer, List<PageBox> pages)
Returns the end page number for a layer. |
| public List | |
| private int | findStartPage(RenderingContext c, Layer layer, List<PageBox> pages)
Returns the start page for a layer. |
| public void | |
| private void | |
| private void | |
| private void | |
| public Document | |
| public float | |
| private static Element | |
| public PdfBoxFontResolver | |
| private Rectangle | |
| public float | getLastContentBottom()
Returns the bottom Y postion in bottom-up PDF units on the last page of content Warning NOT transform aware. |
| private List | |
| public List | |
| public List | |
| public PDFCreationListener | |
| public PdfBoxOutputDevice | |
| public PDDocument | |
| public float | |
| public BlockBox | |
| public SharedContext | |
| public void | |
| private Document | |
| private LayoutContext | |
| private RenderingContext | |
| private void | |
| private void | paintPageFast(RenderingContext c, PageBox page, DisplayListContainer.
|
| public PDPage | requestPage(PDDocument
PDDocument the page belongs toWidth of page in PDF points (1/72 inch) pageWidth, float Height of page in PDF points pageHeight, int Number of the layout page - this may differ from the PDF document page if there are previous shadow pages. pageNumber, int Number of the shadow-page or -1 if on a main page. shadowPageNumber)Implements com. Called whenever a page or shadow-page is needed. |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| public void | |
| private String | |
| public void | |
| public void | |
| private void | |
| private void |
| _colorProfile | back to summary |
|---|---|
| private byte[] _colorProfile | |
| _defaultTextDirection | back to summary |
|---|---|
| private byte _defaultTextDirection | |
| _doc | back to summary |
|---|---|
| private Document _doc | |
| _domMutators | back to summary |
|---|---|
| private final List<FSDOMMutator> _domMutators | |
| _dotsPerPoint | back to summary |
|---|---|
| private final float _dotsPerPoint | |
| _initialPageNumber | back to summary |
|---|---|
| private final int _initialPageNumber | |
| _listener | back to summary |
|---|---|
| private PDFCreationListener _listener | |
| _mathmlImpl | back to summary |
|---|---|
| private SVGDrawer _mathmlImpl | |
| _os | back to summary |
|---|---|
| private OutputStream _os | |
| _outputDevice | back to summary |
|---|---|
| private final PdfBoxOutputDevice _outputDevice | |
| _pageSupplier | back to summary |
|---|---|
| private PageSupplier _pageSupplier | |
| _pdfAConformance | back to summary |
|---|---|
| private PdfRendererBuilder. | |
| _pdfDoc | back to summary |
|---|---|
| private PDDocument _pdfDoc | |
| _pdfEncryption | back to summary |
|---|---|
| private PDEncryption _pdfEncryption | |
| _pdfUaConformance | back to summary |
|---|---|
| private boolean _pdfUaConformance | |
| _pdfVersion | back to summary |
|---|---|
| private float _pdfVersion | |
| _producer | back to summary |
|---|---|
| private String _producer | |
| _reorderer | back to summary |
|---|---|
| private BidiReorderer _reorderer | |
| _root | back to summary |
|---|---|
| private BlockBox _root | |
| _sharedContext | back to summary |
|---|---|
| private final SharedContext _sharedContext | |
| _splitterFactory | back to summary |
|---|---|
| private BidiSplitterFactory _splitterFactory | |
| _svgImpl | back to summary |
|---|---|
| private SVGDrawer _svgImpl | |
| _testMode | back to summary |
|---|---|
| private boolean _testMode | |
| _useFastMode | back to summary |
|---|---|
| private final boolean _useFastMode | |
| DEFAULT_DOTS_PER_PIXEL | back to summary |
|---|---|
| private static final int DEFAULT_DOTS_PER_PIXEL | |
| DEFAULT_DOTS_PER_POINT | back to summary |
|---|---|
| private static final float DEFAULT_DOTS_PER_POINT | |
| DEFAULT_PDF_POINTS_PER_INCH | back to summary |
|---|---|
| private static final int DEFAULT_PDF_POINTS_PER_INCH | |
| diagnosticConsumer | back to summary |
|---|---|
| private final Closeable diagnosticConsumer | |
| PAGE_POSITION_COMPARATOR | back to summary |
|---|---|
| private final Comparator<PagePosition<?>> PAGE_POSITION_COMPARATOR Start page to end page and then top to bottom on page. | |
| PdfBoxRenderer | back to summary |
|---|---|
| pack-priv PdfBoxRenderer(BaseDocument doc, UnicodeImplementation unicode, PageDimensions pageSize, PdfRendererBuilderState state, Closeable diagnosticConsumer) This method is constantly changing as options are added to the builder. | |
| addPdfASchema | back to summary |
|---|---|
| private void addPdfASchema(PDDocument document, PdfRendererBuilder. | |
| cleanup | back to summary |
|---|---|
| public void cleanup()
Deprecated Use close instead.
| |
| close | back to summary |
|---|---|
| public void close() Implements java. Cleanup thread resources. MUST be called after finishing with the renderer.
| |
| createPagePosition | back to summary |
|---|---|
| private <T> PagePosition | |
| createPDF | back to summary |
|---|---|
| public void createPDF() throws IOException Creates a PDF with setup specified by builder. On finsihing or failing, saves (if successful) and closes the PDF document. | |
| createPDF | back to summary |
|---|---|
| public void createPDF(OutputStream os) throws IOException
Deprecated Use builder to set output stream.
| |
| createPDF | back to summary |
|---|---|
| public void createPDF(OutputStream os, boolean finish) throws IOException
Deprecated Use builder to set output stream.
| |
| createPDF | back to summary |
|---|---|
| public void createPDF(OutputStream os, boolean finish, int initialPageNo) throws IOException
Deprecated Use builder to set output stream. NOTE: Caller is responsible for cleaning up the OutputStream.
| |
| createPdfaProperty | back to summary |
|---|---|
| private XMPSchema createPdfaProperty(String category, String description, String name, String valueType) | |
| createPdfaSchema | back to summary |
|---|---|
| private XMPSchema createPdfaSchema(String schema, String namespace, String prefix, List<XMPSchema> properties) | |
| createPdfFast | back to summary |
|---|---|
| private void createPdfFast(boolean finish, int initialPageNo) throws IOException Go fast! | |
| createPDFWithoutClosing | back to summary |
|---|---|
| public void createPDFWithoutClosing() throws IOException Creates a PDF with setup specified by builder. On finsihing or failing, DOES NOT save or close the PDF document. Useful for post-processing the PDDocument which can be retrieved by getPdfDocument(). | |
| createXPacket | back to summary |
|---|---|
| private String createXPacket(String metadata) | |
| exportText | back to summary |
|---|---|
| public void exportText(Writer writer) throws IOException
Deprecated unused and untested.
| |
| findEndPage | back to summary |
|---|---|
| private int findEndPage(RenderingContext c, Layer layer, List<PageBox> pages) Returns the end page number for a layer. Transform aware. | |
| findPagePositionsByID | back to summary |
|---|---|
| public List | |
| findStartPage | back to summary |
|---|---|
| private int findStartPage(RenderingContext c, Layer layer, List<PageBox> pages) Returns the start page for a layer. Transform aware. | |
| finishPDF | back to summary |
|---|---|
| public void finishPDF() throws IOException
Deprecated
| |
| fireOnClose | back to summary |
|---|---|
| private void fireOnClose() | |
| firePreOpen | back to summary |
|---|---|
| private void firePreOpen() | |
| firePreWrite | back to summary |
|---|---|
| private void firePreWrite(int pageCount) | |
| getDocument | back to summary |
|---|---|
| public Document getDocument() | |
| getDotsPerPoint | back to summary |
|---|---|
| public float getDotsPerPoint() | |
| getFirstChildElement | back to summary |
|---|---|
| private static Element getFirstChildElement(Element element) | |
| getFontResolver | back to summary |
|---|---|
| public PdfBoxFontResolver getFontResolver() Get the PDF-BOX font resolver. Can be used to add fonts in code. | |
| getInitialExtents | back to summary |
|---|---|
| private Rectangle getInitialExtents(LayoutContext c) | |
| getLastContentBottom | back to summary |
|---|---|
| public float getLastContentBottom() Returns the bottom Y postion in bottom-up PDF units on the last page of content Warning NOT transform aware. | |
| getLayerPagePositions | back to summary |
|---|---|
| private List | |
| getLayerPositions | back to summary |
|---|---|
| public List Returns a list of page positions for a single layer.
The page positions are sorted from first page to last and then top to bottom.
The page position values are in bottom-up PDF units.
Compare to Warning NOT transform aware. A transformed layer will return page positions that are not correct. | |
| getLayersPositions | back to summary |
|---|---|
| public List Returns a list of page positions for all layers in the document. The page positions are sorted from first page to last and then top to bottom. The page position values are in bottom-up PDF units Warning NOT transform aware. Transformed layers will return page positions that are not correct. | |
| getListener | back to summary |
|---|---|
| public PDFCreationListener getListener() | |
| getOutputDevice | back to summary |
|---|---|
| public PdfBoxOutputDevice getOutputDevice() | |
| getPdfDocument | back to summary |
|---|---|
| public PDDocument getPdfDocument() Returns the PDDocument or null if it has been closed. | |
| getPDFVersion | back to summary |
|---|---|
| public float getPDFVersion() | |
| getRootBox | back to summary |
|---|---|
| public BlockBox getRootBox() | |
| getSharedContext | back to summary |
|---|---|
| public SharedContext getSharedContext() | |
| layout | back to summary |
|---|---|
| public void layout() | |
| loadDocument | back to summary |
|---|---|
| private Document loadDocument(String uri) | |
| newLayoutContext | back to summary |
|---|---|
| private LayoutContext newLayoutContext() | |
| newRenderingContext | back to summary |
|---|---|
| private RenderingContext newRenderingContext() | |
| paintPage | back to summary |
|---|---|
| private void paintPage(RenderingContext c, PageBox page) | |
| paintPageFast | back to summary |
|---|---|
| private void paintPageFast(RenderingContext c, PageBox page, DisplayListContainer. | |
| requestPage | back to summary |
|---|---|
| public PDPage requestPage(PDDocument doc, float pageWidth, float pageHeight, int pageNumber, int shadowPageNumber) Implements com. Doc from com. Called whenever a page or shadow-page is needed.
| |
| setDidValues | back to summary |
|---|---|
| private void setDidValues(PDDocument doc) | |
| setDocumentFromStringP | back to summary |
|---|---|
| private void setDocumentFromStringP(String content, String baseUrl) | |
| setDocumentP | back to summary |
|---|---|
| private void setDocumentP(String uri) | |
| setDocumentP | back to summary |
|---|---|
| private void setDocumentP(Document doc, String url) | |
| setDocumentP | back to summary |
|---|---|
| private void setDocumentP(File file) throws IOException | |
| setDocumentP | back to summary |
|---|---|
| private void setDocumentP(Document doc, String url, NamespaceHandler nsh) | |
| setListener | back to summary |
|---|---|
| public void setListener(PDFCreationListener listener) | |
| stringfyMetadata | back to summary |
|---|---|
| private String stringfyMetadata(Element element) | |
| writeNextDocument | back to summary |
|---|---|
| public void writeNextDocument() throws IOException
Deprecated Doubt this still works as untested.
| |
| writeNextDocument | back to summary |
|---|---|
| public void writeNextDocument(int initialPageNo) throws IOException
Deprecated Doubt this still works as untested.
| |
| writePDF | back to summary |
|---|---|
| private void writePDF(List<PageBox> pages, RenderingContext c, Rectangle2D firstPageSize, PDDocument doc) throws IOException | |
| writePDFFast | back to summary |
|---|---|
| private void writePDFFast(List<PageBox> pages, RenderingContext c, Rectangle2D firstPageSize, PDDocument doc) throws IOException | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | isActive(Element
PARAM e)Implements com. Gets the active attribute of the UserInterface object |
| public boolean | isFocus(Element
PARAM e)Implements com. Gets the focus attribute of the UserInterface object |
| public boolean | isHover(Element
PARAM e)Implements com. Gets the hover attribute of the UserInterface object |
| NullUserInterface | back to summary |
|---|---|
| private NullUserInterface() | |
| isActive | back to summary |
|---|---|
| public boolean isActive(Element e) Implements com. Doc from com. Gets the active attribute of the UserInterface object
| |
| isFocus | back to summary |
|---|---|
| public boolean isFocus(Element e) Implements com. Doc from com. Gets the focus attribute of the UserInterface object
| |
| isHover | back to summary |
|---|---|
| public boolean isHover(Element e) Implements com. Doc from com. Gets the hover attribute of the UserInterface object
| |