PrintOptions

Rendering and printing

Description

This function is used to construct a value that can be used as the Options parameter to the

PrintDocument function.

Syntax

Delphi

Function TPDFlib.PrintOptions(PageScaling, AutoRotateCenter: Integer; Const Title: WideString): Integer;

ActiveX

Function PDFlib::PrintOptions(PageScaling As Long, AutoRotateCenter As Long, Title As String) As Long

DLL

int DLPrintOptions(int InstanceID, int PageScaling, int AutoRotateCenter, const wchar_t* Title);
int DLPrintOptionsA(int InstanceID, int PageScaling, int AutoRotateCenter, const char* Title);

Parameters

PageScaling0 = None 1 = Fit to paper 2 = Shrink large pages
AutoRotateCenter0 = Do not rotate pages automatically 1 = Rotate pages to fit on the output medium, and centre on the page -1 = Rotate pages to fit on the output medium, and centre on the page but rotate anticlockwise instead.
TitleThe title of the document. This title is used by Windows in the Print Manager and for network title pages

Return values

Returns the composed Options value for the PrintDocument functions, encoding the page scaling mode, the auto-rotate and centre flags and an internal reference to the job title.