FileAttachment Class Documentation
class FileAttachmentNamespace:com::datalogics::PDFL
Detailed Description
A file attachment.Any file can be attached to the PDF document. The class allows to create attachment and manipulate by its content.
Referenced by
Uses types
Constructor & Destructor Documentation
FileAttachment
FileAttachment(Document doc, String fileName)Parameters
doc: DocumentThe PDF document (reference).
fileName: StringThe path to file which will be attached to the document.
Allows to add attachment into the PDF document.
FileAttachment
FileAttachment(Document doc, String fileName, String keyName)Parameters
doc: DocumentThe PDF document (reference).
fileName: StringThe path to file which will be attached to the document.
keyName: StringThe name of the key.
Allows to add attachment into the PDF document using the specified key name.
Member Function Documentation
delete
synchronized void delete(Boolean disposing)Parameters
disposing: Boolean
Returns:
synchronized voiddelete
synchronized void delete()Returns:
synchronized voidfinalize
void finalize()Returns:
voidgetAFRelationship
AFRelationship getAFRelationship()Returns:
AFRelationshipThe attachment's Associated File relationship.
Gets the attachment's Associated File relationship.
getCollectionItemNumber
float getCollectionItemNumber(CollectionSchemaField collectionField)Parameters
collectionField: CollectionSchemaFieldthe field for which item value should be retrieved.
Returns:
floatcollection items value
GetCollectionItemNumber allows to obtain collection item according to the specified schema field.
getCollectionItemString
String getCollectionItemString(CollectionSchemaField collectionField)Parameters
collectionField: CollectionSchemaFieldthe field for which item value should be retrieved.
Returns:
Stringcollection items value
GetCollectionItemString allows to obtain collection item value according to the specified schema field.
getFileName
String getFileName()Returns:
StringThe attachment's file name.
Gets the attachment's file name.
getFileSize
long getFileSize()Returns:
longThe attachment's size in bytes.
Gets the attachment's file size.
saveToFile
void saveToFile(String fileName)Parameters
fileName: StringThe path where attachment will be saved.
Returns:
voidAllows to save attachment to the specified file.
saveToStream
void saveToStream(javax.imageio.stream.ImageOutputStream stream)Parameters
stream: javax.imageio.stream.ImageOutputStreamThe stream from which to save the FileAttachment.
Returns:
voidSaves a FileAttachment to a javax.imageio.stream.ImageInputStream.
setAFRelationship
void setAFRelationship(AFRelationship relationship)Parameters
relationship: AFRelationshipThe Associated File relationship to set.
Returns:
voidSets the attachment's Associated File relationship.
setCollectionItemNumber
void setCollectionItemNumber(CollectionSchemaField collectionField, float value)Parameters
collectionField: CollectionSchemaFieldschema field which contains information about data type. The parameter's subtype should be a Number.
value: floatthe item's value.
Returns:
voidSetCollectionItemNumber allows to add key to the collection item dictionary.
setCollectionItemString
void setCollectionItemString(CollectionSchemaField collectionField, String value)Parameters
collectionField: CollectionSchemaFieldschema field which contains information about data type. The parameter's subtype should be a Text.
value: Stringthe item's value.
Returns:
voidSetCollectionItemString allows to add key to the collection item dictionary.
updateFromFile
void updateFromFile(String fileName)Parameters
fileName: StringThe path to the file from which attachment will be updated.
Returns:
voidAllows to update attachment from another file.