1. Home
  2. /
  3. GroupDocs.Conversion.LowCode
  4. /
  5. GroupDocs.Conversion.LowCode
  6. /
  7. PdfToDocxConverter

PdfToDocxConverter class

Provides a simple API to convert PDF documents to Microsoft Word DOCX format using the GroupDocs.Conversion LowCode interface.

This converter is part of the LowCode API, which allows you to perform PDF to DOCX conversions with minimal code and configuration.

Features:

  • Convert PDF files to DOCX with high fidelity
  • Support for password-protected PDF documents
  • Customize loading and conversion via PdfLoadOptions and WordProcessingConvertOptions
  • Stream and file-based conversion support

Code Examples:

See the LowCode developer guide for more details: https://docs.groupdocs.net/conversion/developer-guide/

public sealed class PdfToDocxConverter : Converter<PdfLoadOptions, WordProcessingConvertOptions>

Public Members

namedescription
PdfToDocxConverter(…)Initializes a new instance of the PdfToDocxConverter class for converting PDF documents to DOCX. (2 constructors)
Convert(…)Converts the loaded PDF document to DOCX and saves it to the specified file path. (2 methods)

Remarks

Example - Basic conversion:

using GroupDocs.Conversion.LowCode;

// Load license keys
var publicKey = Environment.GetEnvironmentVariable("GD_PUBLIC_KEY");
var privateKey = Environment.GetEnvironmentVariable("GD_PRIVATE_KEY");

// Apply the license
License.Set(publicKey, privateKey);

// Create a converter for the PDF file
var converter = new PdfToDocxConverter("business-plan.pdf");

// Convert PDF to DOCX
converter.Convert("business-plan.docx");

Example - Advanced conversion with options:

var converter = new PdfToDocxConverter("protected.pdf", options =>
{
    options.Password = "12345";
    options.FlattenAllFields = true;
    options.HidePdfAnnotations = true;
});
converter.Convert("converted.docx", convertOptions =>
{
    convertOptions.PageSize = PageSize.A4;
});

See Also