FileSpecification
内容
[
隐藏
]FileSpecification class
表示嵌入文件的类。
public sealed class FileSpecification : IDisposable
构造函数
姓名 | 描述 |
---|---|
FileSpecification() | 创建新的空文件规范。 |
FileSpecification(string) | 文件规范的构造函数 |
FileSpecification(Stream, string) | 文件规范的构造函数。 |
FileSpecification(string, Annotation) | FileSpecification 的构造函数. |
FileSpecification(string, string) | FileSpecification 的构造函数. |
FileSpecification(Stream, string, string) | FileSpecification 的构造函数. |
特性
姓名 | 描述 |
---|---|
AFRelationship { get; set; } | 关联文件关系. |
Contents { get; set; } | 获取或设置内容文件。 此属性返回加载到内存中的数据,这可能会导致大数据出现内存不足异常。 要减少内存使用,请使用 StreamContents。 |
Description { get; set; } | 获取或设置与文件规范关联的文本。 |
Encoding { get; set; } | 获取或设置编码格式。 可能的值:Zip - 使用 ZIP 压缩文件, None - 不压缩文件。 |
EncryptedPayload { get; } | 获取加密的有效载荷。 |
FileSystem { get; set; } | 获取或设置文件系统的名称。 |
IncludeContents { get; set; } | 如果为真,文件内容将包含在文件规范中。 |
MIMEType { get; set; } | 获取嵌入文件的子类型 |
Name { get; set; } | 获取或设置文件规范名称。 |
Params { get; set; } | 获取文件参数。 |
StreamContents { get; } | 获取文件内容作为流。 内容未加载到内存中,这可以减少内存使用量。 但此流不支持定位和长度属性。如果您需要此功能,请改用 Contents 属性。 |
UnicodeName { get; set; } | 获取或设置文件规范的 unicode 名称。 |
方法
姓名 | 描述 |
---|---|
Dispose() | 处理内容。 |
GetValue(string) | 获取特定于应用程序的参数。 |
SetValue(string, string) | 设置应用程序特定参数。 |
也可以看看
- 命名空间 Aspose.Pdf
- 部件 Aspose.PDF