Convert N consecutive pages

GroupDocs.Conversion provides the feature to convert N consecutive pages.

Here are the steps to follow:

Following code snippet shows how to convert 3 consecutive pages starting from second page of the source document:

using (Converter converter = new Converter("sample.docx"))
{
    PdfConvertOptions options = new PdfConvertOptions
    {
        PageNumber = 2,
        PagesCount = 3
    };
    converter.Convert("converted.pdf", options);
}

More resources

Examples and Demos

Please find more use-cases and complete C# sources of our backend and frontend examples and try them for free!