public class PdfBoxRenderer extends Object implements Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup()
Deprecated.
Use close instead.
|
void |
close()
Cleanup thread resources.
|
void |
createPDF()
Creates a PDF with setup specified by builder.
|
void |
createPDF(OutputStream os)
Deprecated.
Use builder to set output stream.
|
void |
createPDF(OutputStream os,
boolean finish)
Deprecated.
Use builder to set output stream.
|
void |
createPDF(OutputStream os,
boolean finish,
int initialPageNo)
Deprecated.
Use builder to set output stream.
NOTE: Caller is responsible for cleaning up the OutputStream.
|
void |
createPDFWithoutClosing()
Creates a PDF with setup specified by builder.
|
void |
exportText(Writer writer)
Deprecated.
unused and untested.
|
List |
findPagePositionsByID(Pattern pattern) |
void |
finishPDF()
Deprecated.
|
Document |
getDocument() |
float |
getDotsPerPoint() |
PdfBoxFontResolver |
getFontResolver()
Get the PDF-BOX font resolver.
|
PDFCreationListener |
getListener() |
PdfBoxOutputDevice |
getOutputDevice() |
org.apache.pdfbox.pdmodel.PDDocument |
getPdfDocument()
Returns the PDDocument or null if it has been closed.
|
float |
getPDFVersion() |
BlockBox |
getRootBox() |
SharedContext |
getSharedContext() |
void |
layout() |
void |
setListener(PDFCreationListener listener) |
void |
writeNextDocument()
Deprecated.
Doubt this still works as untested.
|
void |
writeNextDocument(int initialPageNo)
Deprecated.
Doubt this still works as untested.
|
public Document getDocument()
public org.apache.pdfbox.pdmodel.PDDocument getPdfDocument()
public PdfBoxFontResolver getFontResolver()
public float getPDFVersion()
public void layout()
public void createPDF()
throws IOException
IOExceptionpublic void createPDFWithoutClosing()
throws IOException
IOException@Deprecated public void createPDF(OutputStream os) throws IOException
os - IOException@Deprecated public void writeNextDocument() throws IOException
IOException@Deprecated public void writeNextDocument(int initialPageNo) throws IOException
IOException@Deprecated public void finishPDF() throws IOException
IOException@Deprecated public void createPDF(OutputStream os, boolean finish) throws IOException
IOException@Deprecated public void createPDF(OutputStream os, boolean finish, int initialPageNo) throws IOException
IOExceptionpublic PdfBoxOutputDevice getOutputDevice()
public SharedContext getSharedContext()
@Deprecated public void exportText(Writer writer) throws IOException
writer - IOExceptionpublic BlockBox getRootBox()
public float getDotsPerPoint()
public PDFCreationListener getListener()
public void setListener(PDFCreationListener listener)
@Deprecated public void cleanup()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2018. All rights reserved.