public class FormStream extends Object
| Modifier and Type | Field and Description |
|---|---|
protected PdfObjectReader |
currentPdfFile
handle of file reader for form streams
|
static boolean |
debug |
static boolean |
debugUnimplemented |
static boolean |
exitOnError
exit when an unimplemented feature or error has occured in form/annot
code
|
static int[] |
id |
boolean |
isXFA
flag to show if XFA (will be disabled if XFA from version which is not
pure XFA)
|
| Constructor and Description |
|---|
FormStream() |
| Modifier and Type | Method and Description |
|---|---|
void |
createAppearanceString(FormObject formObj,
PdfObjectReader inCurrentPdfFile)
takes in a FormObject already populated with values for the child to
overwrite
|
static String |
decipherTextFromAP(PdfObjectReader currentPdfFile,
PdfObject Xobject)
Accepts PdfObjectReader and PdfObject containing an AP stream This reads
the AP stream, and returns the display text from stream
|
static BufferedImage |
decode(PdfObject formObj,
PdfObjectReader currentPdfFile,
PdfObject XObject,
int subtype,
int width,
int height,
int offsetImage,
float pageScaling)
decode appearance stream and convert into VectorRenderObject we can
redraw if width and height are 0 we define the size hear offsetImage - 0=
no change, 1= offset, 2= invert image pScaling used by HTML - set to 1
otherwise
|
static void |
decodeFontCommandObj(String fontStream,
FormObject formObject)
takes the PDF commands and creates a font
|
static Object[] |
getDownKeyValues(PdfObject form,
PdfFileReader pdfFileReader) |
static Object[] |
getNormalKeyValues(PdfObject form,
PdfFileReader pdfFileReader) |
static Object[] |
getRolloverKeyValues(PdfObject form,
PdfFileReader pdfFileReader) |
byte[] |
getXFA(int xfaTemplate) |
boolean |
hasXFADataSet() |
boolean |
isXFA() |
static BufferedImage |
rotate(BufferedImage src,
int rotation)
method to rotate an image through a given angle
|
public static final boolean debugUnimplemented
public static final boolean debug
public static final boolean exitOnError
protected PdfObjectReader currentPdfFile
public boolean isXFA
public static final int[] id
public static Object[] getRolloverKeyValues(PdfObject form, PdfFileReader pdfFileReader)
public static Object[] getNormalKeyValues(PdfObject form, PdfFileReader pdfFileReader)
public static Object[] getDownKeyValues(PdfObject form, PdfFileReader pdfFileReader)
public void createAppearanceString(FormObject formObj, PdfObjectReader inCurrentPdfFile)
public static BufferedImage decode(PdfObject formObj, PdfObjectReader currentPdfFile, PdfObject XObject, int subtype, int width, int height, int offsetImage, float pageScaling)
public static String decipherTextFromAP(PdfObjectReader currentPdfFile, PdfObject Xobject)
currentPdfFile - PdfObjectReader object to read the AP streamXobject - PdfObject containing the AP stream to be readpublic static BufferedImage rotate(BufferedImage src, int rotation)
src - the source imagerotation - the angle to rotate the image throughpublic boolean hasXFADataSet()
public static void decodeFontCommandObj(String fontStream, FormObject formObject)
public byte[] getXFA(int xfaTemplate)
public boolean isXFA()
Copyright © 2017. All rights reserved.