THotPDF.ViewerPreferences

THotPDF

 

傳回頂部  上一頁  下一頁

Determines the viewer application preferences written to the PDF document.

 

type

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

   THPDFViewerPreferences = set of THPDFViewerPreference;

 

Delphi 語法:

property ViewerPreferences: THPDFViewerPreferences;

 

C++ 語法:

__property THPDFViewerPreferences ViewerPreferences;

 

說明

Viewer preferences 控制檔案在螢幕上的呈現方式,以及 viewer 如何初始化列印行為。有些值是簡單 flags,有些也需要設定相關 THotPDF properties

 

數值意義


vpHideToolbar 指定檔案啟用時是否隱藏 viewer application 的 tool bars

vpHideMenubar 指定檔案啟用時是否隱藏 viewer application 的 menu bar

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

                                 leaving only the document's contents displayed.

vpFitWindow 指定是否調整檔案視窗大小,以符合第一個顯示頁面的尺寸

vpCenterWindow 指定是否將檔案視窗置於螢幕中央

vpDisplayDocTitle 在 viewer window caption 中顯示檔案 Title entry,而不是檔案名稱

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

vpNonFullScreenPageMode 定義離開 full-screen mode 後使用的 page mode。請使用 THotPDF.NonFullScreenPageMode property

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 是否應依 PDF page size 選擇 printer tray

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

vpPrintArea 定義 print rendering 使用的 page boundary。請使用 THotPDF.PrintArea property

vpPrintClip 定義 print clipping 使用的 page boundary。請使用 THotPDF.PrintClip property

 

Related Properties

Direction, NonFullScreenPageMode, PrintScaling, Duplex, NumCopies, PrintArea, PrintClip, and InitialZoom.

 

Notes

Viewer preferences 是給 PDF viewer 的建議。支援程度依應用程式而異。Adobe Reader 與 Acrobat 通常提供最完整的行為