Dim gdpicturePDF As New GdPicturePDF()
Dim status As GdPictureStatus = gdpicturePDF.LoadFromFile("test.pdf", False)
If status = GdPictureStatus.OK Then
status = gdpicturePDF.SetViewerPageMode(PdfViewerPageMode.PdfViewerPageModeFullScreen)
If status = GdPictureStatus.OK Then
status = gdpicturePDF.SetViewerNonFullScreenPageMode(PdfViewerNonFullScreenPageMode.PdfViewerNonFullScreenPageModeUseThumbs)
If status = GdPictureStatus.OK Then
If gdpicturePDF.SaveToFile("test_SetViewerNonFullScreenPageMode_func.pdf", False) = GdPictureStatus.OK Then
MessageBox.Show("The page mode has been set successfully.", "Example: SetViewerNonFullScreenPageMode")
End If
Else
MessageBox.Show("The SetViewerNonFullScreenPageMode() method has failed with the status: " + status.ToString(), "Example: SetViewerNonFullScreenPageMode")
End If
Else
MessageBox.Show("The SetViewerPageMode() method has failed with the status: " + status.ToString(), "Example: SetViewerNonFullScreenPageMode")
End If
Else
MessageBox.Show("The file can't be loaded.", "Example: SetViewerNonFullScreenPageMode")
End If
gdpicturePDF.Dispose()
GdPicturePDF gdpicturePDF = new GdPicturePDF();
GdPictureStatus status = gdpicturePDF.LoadFromFile("test.pdf", false);
if (status == GdPictureStatus.OK)
{
status = gdpicturePDF.SetViewerPageMode(PdfViewerPageMode.PdfViewerPageModeFullScreen);
if (status == GdPictureStatus.OK)
{
status = gdpicturePDF.SetViewerNonFullScreenPageMode(PdfViewerNonFullScreenPageMode.PdfViewerNonFullScreenPageModeUseThumbs);
if (status == GdPictureStatus.OK)
{
if (gdpicturePDF.SaveToFile("test_SetViewerNonFullScreenPageMode_func.pdf", false) == GdPictureStatus.OK)
MessageBox.Show("The page mode has been set successfully.", "Example: SetViewerNonFullScreenPageMode");
}
else
{
MessageBox.Show("The SetViewerNonFullScreenPageMode() method has failed with the status: " + status.ToString(), "Example: SetViewerNonFullScreenPageMode");
}
}
else
{
MessageBox.Show("The SetViewerPageMode() method has failed with the status: " + status.ToString(), "Example: SetViewerNonFullScreenPageMode");
}
}
else
{
MessageBox.Show("The file can't be loaded.", "Example: SetViewerNonFullScreenPageMode");
}
gdpicturePDF.Dispose();