Members Example





In This Topic
GdPicture14 Namespace / GdPictureDocumentConverter Class

GdPictureDocumentConverter Class

In This Topic
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 the files of different types. Please find all the currently supported input document formats listed here.
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 
Example
Saving the source DOCX document as the resulting PDF document.
Using 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)
End Using
using (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);
}
Inheritance Hierarchy

System.Object
   GdPicture14.GdPictureDocumentConverter

See Also