Click or drag to resize

PDFSplitManagerSplitByBookmarksFromFileToFolder Method

Splits the specified source PDF document at its top level bookmarks and saves one PDF file for each chapter in the destination folder, named from the bookmark title.

Namespace: ExpertPdf.Anywhere.PDFSplit
Assembly: ExpertPdf.Anywhere (in ExpertPdf.Anywhere.dll) Version: 22.0
Syntax
public string[] SplitByBookmarksFromFileToFolder(
	string srcPDFFilePath,
	string destFolder
)

Parameters

srcPDFFilePath  String
The full path of source PDF file
destFolder  String
The folder where to save the new documents. It is created when it does not exist.

Return Value

String
The full paths of the saved files, in page order.
Remarks
The file names are the bookmark titles with the characters that are not allowed in file names replaced by '_' (at most 100 characters); a repeated title gets a number: "Title (2).pdf". The pages before the first chapter are saved as "Pages 1-N.pdf". Existing files with the same names are replaced.
See Also