|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.backend.documentWriter.pdf.PdfDocumentWriter
public class PdfDocumentWriter
Implementation of a pdf document writer.
| Field Summary | |
|---|---|
static int |
HEIGHT_A4_BP
height A4 in bp. |
static int |
WIDTH_A4_BP
width A4 in bp. |
| Constructor Summary | |
|---|---|
PdfDocumentWriter(Configuration cfg,
DocumentWriterOptions options)
Creates a new object. |
|
| Method Summary | |
|---|---|
void |
close()
This method is invoked upon the end of the processing. |
PdfAnnotation |
getAnnotation(RuleNode node,
java.lang.String annotation)
Factory method to construct a PdfAnnotation node. |
java.lang.String |
getExtension()
Getter for the extension associated with this kind of output. |
PdfObject |
getObject(java.lang.String attr,
boolean isStream,
java.lang.String text)
Factory method to construct a PdfObject node. |
PdfXForm |
getXForm(java.lang.String attr,
java.lang.String resources,
NodeList list)
Factory method to construct a PdfXForm node. |
PdfRefXImage |
getXImage(java.lang.String resource,
RuleNode rule,
java.lang.String attr,
long page,
boolean immediate)
Factory method to construct a PdfXImage node. |
void |
pdfcatalog(java.lang.String text,
ActionSpec action)
Add some material to the PDF catalog. |
java.lang.String |
pdffontname(Font font)
Retrieve the font name for a given font. |
long |
pdffontobjnum(Font font)
Retrieve the font object number for a given font. |
void |
pdfincludechars(Font font,
java.lang.String text)
Include a set of characters from a font into the output regardless of whether they are used or not. |
void |
pdfinfo(java.lang.String text)
This method inserts the text to the info section. |
long |
pdflastannot()
Retrieve the object index of the last annotation. |
long |
pdflastobj()
Retrieve the object index of the last object. |
long |
pdflastxform()
Retrieve the object index of the last XForm. |
long |
pdflastximage()
Retrieve the object index of the last XImage. |
void |
pdfnames(java.lang.String text)
This method inserts the text to /Names array. |
void |
pdfoutline(ActionSpec action,
long count,
java.lang.String text)
Insert some outline into the PDF output. |
void |
setOutputStream(java.io.OutputStream outStream)
Setter for the output stream. |
void |
setParameter(java.lang.String name,
java.lang.String value)
Setter for a named parameter. |
int |
shipout(Page p)
This is the entry point for the document writer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int WIDTH_A4_BP
public static final int HEIGHT_A4_BP
| Constructor Detail |
|---|
public PdfDocumentWriter(Configuration cfg,
DocumentWriterOptions options)
cfg - the configurationoptions - the options| Method Detail |
|---|
public void close()
throws DocumentWriterException
close in interface DocumentWriterDocumentWriterExceptionDocumentWriter.close()public java.lang.String getExtension()
getExtension in interface DocumentWriterDocumentWriter.getExtension()public void setOutputStream(java.io.OutputStream outStream)
setOutputStream in interface SingleDocumentStreamoutStream - the output streamSingleDocumentStream.setOutputStream(
java.io.OutputStream)
public void setParameter(java.lang.String name,
java.lang.String value)
setParameter in interface DocumentWritername - the name of the parametervalue - the value of the parameterDocumentWriter.setParameter(
java.lang.String, java.lang.String)
public int shipout(Page p)
throws DocumentWriterException
If the page is null then no page has to be shipped and 0
has to be returned.
shipout in interface DocumentWriterp - the page to send
DocumentWriterExceptionDocumentWriter.shipout(
org.extex.typesetter.type.page.Page)
public PdfAnnotation getAnnotation(RuleNode node,
java.lang.String annotation)
throws HelpingException
getAnnotation in interface PdftexSupportnode - the rule specification. Only the width height and depth are
relevant. Either of them can be null.annotation - the annotation text
HelpingException - in case of an errorPdftexSupport.getAnnotation(org.extex.typesetter.type.node.RuleNode,
java.lang.String)
public PdfObject getObject(java.lang.String attr,
boolean isStream,
java.lang.String text)
throws HelpingException
getObject in interface PdftexSupportattr - the attribute text. This can be nullisStream - boolean indicator to signal that a stream object or
file object is requestedtext - the object
HelpingException - in case of an errorPdftexSupport.getObject(java.lang.String,
boolean, java.lang.String)
public PdfRefXImage getXImage(java.lang.String resource,
RuleNode rule,
java.lang.String attr,
long page,
boolean immediate)
throws HelpingException
getXImage in interface PdftexSupportresource - the resource specificationrule - the rule specification. Only the width height and depth are
relevant. Either of them can be null.attr - the attribute text. This can be nullpage - the page numberimmediate - the indicator that the image should be put into the
PDF output without waiting for a reference
HelpingException - in case of an errorPdftexSupport.getXImage(java.lang.String,
org.extex.typesetter.type.node.RuleNode, java.lang.String, long,
boolean)
public void pdfcatalog(java.lang.String text,
ActionSpec action)
pdfcatalog in interface PdftexSupporttext - the text for the catalogaction - the action specification.
This parameter can be nullPdftexSupport.pdfcatalog(java.lang.String,
org.extex.pdf.api.action.ActionSpec)public java.lang.String pdffontname(Font font)
pdffontname in interface PdftexSupportfont - the font to query
PdftexSupport.pdffontname(org.extex.typesetter.tc.font.Font)public long pdffontobjnum(Font font)
pdffontobjnum in interface PdftexSupportfont - the font to query
PdftexSupport.pdffontobjnum(org.extex.typesetter.tc.font.Font)
public void pdfincludechars(Font font,
java.lang.String text)
pdfincludechars in interface PdftexSupportfont - the fonttext - the set of characters to includePdftexSupport.pdfincludechars(org.extex.typesetter.tc.font.Font,
java.lang.String)public void pdfinfo(java.lang.String text)
pdfinfo in interface PdftexSupporttext - the text to addPdftexSupport.pdfinfo(java.lang.String)public long pdflastannot()
pdflastannot in interface PdftexSupportPdftexSupport.pdflastannot()public long pdflastobj()
pdflastobj in interface PdftexSupportPdftexSupport.pdflastobj()public long pdflastxform()
pdflastxform in interface PdftexSupportPdftexSupport.pdflastxform()public long pdflastximage()
pdflastximage in interface PdftexSupportPdftexSupport.pdflastximage()public void pdfnames(java.lang.String text)
pdfnames in interface PdftexSupporttext - the text to addPdftexSupport.pdfnames(
java.lang.String)
public void pdfoutline(ActionSpec action,
long count,
java.lang.String text)
pdfoutline in interface PdftexSupportaction - the action specificationcount - the counttext - the textPdftexSupport.pdfoutline(
org.extex.pdf.api.action.ActionSpec, long,
java.lang.String)
public PdfXForm getXForm(java.lang.String attr,
java.lang.String resources,
NodeList list)
throws HelpingException
getXForm in interface PdftexSupportattr - the attribute text. This can be nullresources - the resources specificationlist - the content
HelpingException - in case of an errorPdftexSupport.getXForm(java.lang.String,
java.lang.String, org.extex.typesetter.type.NodeList)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||