Load document from local disk

When document is located on the local disk GroupDocs.Conversion enables you to convert the document by passing the path to the Converter class constructor. GroupDocs.Conversion will open the file for reading only when any method of Converter class is called.

Following code snippet shows how to load document from local disk:

public static void Run()
    using (Converter converter = new Converter("c:\files\sample.docx")) 
        PdfConvertOptions options = new PdfConvertOptions();
        converter.Convert("converted.pdf", options);

More resources

Examples and Demos

Please find more use-cases and complete C# sources of our backend and frontend examples and try them for free!