Click or drag to resize

PDFSplitManagerSplitByBookmarksFromMemoryToFolder 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[] SplitByBookmarksFromMemoryToFolder(
	byte[] srcPdfBytes,
	string destFolder
)

Parameters

srcPdfBytes  Byte
The source PDF document as an array of bytes
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