FileAttachment Class Documentation
classFileAttachment : SystemIDisposableNamespace:Datalogics::PDFL
- Inherits from:
SystemIDisposable
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
Constructor & Destructor Documentation
FileAttachment
FileAttachment(FileAttachmentrhs, InternalConstructsignifier)Parameters
rhs: FileAttachmentsignifier: InternalConstruct
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.
~FileAttachment
~FileAttachment()Property Documentation
AFRelationship
AFRelationshipAFRelationship[get, set]FileName
stringFileName[get]FileSize
uintFileSize[get]Member Function Documentation
ConstructorRetrieve
static FileAttachmentConstructorRetrieve(System.IntPtrignored)Parameters
ignored: System.IntPtr
Returns:
FileAttachmentDispose
voidDispose()Returns:
voidDisposeChildren
voidDisposeChildren()Returns:
voidGetCollectionItemNumber
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.
SaveAttachmentToStreamInternal
voidSaveAttachmentToStreamInternal(CDotNetStreamFiledest)Parameters
dest: CDotNetStreamFile
Returns:
voidSaveToFile
voidSaveToFile(stringfileName)Parameters
fileName: stringThe path where attachment will be saved.
Returns:
voidAllows to save attachment to the specified file.
SaveToStream
voidSaveToStream(System.IO.Streamstream)Parameters
stream: System.IO.StreamThe Stream to which the FileAttachment is saved.
Returns:
voidSaves a FileAttachment to a Stream.
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.