|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mapfish.print.PDFUtils
public class PDFUtils
Some utility functions for iText.
| Field Summary | |
|---|---|
static org.apache.log4j.Logger |
LOGGER
|
| Constructor Summary | |
|---|---|
PDFUtils()
|
|
| Method Summary | |
|---|---|
static com.lowagie.text.pdf.PdfPTable |
buildTable(java.util.List<Block> items,
PJsonObject params,
RenderingContext context,
int nbColumns,
TableConfig tableConfig)
Creates a PDF table with the given items. |
static com.lowagie.text.pdf.PdfPCell |
createCell(PJsonObject params,
RenderingContext context,
Block block,
int row,
int col,
int nbRows,
int nbCols,
TableConfig tableConfig)
Create a PDF table cell with support for styling using the CellConfig stuff. |
static com.lowagie.text.Image |
createImage(RenderingContext context,
double maxWidth,
double maxHeight,
java.net.URI url,
float rotation)
|
static com.lowagie.text.Chunk |
createImageChunk(RenderingContext context,
double maxWidth,
double maxHeight,
java.net.URI url,
float rotation)
|
static com.lowagie.text.pdf.PdfPTable |
createPlaceholderTable(double width,
double height,
double spacingAfter,
ChunkDrawer drawer,
HorizontalAlign align,
PDFCustomBlocks customBlocks)
When we have to do some custom drawing in a block that is layed out by iText, we first give an empty table with the good dimensions to iText, then iText will call a callback with the actual position. |
static java.lang.String |
evalString(RenderingContext context,
PJsonObject params,
java.lang.String val)
Evaluates stuff like "toto ${titi}" |
static com.lowagie.text.Image |
getImage(RenderingContext context,
java.net.URI uri,
float w,
float h)
Gets an iText image with a cache that uses PdfTemplates to re-use the same bitmap content multiple times in order to reduce the file size. |
protected static com.lowagie.text.Image |
getImageDirect(RenderingContext context,
java.net.URI uri)
Gets an iText image. |
static com.lowagie.text.Phrase |
renderString(RenderingContext context,
PJsonObject params,
java.lang.String val,
com.lowagie.text.Font font)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final org.apache.log4j.Logger LOGGER
| Constructor Detail |
|---|
public PDFUtils()
| Method Detail |
|---|
public static com.lowagie.text.Image getImage(RenderingContext context,
java.net.URI uri,
float w,
float h)
throws java.io.IOException,
com.lowagie.text.DocumentException
java.io.IOException
com.lowagie.text.DocumentException
protected static com.lowagie.text.Image getImageDirect(RenderingContext context,
java.net.URI uri)
throws java.io.IOException,
com.lowagie.text.DocumentException
java.io.IOException
com.lowagie.text.DocumentException
public static com.lowagie.text.pdf.PdfPTable createPlaceholderTable(double width,
double height,
double spacingAfter,
ChunkDrawer drawer,
HorizontalAlign align,
PDFCustomBlocks customBlocks)
public static com.lowagie.text.Phrase renderString(RenderingContext context,
PJsonObject params,
java.lang.String val,
com.lowagie.text.Font font)
throws com.lowagie.text.BadElementException
com.lowagie.text.BadElementException
public static java.lang.String evalString(RenderingContext context,
PJsonObject params,
java.lang.String val)
public static com.lowagie.text.pdf.PdfPTable buildTable(java.util.List<Block> items,
PJsonObject params,
RenderingContext context,
int nbColumns,
TableConfig tableConfig)
throws com.lowagie.text.DocumentException
com.lowagie.text.DocumentException
public static com.lowagie.text.pdf.PdfPCell createCell(PJsonObject params,
RenderingContext context,
Block block,
int row,
int col,
int nbRows,
int nbCols,
TableConfig tableConfig)
throws com.lowagie.text.DocumentException
CellConfig stuff.
com.lowagie.text.DocumentException
public static com.lowagie.text.Chunk createImageChunk(RenderingContext context,
double maxWidth,
double maxHeight,
java.net.URI url,
float rotation)
throws com.lowagie.text.DocumentException
com.lowagie.text.DocumentException
public static com.lowagie.text.Image createImage(RenderingContext context,
double maxWidth,
double maxHeight,
java.net.URI url,
float rotation)
throws com.lowagie.text.DocumentException
com.lowagie.text.DocumentException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||