public class PdfFileInformation extends Object
Added as a repository to store PDF file metadata (both legacy fields and XML metadata) in so that it can be accesed.
Please see org.jpedal.examples (especially Viewer) for example code.
| Modifier and Type | Field and Description |
|---|---|
static int[] |
information_field_IDs
list of pdf information fields data might contain
|
| Constructor and Description |
|---|
PdfFileInformation() |
| Modifier and Type | Method and Description |
|---|---|
static String[] |
getFieldNames() |
String[] |
getFieldValues() |
String |
getFileXMLMetaData() |
void |
readInformationObject(PdfObject infoObj,
ObjectDecoder objectDecoder)
read information object and return pointer to correct
place
|
PdfFileInformation |
readPdfFileMetadata(PdfObject metadataObj,
PdfObjectReader currentPdfFile)
read the form data from the file
|
void |
setFieldValue(int i,
String convertedValue)
set the information values as file opened by JPedal (should not be used externally)
|
void |
setFileXMLMetaData(byte[] rawData)
set list of field names as file opened by JPedal (should not be used externally)
|
public static final int[] information_field_IDs
public static String[] getFieldNames()
public String getFileXMLMetaData()
public void setFileXMLMetaData(byte[] rawData)
rawData - An array containing list of field namespublic String[] getFieldValues()
public void setFieldValue(int i,
String convertedValue)
i - position of the pointerconvertedValue - new value of the pointerpublic void readInformationObject(PdfObject infoObj, ObjectDecoder objectDecoder)
infoObj - a value of information objectobjectDecoder - gets information of information objectpublic final PdfFileInformation readPdfFileMetadata(PdfObject metadataObj, PdfObjectReader currentPdfFile)
metadataObj - XML valuecurrentPdfFile - the Current PDF FileCopyright © 2017. All rights reserved.