PdfToDocxConverter
Leave feedback
On this page
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)
parameter | description |
---|---|
stream | The stream containing the PDF document data. |
loadOptionsAction | Optional delegate to configure PDF-specific loading options. Use PdfLoadOptions to set options such as password for protected documents. |
For more details and examples, see the LowCode developer guide: https://docs.groupdocs.net/conversion/developer-guide/
// 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”); }
- namespace GroupDocs.Conversion.LowCode
Initializes a new instance of the PdfToDocxConverter
class for converting PDF documents to DOCX.
public PdfToDocxConverter(string filePath, Action<PdfLoadOptions> loadOptionsAction = null)
parameter | description |
---|---|
filePath | The path to the source PDF file to be converted. |
loadOptionsAction | Optional delegate to configure PDF-specific loading options. Use PdfLoadOptions to set options such as password for protected documents. |
For more details and examples, see the LowCode developer guide: https://docs.groupdocs.net/conversion/developer-guide/
// 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”); }
- namespace GroupDocs.Conversion.LowCode
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.