Skip to content
ComPDF
DemoFAQ

PDF Generation Template Editor

Open-source visual PDF generation engine with customizable templates and developer-friendly APIs.

View on GitHub

Select Page Range for Conversion

ComPDF Conversion SDK supports converting a specified page range. When an empty string is passed, all pages will be converted. If the page range exceeds one page, you can also choose to enable the output_document_per_page option to output each PDF page as a separate file. The following example demonstrates how to specify a page range when performing a conversion task:

objective-c
WordOptions *options = [[WordOptions alloc] init];
options.output_document_per_page = YES;
options.pageRanges = @"1-3,5,7-9";