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:

Converter converter = new Converter("c:\\files\\sample.docx");
PdfConvertOptions options = new PdfConvertOptions();

converter.convert("converted.pdf", options);

© Aspose Pty Ltd 2001-2022. All Rights Reserved.