FileAttachment Class Documentation
classFileAttachmentNamespace: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(Documentdoc, StringfileName)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(Documentdoc, StringfileName, StringkeyName)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
DisposeChildren
voidDisposeChildren()Returns:
void[static initializer]
static void[static initializer]()delete
synchronized voiddelete(Booleandisposing)Parameters
disposing: Boolean
Returns:
synchronized voiddelete
synchronized voiddelete()Returns:
synchronized voidfinalize
voidfinalize()Returns:
voidgetAFRelationship
AFRelationshipgetAFRelationship()Returns:
The attachment's Associated File relationship.Gets the attachment's Associated File relationship.
getCollectionItemNumber
floatgetCollectionItemNumber(CollectionSchemaFieldcollectionField)Parameters
collectionField: CollectionSchemaFieldthe field for which item value should be retrieved.
Returns:
collection items valueGetCollectionItemNumber allows to obtain collection item according to the specified schema field.
getCollectionItemString
StringgetCollectionItemString(CollectionSchemaFieldcollectionField)Parameters
collectionField: CollectionSchemaFieldthe field for which item value should be retrieved.
Returns:
collection items valueGetCollectionItemString allows to obtain collection item value according to the specified schema field.
getFileName
StringgetFileName()Returns:
The attachment's file name.Allow to obtain attachment's file name.
getFileSize
longgetFileSize()Returns:
The attachment's size in bytes.Allows to obtain attachment's size.
saveAttachmentToStreamInternal
voidsaveAttachmentToStreamInternal(JavaStreamFiledest)Parameters
dest: JavaStreamFile
Returns:
voidsaveToFile
voidsaveToFile(StringfileName)Parameters
fileName: StringThe path where attachment will be saved.
Returns:
voidAllows to save attachment to the specified file.
saveToStream
voidsaveToStream(javax.imageio.stream.ImageOutputStreamstream)Parameters
stream: javax.imageio.stream.ImageOutputStreamThe stream from which to save the FileAttachment.
Returns:
voidSaves a FileAttachment to a javax.imageio.stream.ImageInputStream.
setAFRelationship
voidsetAFRelationship(AFRelationshiprelationship)Parameters
relationship: AFRelationship
Returns:
The attachment's Associated File relationship.Sets the attachment's Associated File relationship.
setCollectionItemNumber
voidsetCollectionItemNumber(CollectionSchemaFieldcollectionField, floatvalue)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
voidsetCollectionItemString(CollectionSchemaFieldcollectionField, Stringvalue)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
voidupdateFromFile(StringfileName)Parameters
fileName: StringThe path to the file from which attachment will be updated.
Returns:
voidAllows to update attachment from another file.