GdPicture.NET.14
GdPicture14 Namespace / GdPicturePDF Class
Members Example





In This Topic
GdPicturePDF Class
In This Topic
The GdPicturePDF class is responsible for almost all PDF features that GdPicture.NET toolkit offers. It is used as a wrapper class to allow you easily operate with PDF documents.
Syntax
'Declaration
 
<ObfuscationAttribute(True)>
Public NotInheritable Class GdPicturePDF 
[Obfuscation(true)]
public sealed class GdPicturePDF 
public class GdPicturePDF sealed; 
ObfuscationAttribute()
public sealed class GdPicturePDF 
[Obfuscation(true)]
public __gc __sealed class GdPicturePDF 
[Obfuscation(true)]
public ref class GdPicturePDF sealed 
Remarks
You need to create an object of this class to fully work with PDF files. This object subsequently represents a wrapper for the currently loaded PDF document.
Example
How to load a PDF file using the GdPicturePDF class.
Dim gdpicturePDF As New GdPicturePDF()
Dim status As GdPictureStatus = gdpicturePDF.LoadFromFile("MyPDF.pdf", False)
If status = GdPictureStatus.OK Then
    MessageBox.Show("The file has been loaded successfully.", "GdPicturePDF")
Else
    MessageBox.Show("The file has failed to load with the status: " + status.ToString(), "GdPicturePDF")
End If
gdpicturePDF.Dispose()
GdPicturePDF gdpicturePDF = new GdPicturePDF();
GdPictureStatus status = gdpicturePDF.LoadFromFile("MyPDF.pdf", false);
if (status == GdPictureStatus.OK)
{
    MessageBox.Show("The file has been loaded successfully.", "GdPicturePDF");
}
else
{
   MessageBox.Show("The file has failed to load with the status: " + status.ToString(), "GdPicturePDF");
}
gdpicturePDF.Dispose();
Inheritance Hierarchy

System.Object
   GdPicture14.GdPicturePDF

See Also