Method Merge

Namespace
SoftZenPdf
Assembly
SoftZenPdf.dll

Merge(params PdfReader[])

Creates a new document containing every page of each source, in order.

public static PdfDocument Merge(params PdfReader[] sources)

Parameters

sources PdfReader[]

The documents to combine.

Returns

PdfDocument

A new, unsaved document.

Remarks

Pages keep their content, resources, size and rotation. Bookmarks, the interactive form structure, named destinations and document metadata of the sources are not carried over.

Exceptions

UnauthorizedAccessException

An encrypted source was opened without owner rights and does not permit copying and assembly.