public class PdfBoxRenderer extends Object
| Constructor and Description |
|---|
PdfBoxRenderer(boolean testMode)
Deprecated.
Please use the builder.
|
PdfBoxRenderer(float dotsPerPoint,
int dotsPerPixel,
boolean useSubsets,
boolean testMode,
HttpStreamFactory factory,
FSUriResolver _resolver,
FSCache _cache,
SVGDrawer svgImpl)
Deprecated.
Please use the builder.
|
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup() |
void |
createPDF() |
void |
createPDF(OutputStream os) |
void |
createPDF(OutputStream os,
boolean finish) |
void |
createPDF(OutputStream os,
boolean finish,
int initialPageNo)
NOTE: Caller is responsible for cleaning up the OutputStream if
something goes wrong.
|
void |
exportText(Writer writer) |
List |
findPagePositionsByID(Pattern pattern) |
void |
finishPDF() |
Document |
getDocument() |
float |
getDotsPerPoint() |
PdfBoxFontResolver |
getFontResolver()
Get the PDF-BOX font resolver.
|
PDFCreationListener |
getListener() |
PdfBoxOutputDevice |
getOutputDevice() |
org.apache.pdfbox.pdmodel.PDDocument |
getPdfDocument() |
float |
getPDFVersion() |
BlockBox |
getRootBox() |
SharedContext |
getSharedContext() |
void |
layout() |
void |
setBidiReorderer(BidiReorderer reorderer)
Deprecated.
Use builder instead.
|
void |
setBidiSplitter(BidiSplitterFactory splitterFactory)
Deprecated.
Use builder instead.
|
void |
setDefaultTextDirection(boolean rtl)
Deprecated.
Use builder instead.
|
void |
setDocument(Document doc,
String url)
Deprecated.
Use builder instead.
|
void |
setDocument(Document doc,
String url,
NamespaceHandler nsh)
Deprecated.
Use builder instead.
|
void |
setDocument(File file)
Deprecated.
Use builder instead.
|
void |
setDocument(String uri)
Deprecated.
Use builder instead.
|
void |
setDocumentFromString(String content)
Deprecated.
Use builder instead.
|
void |
setDocumentFromString(String content,
String baseUrl)
Deprecated.
Use builder instead.
|
void |
setListener(PDFCreationListener listener) |
void |
setPDFVersion(float v)
Deprecated.
Use builder instead.
|
void |
writeNextDocument() |
void |
writeNextDocument(int initialPageNo) |
@Deprecated public PdfBoxRenderer(boolean testMode)
testMode - @Deprecated public PdfBoxRenderer(float dotsPerPoint, int dotsPerPixel, boolean useSubsets, boolean testMode, HttpStreamFactory factory, FSUriResolver _resolver, FSCache _cache, SVGDrawer svgImpl)
dotsPerPoint - dotsPerPixel - useSubsets - testMode - factory - _resolver - _cache - svgImpl - public Document getDocument()
public org.apache.pdfbox.pdmodel.PDDocument getPdfDocument()
@Deprecated public void setBidiSplitter(BidiSplitterFactory splitterFactory)
splitterFactory - @Deprecated public void setBidiReorderer(BidiReorderer reorderer)
reorderer - @Deprecated public void setDefaultTextDirection(boolean rtl)
rtl - public PdfBoxFontResolver getFontResolver()
@Deprecated public void setDocument(String uri)
@Deprecated public void setDocument(Document doc, String url)
@Deprecated public void setDocument(File file) throws IOException
IOException@Deprecated public void setDocumentFromString(String content)
@Deprecated public void setDocumentFromString(String content, String baseUrl)
@Deprecated public void setDocument(Document doc, String url, NamespaceHandler nsh)
@Deprecated public void setPDFVersion(float v)
v - public float getPDFVersion()
public void layout()
public void createPDF()
throws IOException
IOExceptionpublic void createPDF(OutputStream os) throws IOException
IOExceptionpublic void writeNextDocument()
throws IOException
IOExceptionpublic void writeNextDocument(int initialPageNo)
throws IOException
IOExceptionpublic void finishPDF()
throws IOException
IOExceptionpublic void createPDF(OutputStream os, boolean finish) throws IOException
IOExceptionpublic void createPDF(OutputStream os, boolean finish, int initialPageNo) throws IOException
IOExceptionpublic PdfBoxOutputDevice getOutputDevice()
public SharedContext getSharedContext()
public void exportText(Writer writer) throws IOException
IOExceptionpublic BlockBox getRootBox()
public float getDotsPerPoint()
public PDFCreationListener getListener()
public void setListener(PDFCreationListener listener)
public void cleanup()
Copyright © 2017. All rights reserved.