GdPicture.NET Reference Guide
GdPictureDocumentConverter Class
Members  Example 





GdPicture14 Namespace : GdPictureDocumentConverter Class
The GdPictureDocumentConverter class provides the document conversion from wide variety of document formats. It is used as a wrapper class to allow you easily load, save and convert your files of different types. Please find all the currently supported input document formats listed here.

This class is only available in Ultimate edition of the toolkit. For further assistance, please refer to our Comparison Matrix page.

Syntax
'Declaration
 
Public NotInheritable Class GdPictureDocumentConverter 
public sealed class GdPictureDocumentConverter 
public class GdPictureDocumentConverter sealed; 
public sealed class GdPictureDocumentConverter 
public __gc __sealed class GdPictureDocumentConverter 
public ref class GdPictureDocumentConverter sealed 
Remarks
Please, be aware that currently this class does not provide a valid conversion of existing PDF documents to PDF/A documents, as the toolkit does not support this feature.

Likewise, this class is only available in Ultimate edition of the toolkit.

Example
How to use this class.
Using oConverter As New GdPictureDocumentConverter()
    Dim status As GdPictureStatus = oConverter.LoadFromFile("test.txt", GdPicture14.DocumentFormat.DocumentFormatUNKNOWN)
    If status = GdPictureStatus.OK Then
        MessageBox.Show("The file has been loaded successfully.", "Example: LoadFromFile")
    Else
        MessageBox.Show("The file has failed to load. Status: " + status.ToString(), "Example: LoadFromFile")
    End If
End Using
using (GdPictureDocumentConverter oConverter = new GdPictureDocumentConverter())
{
    GdPictureStatus status = oConverter.LoadFromFile("test.txt", GdPicture14.DocumentFormat.DocumentFormatUNKNOWN);
    if (status == GdPictureStatus.OK)
    {
        MessageBox.Show("The file has been loaded successfully.", "Example: LoadFromFile");
    }
    else
    {
        MessageBox.Show("The file has failed to load. Status: " + status.ToString(), "Example: LoadFromFile");
    }
}
Inheritance Hierarchy

System.Object
   GdPicture14.GdPictureDocumentConverter

See Also

Reference

GdPictureDocumentConverter Members
GdPicture14 Namespace