Click or drag to resize

PdfDocument MergeFiles Method ( String )

Merges the PDF documents specified by the paths. ***It is recommended to use method "MergeFiles(string[] inputFiles, string outputFile)" or "MergeFiles(stream[] inputFiles, stream[] outputFile)", which automatically release srcFiles and mergeFils resources after merging.***

Namespace: Spire.Pdf
Assembly: Spire.Pdf (in Spire.Pdf.dll) Version: 11.3.7.0 (11.3.7.1046)
Syntax
public static PdfDocumentBase MergeFiles(
	string[] paths
)

Parameters

paths
Type: System String
The array of string paths.

Return Value

Type: PdfDocumentBase
A new PDF document containing all merged documents.
See Also