|
Ontimize 5.2072EN | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ontimize.util.pdf.PdfFiller
Class that contains static methods to create PDF files filling fields for
other PDF used like template. Steps to create a template are:
| Nested Class Summary | |
static class |
PdfFiller.FieldProp
|
| Field Summary | |
static boolean |
DEBUG
|
| Constructor Summary | |
PdfFiller()
|
|
| Method Summary | |
static void |
fillFields(java.io.InputStream pdfInputStream,
java.io.OutputStream pdfOutputStream,
java.util.Hashtable params,
boolean flatFields)
Fills PDF fields that parameters included in params. |
static void |
fillFields(java.lang.String pdfFile,
java.io.OutputStream pdfOutputStream,
java.util.Hashtable params,
boolean flatFields)
Fills PDF fields that parameters included in params. |
static void |
fillFields(java.lang.String pdfFile,
java.lang.String pdfFileOut,
java.util.Hashtable params,
boolean flatFields)
Fills PDF fields that parameters included in params. |
static void |
fillImageFields(java.io.InputStream pdfInputStream,
java.io.OutputStream pdfOutputStream,
java.util.Hashtable params,
boolean flatFields)
Inserts images from params like byte[] or BytesBlock in pdfInputStream. |
static void |
fillImageFields(java.lang.String pdfFile,
java.io.OutputStream pdfOutputStream,
java.util.Hashtable params,
boolean flatFields)
Inserts images from params like byte[] or BytesBlock in FileInputStream created with pdfFile. |
static void |
fillImageFields(java.lang.String pdfFile,
java.lang.String pdfFileOut,
java.util.Hashtable params,
boolean flatFields)
Inserts images from params like byte[] or BytesBlock in FileInputStream created with pdfFile. |
static void |
fillTable(java.io.OutputStream pdfInputStream,
Table table)
Fills the table with data specified in pdfInputStream. |
static void |
fillTextImageFields(java.io.InputStream pdfInputStream,
java.io.OutputStream pdfOutputStream,
java.util.Hashtable params,
java.util.Vector imagesFields,
boolean flatFields)
Fills the fields in PDF file with: Images contained in imagesFields that are in params. |
static void |
fillTextImageFields(java.lang.String pdfFile,
java.io.OutputStream pdfOutputStream,
java.util.Hashtable params,
java.util.Vector imagesFields,
boolean flatFields)
Fills the fields in PDF file with: Images contained in imagesFields that are in params. |
static void |
fillTextImageFields(java.lang.String pdfFile,
java.lang.String pdfFileOut,
java.util.Hashtable params,
java.util.Vector imagesFields,
boolean flatFields)
Fills the fields in PDF file with: Images contained in imagesFields that are in params. |
static java.util.Vector |
getFieldProps(java.io.InputStream pdfInputStream)
This function returns a Vector with properties of fields. |
static java.util.Vector |
getFieldProps(java.lang.String pdfFile)
Gets properties of fields for a input file parameter. |
static com.lowagie.text.pdf.BarcodePDF417 |
getPDF417(java.lang.String text)
Returns the specific bar code for 417PDF specified in text. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static boolean DEBUG
| Constructor Detail |
public PdfFiller()
| Method Detail |
public static java.util.Vector getFieldProps(java.io.InputStream pdfInputStream)
throws java.lang.Exception
Vector with properties of fields.
pdfInputStream - InputStream that contains PDF
Vector with properties
java.lang.Exception - when an Exception occurs
public static java.util.Vector getFieldProps(java.lang.String pdfFile)
throws java.lang.Exception
pdfFile - the name of file
java.lang.Exception - when an Exception occurs
public static void fillFields(java.io.InputStream pdfInputStream,
java.io.OutputStream pdfOutputStream,
java.util.Hashtable params,
boolean flatFields)
throws java.lang.Exception
params.
pdfInputStream - input document streampdfOutputStream - output document streamparams - fields and values to fillflatFields - condition to delete fields
java.lang.Exception - when an Exception occurs
public static void fillFields(java.lang.String pdfFile,
java.io.OutputStream pdfOutputStream,
java.util.Hashtable params,
boolean flatFields)
throws java.lang.Exception
params.
pdfFile - name of input pdfpdfOutputStream - output document streamparams - fields and values to fillflatFields - condition to delete fields
java.lang.Exception - when an Exception occurs
public static void fillFields(java.lang.String pdfFile,
java.lang.String pdfFileOut,
java.util.Hashtable params,
boolean flatFields)
throws java.lang.Exception
params.
pdfFile - name of input pdfpdfFileOut - name of output pdfparams - fields and values to fillflatFields - condition to delete fields
java.lang.Exception - when an Exception occurs
public static void fillImageFields(java.io.InputStream pdfInputStream,
java.io.OutputStream pdfOutputStream,
java.util.Hashtable params,
boolean flatFields)
throws java.lang.Exception
params like byte[] or BytesBlock in pdfInputStream. Output is set
in pdfOutputStream. Images are inserted in (x,y) coordinates correspondent of original field documents that have
the same name that params keys.
pdfInputStream - Input PDF used like templatepdfOutputStream - Output PDF fileparams - Images to insertflatFields - This param indicates whether original PDF fields are kept
java.lang.Exception - When Exception occurs
public static void fillImageFields(java.lang.String pdfFile,
java.io.OutputStream pdfOutputStream,
java.util.Hashtable params,
boolean flatFields)
throws java.lang.Exception
params like byte[] or BytesBlock in FileInputStream created with pdfFile. Output is set
in pdfOutputStream. Images are inserted in (x,y) coordinates correspondent of original field documents that have
the same name that params keys.
pdfFile - name of input PDF used like templatepdfOutputStream - Output PDFparams - Images to insertflatFields - This param indicates whether original PDF fields are kept
java.lang.Exception - When Exception occurs
public static void fillImageFields(java.lang.String pdfFile,
java.lang.String pdfFileOut,
java.util.Hashtable params,
boolean flatFields)
throws java.lang.Exception
params like byte[] or BytesBlock in FileInputStream created with pdfFile. Output is set
in FileOutputStream created with pdfFileOut. Images are inserted in (x,y) coordinates correspondent of original field documents that have
the same name that params keys.
pdfFile - name of input PDF used like templatepdfFileOut - name of output PDF fileparams - Images to insertflatFields - This param indicates whether original PDF fields are kept
java.lang.Exception - When Exception occurs
public static void fillTextImageFields(java.io.InputStream pdfInputStream,
java.io.OutputStream pdfOutputStream,
java.util.Hashtable params,
java.util.Vector imagesFields,
boolean flatFields)
throws java.lang.Exception
pdfInputStream - Input PDF used like templatepdfOutputStream - Output PDF fileparams - Data to insertimagesFields - The vector with name of image fieldsflatFields - This parameter indicates whether original PDF fields are kept
java.lang.Exception - When Exception occurs
public static void fillTextImageFields(java.lang.String pdfFile,
java.io.OutputStream pdfOutputStream,
java.util.Hashtable params,
java.util.Vector imagesFields,
boolean flatFields)
throws java.lang.Exception
pdfFile - PDF file namepdfOutputStream - Output PDF fileparams - Data to insertimagesFields - The vector with name of image fieldsflatFields - This parameter indicates whether original PDF fields are kept
java.lang.Exception - When Exception occurs
public static void fillTextImageFields(java.lang.String pdfFile,
java.lang.String pdfFileOut,
java.util.Hashtable params,
java.util.Vector imagesFields,
boolean flatFields)
throws java.lang.Exception
pdfFile - PDF file namepdfFileOut - Output PDF file nameparams - Data to insertimagesFields - The vector with name of image fieldsflatFields - This parameter indicates whether original PDF fields are kept
java.lang.Exception - When Exception occurspublic static com.lowagie.text.pdf.BarcodePDF417 getPDF417(java.lang.String text)
text - the text to set to bar code
public static void fillTable(java.io.OutputStream pdfInputStream,
Table table)
throws java.lang.Exception
pdfInputStream.
pdfInputStream - the input data to fill the tabletable - table to fill
java.lang.Exception - when Exception occurs
|
Ontimize | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||