GdPicture.NET.14.API
GdPicture14 Namespace / GdPicturePDF Class / GdPicturePDF Constructor
Example





In This Topic
GdPicturePDF Constructor
In This Topic
A standard constructor for the GdPicturePDF class. It initializes an instance of the GdPicturePDF class, which subsequently represents a wrapper for any PDF file. You will need this object to perform all available operations with the current PDF document. Please note that a newly created GdPicturePDF object does not automatically create a new empty PDF document.
Syntax
'Declaration
 
Public Function New()
public GdPicturePDF()
public GdPicturePDF(); 
public function GdPicturePDF();
public: GdPicturePDF();
public:
GdPicturePDF();
Example
How to create a GdPicturePDF object.
'The first option
Dim gdpicturePDF As New GdPicturePDF()
'You can do your stuff with gdpicturePDF here.
gdpicturePDF.Dispose()
            
'The second option
            
'The very good practice is to use the keyword "using".
Using gdpicturePDF As New GdPicturePDF()
'You can do your stuff with gdpicturePDF here.
End Using
//The first option
GdPicturePDF gdpicturePDF = new GdPicturePDF();
//You can do your stuff with gdpicturePDF here.
gdpicturePDF.Dispose();
            
//The second option
            
//The very good practice is to use the keyword "using".
using (GdPicturePDF gdpicturePDF = new GdPicturePDF())
{
    //You can do your stuff with gdpicturePDF here.
}
See Also