FileSpecification Class
Class representing embedded file.
Inheritance Hierarchy
SystemObject
  Aspose.PdfFileSpecification

Namespace: Aspose.Pdf
Assembly: Aspose.PDF (in Aspose.PDF.dll) Version: 20.11
Syntax
public sealed class FileSpecification : IDisposable

The FileSpecification type exposes the following members.

Constructors
  NameDescription
Public methodFileSpecification
Create new empty file specification.
Public methodFileSpecification(String)
Constructor for FileSpecification
Public methodFileSpecification(Stream, String)
Constructor for file specification.
Public methodFileSpecification(String, Annotation)
Constructor for FileSpecification.
Public methodFileSpecification(String, String)
Constructor for FileSpecification.
Public methodFileSpecification(Stream, String, String)
Constructor for FileSpecification.
Properties
  NameDescription
Public propertyAFRelationship
Associated file Relationship.
Public propertyContents
Gets or 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.
Public propertyDescription
Gets or sets text associated with the file specification.
Public propertyEncoding
Gets or sets encoding format. Possible values: Zip - file is compressed with ZIP, None - file is not compressed.
Public propertyFileSystem
Gets or sets name of the file system.
Public propertyIncludeContents
If true, contents of the file will be included in the file specification.
Public propertyMIMEType
Gets subtype of the embedded file
Public propertyName
Gets or sets file specification name.
Public propertyParams
Gets file paramteres.
Public propertyStreamContents
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.
Public propertyUnicodeName
Gets or sets file specification unicode name.
Methods
  NameDescription
Public methodDispose
Releases all resources used by the FileSpecification
Public methodEquals (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodGetValue
Gets application-specific parameter.
Public methodSetValue
Sets application-specific parameter.
Public methodToString (Inherited from Object.)
See Also