Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
ViewerPreferenceクラスは、PDFファイルの表示モードを表します。たとえば、ドキュメントウィンドウを画面の中央に配置したり、ビューワーアプリケーションのメニューバーを非表示にしたりします。
PdfContentEditorクラスのChangeViewerPreferenceメソッドを使用すると、ビューワー設定を変更できます。そのためには、PdfContentEditorクラスのオブジェクトを作成し、BindPdfメソッドを使用して入力PDFファイルをバインドする必要があります。
その後、ChangeViewerPreferenceメソッドを呼び出して任意の設定を行うことができます。最後に、Saveメソッドを使用して更新されたPDFファイルを保存する必要があります。以下のコードスニペットは、既存のPDFファイルでビューワー設定を変更する方法を示しています。
たとえば、CenterWindowパラメータを指定してウィンドウを中央に配置し、HideMenubarで上部ツールバーを非表示にし、PageModeUseNoneで全画面モードを開きます。
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.