GdPicture.NET.14.API
GdPicture14 Namespace / GdPictureDocumentConverter Class / Dispose() Method
Example





In This Topic
Dispose() Method
In This Topic
This method disposes already used GdPictureDocumentConverter object completely. All related resources used by this object are released.
Syntax
'Declaration
 
Public Sub Dispose() 
public void Dispose()
public procedure Dispose(); 
public function Dispose();
public: void Dispose(); 
public:
void Dispose(); 
Remarks
This method implicitly calls the CloseDocument() method.
Example
Saving the source DOCX document as the resulting PDF document.
Dim gdpictureDocumentConverter As GdPictureDocumentConverter = New GdPictureDocumentConverter()
' Loading the source document.
gdpictureDocumentConverter.LoadFromFile("input.docx", GdPicture14.DocumentFormat.DocumentFormatDOCX)
' Saving as the PDF document.
gdpictureDocumentConverter.SaveAsPDF("output.pdf", PdfConformance.PDF1_5)
' Disposing off the used object.
gdpictureDocumentConverter.Dispose()
GdPictureDocumentConverter gdpictureDocumentConverter = new GdPictureDocumentConverter();
// Loading the source document.
gdpictureDocumentConverter.LoadFromFile("input.docx", GdPicture14.DocumentFormat.DocumentFormatDOCX);
// Saving as the PDF document.
gdpictureDocumentConverter.SaveAsPDF("output.pdf", PdfConformance.PDF1_5);
// Disposing off the used object.
gdpictureDocumentConverter.Dispose();
See Also