DAGetPageBox
直接存取功能、頁面屬性
描述
傳回指定頁面邊界矩形的某個尺寸
傳回值為點數,從頁面左下角量起
語法
Delphi
Function TPDFlib.DAGetPageBox(FileHandle, PageRef, BoxIndex, Dimension: Integer): Double;
ActiveX
Function PDFlib::DAGetPageBox(FileHandle As Long, PageRef As Long, BoxIndex As Long, Dimension As Long) As Double
DLL
double DLDAGetPageBox(int InstanceID, int FileHandle, int PageRef, int BoxIndex, int Dimension);
參數
| FileHandle | 由 DAOpenFile、DAOpenFileReadOnly 或 DAOpenFromStream 函式傳回的控制代碼 |
|---|---|
| PageRef | 由 DAFindPage 或 DANewPage 函式傳回的頁面參照 |
| BoxIndex | 1 = MediaBox 2 = CropBox 3 = BleedBox 4 = TrimBox 5 = ArtBox |
| Dimension | 0 = Left 1 = Top 2 = Width 3 = Height 4 = Right 5 = Bottom int BoxIndex, int Dimension); |