# Convert to WordProcessing with advanced options Follow this guide and learn how to convert documents to Word and Open Document formats like DOC, DOCX, ODT, OTT formats with page size, margins, DPI and other customizations using GroupDocs.Conversion for .NET. GroupDocs.Conversion provides the [WordProcessingConvertOptions](https://reference.groupdocs.com/conversion/net/groupdocs.conversion.options.convert/wordprocessingconvertoptions) class to give you control over conversion result when convert to WordProcessing formats. Along with [common convert options]({{< ref "conversion/net/developer-guide/advanced-usage/converting/common-conversion-options/_index.md" >}}) from base class [WordProcessingConvertOptions](https://reference.groupdocs.com/conversion/net/groupdocs.conversion.options.convert/wordprocessingconvertoptions) has the following additional options: * **[Format](https://reference.groupdocs.com/conversion/net/groupdocs.conversion.options.convert/convertoptions-1/format/)** specifies desired result document type. Available options are: *Doc, Docm, Docx, Dot, Dotx, Rtf, Odt, Ott, Mobi, Txt, Md*. * **[SizeSettings](https://reference.groupdocs.com/conversion/net/groupdocs.conversion.options.convert/wordprocessingconvertoptions/sizesettings/)** specifies the page size through a [PageSizeOptions](https://reference.groupdocs.com/conversion/net/groupdocs.conversion.options/pagesizeoptions/) object: `PageSize` (*Default, A3, A4, A5, Letter, Legal, Tabloid*, …), or `PageWidth` and `PageHeight` in points (1 point = 1/72 inch). When a width or height is set, `PageSize` is automatically changed to Custom. * **[OrientationSettings](https://reference.groupdocs.com/conversion/net/groupdocs.conversion.options.convert/wordprocessingconvertoptions/orientationsettings/)** specifies page orientation. Available options are: *Default, Landscape, Portrait*. * **[FallbackPageSize](https://reference.groupdocs.com/conversion/net/groupdocs.conversion.options.convert/wordprocessingconvertoptions/fallbackpagesize)** specifies the fallback page size to use when the input document's page size cannot be determined. * **[Dpi](https://reference.groupdocs.com/conversion/net/groupdocs.conversion.options.convert/wordprocessingconvertoptions/dpi)** specifies desired page dpi after conversion. The default resolution is 96 dpi. * **[MarginSettings](https://reference.groupdocs.com/conversion/net/groupdocs.conversion.options.convert/wordprocessingconvertoptions/marginsettings/)** specifies the desired page margins in points after conversion through a [PageMarginOptions](https://reference.groupdocs.com/conversion/net/groupdocs.conversion.options/pagemarginoptions/) object (`Top`, `Bottom`, `Left`, `Right`). * **[Password](https://reference.groupdocs.com/conversion/net/groupdocs.conversion.options.convert/wordprocessingconvertoptions/password)** whether the converted document will be password protected with the specified password. * **[PdfRecognitionMode](https://reference.groupdocs.com/conversion/net/groupdocs.conversion.options.convert/wordprocessingconvertoptions/pdfrecognitionmode)** specifies the recognition mode when converting from PDF. Available options are: *Textbox, Flow*. Flow mode is recommended for maximum content editability. * **[RtfOptions](https://reference.groupdocs.com/conversion/net/groupdocs.conversion.options.convert/wordprocessingconvertoptions/rtfoptions)** specifies RTF specific options. See [below](#rtfoptions). * **[MarkdownOptions](https://reference.groupdocs.com/conversion/net/groupdocs.conversion.options.convert/wordprocessingconvertoptions/markdownoptions)** specifies Markdown specific options when converting to Markdown format. * **[Zoom](https://reference.groupdocs.com/conversion/net/groupdocs.conversion.options.convert/wordprocessingconvertoptions/zoom)** specifies the zoom level in percentage. Default is 100. The following code snippet shows how to convert to WordProcessing with advanced options: ```csharp using (Converter converter = new Converter("sample.pdf")) { WordProcessingConvertOptions options = new WordProcessingConvertOptions { PageNumber = 2, PagesCount = 1, Format = WordProcessingFileType.Docx, OrientationSettings = PageOrientation.Portrait }; converter.Convert("converted.docx", options); } ``` ## Page Size and Dimensions You can control page size using either predefined sizes or custom dimensions: ### Using Predefined Page Size ```csharp using (Converter converter = new Converter("sample.pdf")) { WordProcessingConvertOptions options = new WordProcessingConvertOptions { SizeSettings = new PageSizeOptions { PageSize = PageSize.A4 }, OrientationSettings = PageOrientation.Portrait }; converter.Convert("a4-document.docx", options); } ``` ### Using Custom Dimensions ```csharp using (Converter converter = new Converter("sample.pdf")) { WordProcessingConvertOptions options = new WordProcessingConvertOptions { SizeSettings = new PageSizeOptions { PageWidth = 612, // 8.5 inches × 72 points/inch PageHeight = 792 // 11 inches × 72 points/inch } }; converter.Convert("custom-size.docx", options); } ``` ## Page Margins Set custom margins for all four sides: ```csharp using (Converter converter = new Converter("sample.pdf")) { WordProcessingConvertOptions options = new WordProcessingConvertOptions { MarginSettings = new PageMarginOptions { Top = 72, // 1 inch Bottom = 72, // 1 inch Left = 90, // 1.25 inches Right = 90 // 1.25 inches } }; converter.Convert("margins-document.docx", options); } ``` ## PDF Recognition Mode When converting from PDF, control how content is interpreted: ```csharp using (Converter converter = new Converter("document.pdf")) { WordProcessingConvertOptions options = new WordProcessingConvertOptions { PdfRecognitionMode = PdfRecognitionMode.Flow // Recommended for editable content }; converter.Convert("editable-document.docx", options); } ``` Available recognition modes: - **Textbox** - Preserves exact layout using textboxes (less editable) - **Flow** - Optimizes for content flow and editability (recommended) ### RtfOptions The [RtfOptions](https://reference.groupdocs.com/conversion/net/groupdocs.conversion.options.convert/rtfoptions) class provides RTF-specific convert options: * **ExportImagesForOldReaders** - specifies whether the keywords for "old readers" are written to RTF or not. This can significantly affect the size of the RTF document. The following code snippet shows how to convert to RTF with specific options: ```csharp using (Converter converter = new Converter("sample.pdf")) { WordProcessingConvertOptions options = new WordProcessingConvertOptions { Format = WordProcessingFileType.Rtf, RtfOptions = new RtfOptions { ExportImagesForOldReaders = true } }; converter.Convert("converted.rtf", options); } ``` ## Convert to Markdown Convert documents to Markdown format: ```csharp using (Converter converter = new Converter("sample.pdf")) { WordProcessingConvertOptions options = new WordProcessingConvertOptions { Format = WordProcessingFileType.Md }; converter.Convert("converted.md", options); } ``` Markdown output has dedicated options for controlling how images are handled — inlined as base64 (default) or routed through a custom callback. See [Convert to Markdown with advanced options]({{< ref "conversion/net/developer-guide/advanced-usage/converting/conversion-options-by-document-family/convert-to-markdown-with-advanced-options.md" >}}). ## More Resources - [API Reference: WordProcessingConvertOptions](https://reference.groupdocs.com/conversion/net/groupdocs.conversion.options.convert/wordprocessingconvertoptions) - [Supported File Formats]({{< ref "conversion/net/getting-started/supported-document-formats.md" >}}) - [Common Conversion Options]({{< ref "conversion/net/developer-guide/advanced-usage/converting/common-conversion-options/_index.md" >}})