|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pz.platypus.plugin.pdf.commands.PdfPageSize
public class PdfPageSize
Handle changes in page size when specified as a string ( LETTER, LEGAL, A4, etc.)
Field Summary | |
---|---|
private java.lang.String |
root
|
Constructor Summary | |
---|---|
PdfPageSize()
|
Method Summary | |
---|---|
(package private) java.util.HashMap<java.lang.String,com.lowagie.text.Rectangle> |
createPageSizeLookupTable()
Load the page names and the corresponding iText rectangles into a hash table. |
void |
flushExistingText(PdfData pdf)
Current text must be flushed to PDF file using the current page size before the new page size takes effect. |
java.lang.String |
getRoot()
get the root of the command. |
int |
process(IOutputContext context,
Token tok,
int tokNum)
method for processing this command in the output plugin. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.lang.String root
Constructor Detail |
---|
public PdfPageSize()
Method Detail |
---|
public int process(IOutputContext context, Token tok, int tokNum)
IOutputCommand
process
in interface IOutputCommand
context
- the context/state of the output documenttok
- the command token as found in the token streamtokNum
- the number of the token in the token listpublic void flushExistingText(PdfData pdf)
pdf
- java.util.HashMap<java.lang.String,com.lowagie.text.Rectangle> createPageSizeLookupTable()
public java.lang.String getRoot()
IOutputCommand
getRoot
in interface IOutputCommand
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |