π¦ Prerequisites
- .NET 6 or later
- GroupDocs.Merger for .NET (install via NuGet:
Install-Package GroupDocs.Merger) - Trial license: Get a free 30-day temporary license
π» Key Capabilities
- Merge Word, Excel, and PDF files into a single PDF binder
- Extract specific pages from an existing PDF binder
- Validate merged output by retrieving total page count
- Scan a folder and automatically merge all supported documents
π Code Example
See the following example files for each operation:
MergeMultipleFormatsIntoPdf.csβ combines DOCX, XLSX, and PDF into one PDF binderExtractBinderSection.csβ extracts a subset of pages from a PDF binderGetMergedPageCount.csβ retrieves the total page count of a merged PDFCreatePdfBinderFromFolder.csβ scans a folder and merges all supported documents
π How to Use
- Install GroupDocs.Merger via NuGet.
- Prepare your source files (e.g.,
.docx,.xlsx,.pdf). - Use
Mergerto join files withJoinOptions(PDF must be the primary file for cross-format conversion). - For extraction, use
ExtractOptionswith desired page numbers. - Call
Save()to persist the result. - Use
GetDocumentInfo()to verify output integrity.
π Related Articles
- (none provided)