RenderAsMultipageTIFFToFileA

Image handling, Rendering and printing

Description

The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to RenderAsMultipageTIFFToFile and string arguments are interpreted using the current SetAnsiMode code page

Renders the specified pages from the selected document to a multi-page TIFF file.

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

Syntax

Delphi

Function DLRenderAsMultipageTIFFToFileA(InstanceID: Integer; DPI: Double; PageRanges: PAnsiChar; ImageOptions, OutputOptions: Integer; FileName: PAnsiChar): Integer;

DLL

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 The multipage TIFF was created successfully
1