SetPageDimensions
頁面屬性、頁面佈局
描述
設定所選頁面的尺寸
此函式更新代表頁面實體媒體大小的 MediaBox 項目,只會影響之後加入頁面的內容,不會調整頁面既有內容的尺寸。
語法
Delphi
Function TPDFlib.SetPageDimensions(NewPageWidth, NewPageHeight: Double): Integer;
ActiveX
Function PDFlib::SetPageDimensions(NewPageWidth As Double, NewPageHeight As Double) As Long
DLL
int DLSetPageDimensions(int InstanceID, double NewPageWidth, double NewPageHeight);
參數
| NewPageWidth | 頁面的新寬度 |
|---|---|
| NewPageHeight | 頁面的新高度 |
傳回值
| 0 | 無法設定頁面尺寸。這不應該發生。 頁面尺寸調整成功 |
|---|---|
| 1 |