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 控制文档在屏幕上的呈现方式,以及阅读器可能如何初始化打印行为。有些值是简单 flags,有些还需要设置相关 THotPDF 属性

 

Value                Meaning


vpHideToolbar                Specifying whether to hide the viewer application's tool bars when the document is active.

vpHideMenubar        Specifying whether to hide the viewer application's menu bar when the document is active.

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                Specifying whether to resize the document's window to fit the size of the first displayed page.

vpCenterWindow        Specifying whether to position the document's window in the center of the screen.

vpDisplayDocTitle      Display the document Title entry instead of the file name in the viewer window caption.

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

vpNonFullScreenPageMode:定义离开 full-screen mode 后使用的 page mode。请使用 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:指定阅读器是否应按 PDF page size 选择打印机纸盒

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

vpPrintArea            Defines the page boundary used for print rendering. Use the THotPDF.PrintArea property.

vpPrintClip            Defines the page boundary used for print clipping. Use the THotPDF.PrintClip property.

 

Related Properties

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

 

Notes

Viewer preferences 是给 PDF 阅读器的建议。支持情况因应用而异。Adobe Reader 和 Acrobat 通常提供最完整的行为