PrintOptions

渲染和列印

描述

此函式用來建構一個值,可當成以下函式的 Options 參數:

PrintDocument function.

語法

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);

參數

PageScaling0 = 無 1 = 符合紙張 2 = 縮小過大頁面
AutoRotateCenter0 = 不自動旋轉頁面 1 = 旋轉頁面以符合輸出媒介並置中於頁面 -1 = 旋轉頁面以符合輸出媒介並置中於頁面,但改為逆時針旋轉。
Title文件的標題。Windows 會在列印管理員與網路標題頁使用它

傳回值

傳回為 PrintDocument 函式組合出的 Options 值,其中編碼了頁面縮放模式、自動旋轉與置中旗標以及工作標題的內部參照。