PdfToMdConverter class
Leave feedback
On this page
Provides a simple API to convert PDF documents to Markdown (MD) format using the GroupDocs.Conversion LowCode interface.
This converter is part of the LowCode API, which allows you to perform PDF to MD conversions with minimal code and configuration.
Features:
- Convert PDF files to Markdown (MD) with high fidelity
- Support for password-protected PDF documents
- Customize loading and conversion via
PdfLoadOptions
andWordProcessingConvertOptions
- Stream and file-based conversion support
Code Examples:
- C# examples: groupdocs-conversion-lowcode-examples-csharp
- VB.NET examples: groupdocs-conversion-lowcode-examples-vbnet
- F# examples: groupdocs-conversion-lowcode-examples-fsharp
See the LowCode developer guide for more details: https://docs.groupdocs.net/conversion/developer-guide/
public sealed class PdfToMdConverter : Converter<PdfLoadOptions, WordProcessingConvertOptions>
name | description |
---|---|
PdfToMdConverter(…) | Initializes a new instance of the PdfToMdConverter class for converting PDF documents to Markdown (MD). (2 constructors) |
Convert(…) | Converts the loaded PDF document to Markdown (MD) and saves it to the specified file path. (2 methods) |
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 PdfToMdConverter("document.pdf");
// Convert PDF to Markdown
converter.Convert("document.md");
Example - Advanced conversion with options:
var converter = new PdfToMdConverter("protected.pdf", options =>
{
options.Password = "12345";
options.FlattenAllFields = true;
options.HidePdfAnnotations = true;
});
converter.Convert("document.md", convertOptions =>
{
convertOptions.Pages = new List<int> { 1, 2, 3 };
});
- 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.