public class PdfMaker extends Object implements IPointDocument
Modifier and Type | Class and Description |
---|---|
static class |
PdfMaker.Image |
static class |
PdfMaker.Page |
static class |
PdfMaker.PageCanvas |
static class |
PdfMaker.PdfDictionary |
static class |
PdfMaker.PdfIOException |
static class |
PdfMaker.PdfObject |
static class |
PdfMaker.PdfOutputStream |
static class |
PdfMaker.Stream |
Modifier and Type | Field and Description |
---|---|
PdfMaker.PdfDictionary |
info |
eve.fx.points.PdfMaker.Node |
pages |
PdfMaker.PdfDictionary |
root |
PdfMaker.PdfDictionary |
trailer |
String |
version |
Constructor and Description |
---|
PdfMaker() |
Modifier and Type | Method and Description |
---|---|
String |
addFont(PointFont f)
Add a Font if it was not yet added.
|
String |
addFont(PointFont f,
PointFontDescriptor fd)
Add a Font if it was not yet added.
|
String |
addFontDirectly(PointFontDescriptor d)
Add a full font descriptor and return a reference to it.
|
String |
addImageDirectly(ImageData id)
Add a full font descriptor and return a reference to it.
|
protected PointFontDescriptor |
createFontDescriptor(PointFont f)
Create a PointFontDescriptor for the specified font.
|
void |
finish(boolean closeOutput) |
String |
getFont(PointFont f)
Get the reference to the specified Font if it has been added.
|
PointFontDescriptor |
getFontDescriptor(PointFont f,
boolean create)
Get or create the PointFontDescriptor for the specified font.
|
String |
getImage(ImageData im) |
PdfMaker.PdfOutputStream |
getStream() |
PdfMaker.Page |
newPage(PageFormat pf) |
void |
open(OutputStream dest) |
void |
prepareFont(PointFont f,
PointFontDescriptor fd)
This prepares a PointFont for use with a specific PointFontDescriptor,
but does not write it to
the file unless it is actually used.
|
void |
setCharacterRange(int firstChar,
int lastChar)
Set the character range that documents will be using.
|
void |
startDocument() |
void |
write(PdfMaker.PdfObject obj) |
void |
writeXref() |
public String version
public PdfMaker.PdfDictionary info
public PdfMaker.PdfDictionary root
public PdfMaker.PdfDictionary trailer
public eve.fx.points.PdfMaker.Node pages
public PdfMaker.PdfOutputStream getStream()
public void write(PdfMaker.PdfObject obj) throws IOException
IOException
public void startDocument() throws IOException
IOException
public PdfMaker.Page newPage(PageFormat pf) throws IOException
IOException
public void open(OutputStream dest) throws IOException
IOException
public void writeXref() throws IOException
IOException
public void finish(boolean closeOutput) throws IOException
IOException
public String addFontDirectly(PointFontDescriptor d) throws IOException
d
- the non-null PointFontDescriptor. This will be
resolved before being added.IOException
public String addImageDirectly(ImageData id) throws IOException
d
- IOException
public void setCharacterRange(int firstChar, int lastChar)
firstChar
- the first character in the range.lastChar
- the last character in the range.public String getImage(ImageData im) throws IOException
IOException
public String getFont(PointFont f)
f
- the Font.public PointFontDescriptor getFontDescriptor(PointFont f, boolean create) throws IOException
f
- the Font to look up.create
- true to create and add one if not yet added.IOException
protected PointFontDescriptor createFontDescriptor(PointFont f)
f
- the Font to create the descriptor for.public void prepareFont(PointFont f, PointFontDescriptor fd)
prepareFont
in interface IPointDocument
f
- the PointFont.fd
- a non-null PointFontDescriptor. This must NOT be null
because there is no point in doing this. If there is no special
PointFontDescriptor then when addFont() is used later it will simply
create one.public String addFont(PointFont f, PointFontDescriptor fd) throws IOException
f
- the Font to add.fd
- an optional PointFontDescriptor for the Font. If it is null
the one specified, if any, by prepareFont() is used. If that is still null
a new one will be created according to the parameters of this PdfMaker.IOException
public String addFont(PointFont f) throws IOException
f
- the Font to add.IOException