Gets a ViewerPreferences object that represent the viewer preferences of the Document.
[Visual Basic]
Public ReadOnly Property ViewerPreferences As ViewerPreferences[C#]
public ViewerPreferences ViewerPreferences {get;}The documents ViewerPreferences object.
This example shows how to change the viewer preferences associated with a document.
[Visual Basic]
Imports System
Imports ceTe.DynamicPDF
Module MyModule
Sub Main()
' Create a PDF Document
Dim MyDocument As Document = New Document
' Create a Page and add it to the document
MyDocument.Pages.Add(New Page(PageSize.Letter))
' Set the viewer preferences
MyDocument.ViewerPreferences.CenterWindow = True
MyDocument.ViewerPreferences.DisplayDocTitle = False
MyDocument.ViewerPreferences.HideMenubar = True
MyDocument.ViewerPreferences.HideToolbar = True
MyDocument.ViewerPreferences.HideWindowUI = True
' Save the PDF document
MyDocument.Draw("C:\MyDocument.pdf")
End Sub
End Module
[C#]
using System; |
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
Document Class | Document Members
© Copyright 2007, ceTe Software