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

PdfToDocxConverter

PdfToDocxConverter constructor (1 of 2)

Initializes a new instance of the PdfToDocxConverter class for converting PDF documents to DOCX from a stream.

public PdfToDocxConverter(Stream stream, Action<PdfLoadOptions> loadOptionsAction = null)
parameterdescription
streamThe stream containing the PDF document data.
loadOptionsActionOptional delegate to configure PDF-specific loading options. Use PdfLoadOptions to set options such as password for protected documents.

Remarks

For more details and examples, see the LowCode developer guide: https://docs.groupdocs.net/conversion/developer-guide/

Examples

// Stream-based conversion using (var stream = new FileStream(“sample.pdf”, FileMode.Open)) { var converter = new PdfToDocxConverter(stream, options => { options.Password = “password”; }); converter.Convert(“converted.docx”); }

See Also


PdfToDocxConverter constructor (2 of 2)

Initializes a new instance of the PdfToDocxConverter class for converting PDF documents to DOCX.

public PdfToDocxConverter(string filePath, Action<PdfLoadOptions> loadOptionsAction = null)
parameterdescription
filePathThe path to the source PDF file to be converted.
loadOptionsActionOptional delegate to configure PDF-specific loading options. Use PdfLoadOptions to set options such as password for protected documents.

Remarks

For more details and examples, see the LowCode developer guide: https://docs.groupdocs.net/conversion/developer-guide/

Examples

// Basic conversion using (var converter = new PdfToDocxConverter(“sample.pdf”)) { converter.Convert(“converted.docx”); } // With load options using (var converter = new PdfToDocxConverter(“sample.pdf”, options => { options.Password = “password”; })) { converter.Convert(“converted.docx”); }

See Also