# Load DocLang document with options Learn how to load DocLang documents (DCLG markup and DCLX archives) with load options using GroupDocs.Conversion for .NET API. [**GroupDocs.Conversion**](https://products.groupdocs.com/conversion/net) provides [DocLangLoadOptions](https://reference.groupdocs.com/conversion/net/groupdocs.conversion.options.load/doclangloadoptions/) for loading DocLang documents: bare DocLang markup (`.dclg`) or a DocLang archive (`.dclx`). The following option can be set: | Option | Description | |--------|-------------| |**[Format](https://reference.groupdocs.com/conversion/net/groupdocs.conversion.options.load/doclangloadoptions/format/)** | The input file type, `DocLangFileType.Dclg` or `DocLangFileType.Dclx`. It is `null` until it is set. Set it to load a stream without a name as DCLG or DCLX whatever its content. | A DocLang document is read into a Word document and then converts to every format a DOCX document converts to, DocLang excepted. See [Convert to and from DocLang]({{< ref "conversion/net/developer-guide/basic-usage/convert/doclang.md" >}}) for the supported conversions. ## Load a DocLang stream When the source is a stream, GroupDocs.Conversion detects DocLang from its content. To state the format yourself, return `DocLangLoadOptions` with the format set: ```csharp Func getLoadOptions = loadContext => new DocLangLoadOptions { Format = DocLangFileType.Dclg }; using (Converter converter = new Converter(() => File.OpenRead("sample.dclg"), getLoadOptions)) { PdfConvertOptions options = new PdfConvertOptions(); converter.Convert("converted.pdf", options); } ``` ## What is not loaded * Input that is not valid DocLang 0.9 is refused with `CorruptOrDamagedFileException`. * External resources that a DocLang document names are never loaded.