GroupDocs.Conversion
Convert between 170+ document and image formats — PDF, Office, CAD, email, and more — with a single, consistent API across .NET, Java, Node.js, and Python.
Choose your platform selecting one updates the snippets below
Getting started with .NET
using GroupDocs.Conversion;
using GroupDocs.Conversion.Options.Convert;
// Load the source PDF file
using (var converter = new Converter("resume.pdf"))
{
// Set the convert options
var convertOptions = new WordProcessingConvertOptions();
// Convert PDF to DOCX
converter.Convert("resume.docx", convertOptions);
}
import com.groupdocs.conversion.Converter;
import com.groupdocs.conversion.options.convert.WordProcessingConvertOptions;
// Load the source PDF file
Converter converter = new Converter("resume.pdf");
// Set the convert options
WordProcessingConvertOptions convertOptions = new WordProcessingConvertOptions();
// Convert PDF to DOCX
converter.convert("resume.docx", convertOptions);
const groupdocs = require('@groupdocs/groupdocs.conversion');
// Load the source DOCX file
const converter = new groupdocs.Converter("source.docx");
// Set the convert options
const convertOptions = new groupdocs.PdfConvertOptions();
// Convert DOCX to PDF
converter.convert("converted.pdf", convertOptions);
from groupdocs.conversion import Converter
from groupdocs.conversion.options.convert import PdfConvertOptions
# Load the source DOCX file
with Converter("business-plan.docx") as converter:
# Set conversion options
convert_options = PdfConvertOptions()
# Convert DOCX to PDF
converter.convert("converted.pdf", convert_options)