Aspose::Pdf::FileSpecification class

FileSpecification class

Class representing embedded file.

class FileSpecification : public System::IDisposable

Methods

MethodDescription
Dispose() overrideDispose contents.
FileSpecification(System::String)Constructor for FileSpecification.
FileSpecification(System::SharedPtr<System::IO::Stream>, System::String)Constructor for file specification.
FileSpecification(System::String, System::String)Constructor for FileSpecification.
FileSpecification(System::SharedPtr<System::IO::Stream>, System::String, System::String)Constructor for FileSpecification.
FileSpecification(System::String, System::SharedPtr<Annotations::Annotation>)Constructor for FileSpecification.
FileSpecification()Create new empty file specification.
get_AFRelationship()Associated file Relationship.
get_CollectionItem()Gets a collection item of the file specification.
get_Contents()Gets contents file. This property returns data loaded in memory which may cause Out of memory exception for large data. To decrease memory usage please use StreamContents.
get_Description()Gets text associated with the file specification.
get_Encoding() constGets encoding format. Possible values: Zip - file is compressed with ZIP, None - file is not compressed.
get_EncryptedPayload()Gets encrypted payload.
get_FileSystem()Gets name of the file system.
get_IncludeContents() constIf true, contents of the file will be included in the file specification.
get_MIMEType()Gets subtype of the embedded file.
get_Name()Gets file specification name.
get_Params()Gets file paramteres.
get_StreamContents()Gets contents of file as stream. Contents is not loaded into memory which allows to decrease memory usage. But this stream does not support positioning and Length property. If you need this features please use Contents property instead.
get_UnicodeName()Gets file specification unicode name.
GetValue(System::String)Gets application-specific parameter.
set_AFRelationship(Aspose::Pdf::AFRelationship)Associated file Relationship.
set_Contents(System::SharedPtr<System::IO::Stream>)Sets contents file. This property returns data loaded in memory which may cause Out of memory exception for large data. To decrease memory usage please use StreamContents.
set_Description(System::String)Sets text associated with the file specification.
set_Encoding(FileEncoding)Sets encoding format. Possible values: Zip - file is compressed with ZIP, None - file is not compressed.
set_FileSystem(System::String)Sets name of the file system.
set_IncludeContents(bool)If true, contents of the file will be included in the file specification.
set_MIMEType(System::String)Gets subtype of the embedded file.
set_Name(System::String)Sets file specification name.
set_Params(System::SharedPtr<FileParams>)Gets file paramteres.
set_UnicodeName(System::String)Sets file specification unicode name.
SetValue(System::String, System::String)Sets application-specific parameter.

See Also