DAGetPageCount

ドキュメントプロパティ、直接アクセス機能

説明

DAOpenFile 関数で開いた文書内のページ数を返します

構文

Delphi

Function TPDFlib.DAGetPageCount(FileHandle: Integer): Integer;

ActiveX

Function PDFlib::DAGetPageCount(FileHandle As Long) As Long

DLL

int DLDAGetPageCount(int InstanceID, int FileHandle);

パラメータ

FileHandleDAOpenFile、DAOpenFileReadOnly または DAOpenFromStream 関数により返されるハンドル

戻り値

0指定した FileHandle が無効でした ドキュメント内のページ数
Non-zero