RenderAsMultipageTIFFToFile
图像处理、渲染和打印
描述
将所选文档中的指定页面渲染为多页 TIFF 文件
ImageOptions 1(TIFF(G4)输出)仅在 Windows Vista、Windows Server 2008 及更高版本上可用
语法
Delphi
Function TPDFlib.RenderAsMultipageTIFFToFile(DPI: Double; Const PageRanges: WideString; ImageOptions, OutputOptions: Integer; Const FileName: WideString): Integer;
ActiveX
Function PDFlib::RenderAsMultipageTIFFToFile(DPI As Double, PageRanges As String, ImageOptions As Long, OutputOptions As Long, FileName As String) As Long
DLL
int DLRenderAsMultipageTIFFToFile(int InstanceID, double DPI, const wchar_t * PageRanges, int ImageOptions, int OutputOptions, const wchar_t * FileName);
参数
| DPI | 渲染页面所用的 DPI |
|---|---|
| PageRanges | 要渲染的页面列表,例如 "5-10,3,12" |
| ImageOptions | 0=24 位 RGB TIFF 1=1 位 G4 TIFF |
| OutputOptions | 保留供将来使用,应设为 0 |
| FileName | 要创建的 TIFF 文件的文件名和路径 |
返回值
| 0 | 参数无效或无法创建文件 多页 TIFF 已成功创建 |
|---|---|
| 1 |