Document open mode is used to set the appearance when the document is opened. Document open mode is meant about opening the PDF document in thumbnails, bookmarks or full screen modes etc. Document Open Mode is defined using the fixed set of values in OpenType enumeration.
It is always a two step process:
The pre-defined values of OpenType enumeration are given below:
Values |
Description |
Auto |
Opens automatically |
None |
Opens nothing |
Bookmarks |
Opens in bookmarks |
Thumbnails |
Opens in thumbnails |
FullScreen |
Opens in full screen |
Example:
[C#]
//Instantiate Pdf instance
Pdf pdf1 = new Pdf();
//Set OpenType property of Pdf instance to any pre-defined value
pdf1.OpenType = OpenType.Thumbnails;
...
[VB.NET]
'Instantiate Pdf instance
Dim pdf1 As Pdf = New Pdf()
'Set OpenType property of Pdf instance to any pre-defined value
pdf1.OpenType = OpenType.Thumbnails
...
[XML]
<Pdf xmlns="Aspose.Pdf" OpenType="Thumbnails">
...
</Pdf>