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.