NIMDocTranscodingInfo Class Reference

Inherits from NSObject
Declared in NIMDocTranscodingInfo.h

Overview

转码文档信息

  docId

转码文档标识 id

@property (nonatomic, copy, readonly) NSString *docId

Discussion

转码文档标识 id

Declared In

NIMDocTranscodingInfo.h

  docName

转码文档名称

@property (nonatomic, copy, readonly) NSString *docName

Discussion

转码文档名称

Declared In

NIMDocTranscodingInfo.h

  sourceType

转码源文档的文件类型

@property (nonatomic, assign, readonly) NIMDocTranscodingFileType sourceType

Discussion

转码源文档的文件类型

Declared In

NIMDocTranscodingInfo.h

  sourceSize

转码源文档大小

@property (nonatomic, assign, readonly) UInt64 sourceSize

Discussion

转码源文档大小

Declared In

NIMDocTranscodingInfo.h

  targetType

转码目标图片的文件类型

@property (nonatomic, assign, readonly) NIMDocTranscodingImageType targetType

Discussion

转码目标图片的文件类型

Declared In

NIMDocTranscodingInfo.h

  state

转码过程状态

@property (nonatomic, assign, readonly) NIMDocTranscodingState state

Discussion

转码过程状态

Declared In

NIMDocTranscodingInfo.h

  sourceFileUrl

转码源文档文件的下载地址

@property (nonatomic, copy, readonly) NSString *sourceFileUrl

Discussion

转码源文档文件的下载地址

Declared In

NIMDocTranscodingInfo.h

  numberOfPages

转码文档总页数

@property (nonatomic, assign, readonly) NSUInteger numberOfPages

Discussion

转码文档总页数

Declared In

NIMDocTranscodingInfo.h

  ext

发起文档转码时的附带信息

@property (nullable, nonatomic, copy, readonly) NSString *ext

Discussion

发起文档转码时的附带信息

Declared In

NIMDocTranscodingInfo.h

  transcodingFlag

文档转码内部状态码, 0 表示成功, 可用于在转码失败时定位具体失败原因。已知的一些失败原因 2: 找不到文件; 3: 文件类型错误; 4: 转码请求出现异常; 5: 转码服务器连接错误 6: 转码服务器内部错误; 7: 文档转码图片出错; 8: 图片质量处理错误; 9: 页数超限; 10: nos回调错误; 11: 文档解析错误(如加密的PDF无法解析; 100: 未知错误

@property (nonatomic, assign, readonly) NSInteger transcodingFlag

Discussion

文档转码内部状态码, 0 表示成功, 可用于在转码失败时定位具体失败原因。已知的一些失败原因 2: 找不到文件; 3: 文件类型错误; 4: 转码请求出现异常; 5: 转码服务器连接错误 6: 转码服务器内部错误; 7: 文档转码图片出错; 8: 图片质量处理错误; 9: 页数超限; 10: nos回调错误; 11: 文档解析错误(如加密的PDF无法解析; 100: 未知错误

Declared In

NIMDocTranscodingInfo.h

– transcodedTotalSize:

获取某清晰度的转码后文件总字节大小

- (UInt64)transcodedTotalSize:(NIMDocTranscodingQuality)quality

Parameters

quality

转码质量

Return Value

转码后该质量的图片文件总字节大小

Discussion

获取某清晰度的转码后文件总字节大小

Declared In

NIMDocTranscodingInfo.h

– transcodedImagesSize:

获取某清晰度转码后图片的长宽信息

- (CGSize)transcodedImagesSize:(NIMDocTranscodingQuality)quality

Parameters

quality

转码质量

Return Value

转码后图片的长宽信息

Discussion

获取某清晰度转码后图片的长宽信息

Declared In

NIMDocTranscodingInfo.h

– transcodedUrl:ofQuality:

获取转码后某清晰度的文件页码对应的下载 url

- (nullable NSString *)transcodedUrl:(NSUInteger)pageNumber ofQuality:(NIMDocTranscodingQuality)quality

Parameters

pageNumber

文件页码

quality

图片质量

Return Value

图片下载 url

Discussion

获取转码后某清晰度的文件页码对应的下载 url

Declared In

NIMDocTranscodingInfo.h