RenderAsMultipageTIFFToFile

Image handling, Rendering and printing

Description

Renders the specified pages from the selected document to a multi-page TIFF file. The destination is replaced only after the complete TIFF has been written

ImageOptions 1, TIFF (G4) output, is only available on Windows Vista and Windows Server 2008 and later

Syntax

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);
int DLRenderAsMultipageTIFFToFileA(int InstanceID, double DPI, const char* PageRanges, int ImageOptions, int OutputOptions, const char* FileName);

Parameters

DPIThe DPI to render the pages at
PageRangesA list of pages to render, for example "5-10,3,12"
ImageOptions0=24-bit RGB TIFF 1=1-bit G4 TIFF
OutputOptionsReserved for future use, should be set to 0
FileNameThe file name and path of the TIFF file to create

Return values

0Invalid parameters or cannot create file
1The multipage TIFF was created successfully