Convert
Leave feedback
On this page
Converts the loaded PDF document to Markdown (MD) and writes the result to the specified stream.
public void Convert(Stream outputStream,
Action<WordProcessingConvertOptions> convertOptionsAction = null)
parameter | description |
---|---|
outputStream | The stream where the converted MD will be written. |
convertOptionsAction | Optional delegate to configure MD-specific conversion options. Use WordProcessingConvertOptions to set options such as output format or password protection. |
For more details and examples, see the LowCode developer guide: https://docs.groupdocs.net/conversion/developer-guide/
// Stream-based conversion with convert options using (var converter = new PdfToMdConverter(“sample.pdf”)) using (var outputStream = new FileStream(“converted.md”, FileMode.Create)) { converter.Convert(outputStream, options => { options.Format = WordProcessingFileType.Md; }); }
- namespace GroupDocs.Conversion.LowCode
Converts the loaded PDF document to Markdown (MD) and saves it to the specified file path.
public void Convert(string filePath,
Action<WordProcessingConvertOptions> convertOptionsAction = null)
parameter | description |
---|---|
filePath | The output file path where the converted MD will be saved. |
convertOptionsAction | Optional delegate to configure MD-specific conversion options. Use WordProcessingConvertOptions to set options such as output format or password protection. |
For more details and examples, see the LowCode developer guide: https://docs.groupdocs.net/conversion/developer-guide/
// Basic conversion using (var converter = new PdfToMdConverter(“sample.pdf”)) { converter.Convert(“converted.md”); } // With convert options using (var converter = new PdfToMdConverter(“sample.pdf”)) { converter.Convert(“converted.md”, options => { options.Format = WordProcessingFileType.Md; }); }
- 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.