public abstract class PdfFiller extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PdfFiller.FieldProp |
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEBUG |
| Constructor and Description |
|---|
PdfFiller() |
| Modifier and Type | Method and Description |
|---|---|
static void |
fillFields(InputStream pdfInputStream,
OutputStream pdfOutputStream,
Hashtable params,
boolean flatFields)
Fills PDF fields that parameters included in
params. |
static void |
fillFields(String pdfFile,
OutputStream pdfOutputStream,
Hashtable params,
boolean flatFields)
Fills PDF fields that parameters included in
params. |
static void |
fillFields(String pdfFile,
String pdfFileOut,
Hashtable params,
boolean flatFields)
Fills PDF fields that parameters included in
params. |
static void |
fillImageFields(InputStream pdfInputStream,
OutputStream pdfOutputStream,
Hashtable params,
boolean flatFields)
|
static void |
fillImageFields(String pdfFile,
OutputStream pdfOutputStream,
Hashtable params,
boolean flatFields)
|
static void |
fillImageFields(String pdfFile,
String pdfFileOut,
Hashtable params,
boolean flatFields)
|
static void |
fillTable(OutputStream pdfInputStream,
Table table)
Fills the table with data specified in
pdfInputStream. |
static void |
fillTextImageFields(InputStream pdfInputStream,
OutputStream pdfOutputStream,
Hashtable params,
Vector imagesFields,
boolean flatFields)
Fills the fields in PDF file with:
Images contained in imagesFields that are in params.
|
static void |
fillTextImageFields(String pdfFile,
OutputStream pdfOutputStream,
Hashtable params,
Vector imagesFields,
boolean flatFields)
Fills the fields in PDF file with:
Images contained in imagesFields that are in params.
|
static void |
fillTextImageFields(String pdfFile,
String pdfFileOut,
Hashtable params,
Vector imagesFields,
boolean flatFields)
Fills the fields in PDF file with:
Images contained in imagesFields that are in params.
|
static Vector |
getFieldProps(InputStream pdfInputStream)
This function returns a
Vector with properties of fields. |
static Vector |
getFieldProps(String pdfFile)
Gets properties of fields for a input file parameter.
|
static com.lowagie.text.pdf.BarcodePDF417 |
getPDF417(String text)
Returns the specific bar code for 417PDF specified in text.
|
public static Vector getFieldProps(InputStream pdfInputStream) throws Exception
Vector with properties of fields.pdfInputStream - InputStream that contains PDFVector with propertiesException - when an Exception occurspublic static Vector getFieldProps(String pdfFile) throws Exception
pdfFile - the name of fileException - when an Exception occurspublic static void fillFields(InputStream pdfInputStream, OutputStream pdfOutputStream, Hashtable params, boolean flatFields) throws Exception
params.pdfInputStream - input document streampdfOutputStream - output document streamparams - fields and values to fillflatFields - condition to delete fieldsException - when an Exception occurspublic static void fillFields(String pdfFile, OutputStream pdfOutputStream, Hashtable params, boolean flatFields) throws Exception
params.pdfFile - name of input pdfpdfOutputStream - output document streamparams - fields and values to fillflatFields - condition to delete fieldsException - when an Exception occurspublic static void fillFields(String pdfFile, String pdfFileOut, Hashtable params, boolean flatFields) throws Exception
params.pdfFile - name of input pdfpdfFileOut - name of output pdfparams - fields and values to fillflatFields - condition to delete fieldsException - when an Exception occurspublic static void fillImageFields(InputStream pdfInputStream, OutputStream pdfOutputStream, Hashtable params, boolean flatFields) throws 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 keptException - When Exception occurspublic static void fillImageFields(String pdfFile, OutputStream pdfOutputStream, Hashtable params, boolean flatFields) throws 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 keptException - When Exception occurspublic static void fillImageFields(String pdfFile, String pdfFileOut, Hashtable params, boolean flatFields) throws 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 keptException - When Exception occurspublic static void fillTextImageFields(InputStream pdfInputStream, OutputStream pdfOutputStream, Hashtable params, Vector imagesFields, boolean flatFields) throws 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 keptException - When Exception occurspublic static void fillTextImageFields(String pdfFile, OutputStream pdfOutputStream, Hashtable params, Vector imagesFields, boolean flatFields) throws 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 keptException - When Exception occurspublic static void fillTextImageFields(String pdfFile, String pdfFileOut, Hashtable params, Vector imagesFields, boolean flatFields) throws 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 keptException - When Exception occurspublic static com.lowagie.text.pdf.BarcodePDF417 getPDF417(String text)
text - the text to set to bar codepublic static void fillTable(OutputStream pdfInputStream, Table table) throws Exception
pdfInputStream.pdfInputStream - the input data to fill the tabletable - table to fillException - when Exception occursCopyright © 2016 Imatia Innovation S.L.. All rights reserved.