THotPDF.ViewerPreferences

THotPDF

 

ด้านบน  ก่อนหน้า  ถัดไป

กำหนดค่ากำหนดของแอปพลิเคชันโปรแกรมดูที่เขียนลงในเอกสาร PDF

 

ประเภท

THPDFViewerPreference = (vpHideToolbar, vpHideMenubar, vpHideWindowUI, vpFitWindow, vpCenterWindow, vpDisplayDocTitle, vpDirection, vpNonFullScreenPageMode, vpPrintScaling, vpDuplex, vpPickTrayByPDFSize, vpNumCopies, vpPrintArea, vpPrintClip);

THPDFViewerPreferences = set of THPDFViewerPreference;

 

Delphi syntax:

property ViewerPreferences: THPDFViewerPreferences;

 

C++ syntax:

__property THPDFViewerPreferences ViewerPreferences;

 

คำอธิบาย

ค่ากำหนดของโปรแกรมดูจะควบคุมวิธีนำเสนอเอกสารบนหน้าจอ และวิธีที่โปรแกรมดูอาจเริ่มต้นพฤติกรรมการพิมพ์ ค่าบางอย่างเป็นเพียงแฟล็กธรรมดา และบางค่าจำเป็นต้องตั้งค่าคุณสมบัติ THotPDF ที่เกี่ยวข้องด้วยเช่นกัน

 

Value                Meaning


vpHideToolbar ระบุว่าจะซ่อน tool bars ของ viewer application เมื่อ document active หรือไม่

vpHideMenubar ระบุว่าจะซ่อน menu bar ของ viewer application เมื่อ document active หรือไม่

vpHideWindowUI        Specifying whether to hide user interface elements in the document's window (such as scroll bars and navigation controls),

เหลือเพียงเนื้อหาของเอกสารที่แสดงผลเท่านั้น

vpFitWindow ระบุว่าจะ resize window ของ document ให้พอดีกับ size ของ page แรกที่แสดงหรือไม่

vpCenterWindow ระบุว่าจะวาง window ของ document ไว้กลาง screen หรือไม่

vpDisplayDocTitle แสดง entry Title ของ document แทน file name ใน caption ของ viewer window

vpDirection            Write the document reading direction. Use the THotPDF.Direction property to choose LeftToRight or RightToLeft.

vpNonFullScreenPageMode กำหนด page mode ที่ใช้หลังออกจาก full-screen mode ให้ใช้ property THotPDF.NonFullScreenPageMode

vpPrintScaling        Controls the default print scaling mode. Use the THotPDF.PrintScaling property.

vpDuplex              Writes the duplex printing preference. Use the THotPDF.Duplex property.

vpPickTrayByPDFSize ระบุว่า viewer ควรเลือก printer tray ตาม PDF page size หรือไม่

vpNumCopies            Writes the suggested print copy count. Use the THotPDF.NumCopies property.

vpPrintArea กำหนด page boundary ที่ใช้สำหรับ print rendering ให้ใช้ property THotPDF.PrintArea

vpPrintClip กำหนด page boundary ที่ใช้สำหรับ print clipping ให้ใช้ property THotPDF.PrintClip

 

คุณสมบัติที่เกี่ยวข้อง

Direction, NonFullScreenPageMode, PrintScaling, Duplex, NumCopies, PrintArea, PrintClip และ InitialZoom

 

บันทึกย่อ

ค่ากำหนดของโปรแกรมดูคือคำแนะนำสำหรับโปรแกรมดู PDF การรองรับจะแตกต่างกันไปตามแอปพลิเคชัน Adobe Reader และ Acrobat มักจะให้พฤติกรรมการทำงานที่สมบูรณ์ที่สุด