|
THotPDF.InitialZoom
|
ด้านบน ก่อนหน้า ถัดไป |
|
ควบคุมการซูมแสดงผลหน้าเริ่มต้นที่เขียนลงในรายการ OpenAction ของเอกสาร โปรแกรมอ่าน PDF จะถือตามค่านี้เมื่อเปิดไฟล์
ประเภท THPDFInitialZoom = ( FitNone, FitPage, FitWidth, FitHeight, FitBox, FitBoxWidth, FitBoxHeight, Zoom50, Zoom75, Zoom100, Zoom125, Zoom150, Zoom200);
Delphi syntax: property InitialZoom: THPDFInitialZoom;
C++ syntax: __property THPDFInitialZoom InitialZoom;
คำอธิบาย ใช้ InitialZoom เพื่อตั้งค่าโหมดการแสดงผลหน้าเว็บเมื่อเปิดเอกสาร HotPDF จะเขียนค่านี้ลงในรายการ /OpenAction ของเอกสารเป็นหนึ่งในปลายทางการดู PDF มาตรฐานที่กำหนดไว้ในข้อกำหนด PDF (Fit, FitH, FitV, FitR, FitB, FitBH, FitBV หรือ XYZ) ตั้งแต่ HotPDF v2.3.11 ค่าเริ่มต้นคือ FitHeight (ปลายทาง PDF /FitV) ดังนั้นเอกสารที่สร้างขึ้นจะเปิดขึ้นโดยแต่ละหน้าจะพอดีกับความสูงของหน้าต่างของโปรแกรมดู ตั้งค่า InitialZoom เป็น FitNone เพื่อละเว้นรายการ OpenAction และปล่อยให้โปรแกรมดูสลับกลับไปใช้การซูมเริ่มต้นของตัวเอง
Value PDF destination Meaning FitNone (none) No special zoom; let the viewer use its own default. FitPage /Fit Fit the entire page inside the window. FitWidth /FitH Fit page width to the window. FitHeight /FitV Fit page height to the window. (default) FitBox /FitR หรือ /FitB ปรับ bounding box ของ page contents ให้พอดีกับ window FitBoxWidth /FitBH Fit the bounding box width to the window. FitBoxHeight /FitBV Fit the bounding box height to the window. Zoom50 /XYZ null null 0.5 Open the page at 50% scale. Zoom75 /XYZ null null 0.75 Open the page at 75% scale. Zoom100 /XYZ null null 1.0 Open the page at 100% (actual size). Zoom125 /XYZ null null 1.25 Open the page at 125% scale. Zoom150 /XYZ null null 1.5 Open the page at 150% scale. Zoom200 /XYZ null null 2.0 Open the page at 200% scale.
สำหรับภาพรวมระดับสูงของวิธีที่ InitialZoom ทำงานร่วมกับพจนานุกรมการตั้งค่าโปรแกรมดู PDF (viewer-preferences dictionary) ดูที่ ข้อมูลอ้างอิงฉบับสมบูรณ์เกี่ยวกับ ViewerPreferences
Code Example
|