Click or drag to resize

PdfDocumentSeparate Method (String, String, String, String, String, Boolean)

Separates a single PDF into multiple files: one file per page.

Namespace:  Atalasoft.PdfDoc
Assembly:  Atalasoft.PdfDoc (in Atalasoft.PdfDoc.dll) Version: 11.0.0.0.0.297 (.NET 4.5.2, x86)
Syntax
public static void Separate(
	string userPassword,
	string ownerPassword,
	string source,
	string destFolder,
	string fileNameFormat,
	bool overwrite
)

Parameters

userPassword
Type: SystemString
The user password. Set a value to secure the pdf with a password.
ownerPassword
Type: SystemString
The owner password. Set a value to secure the pdf with a password.
source
Type: SystemString
The source file name.
destFolder
Type: SystemString
The destination folder.
fileNameFormat
Type: SystemString
The file name format.
overwrite
Type: SystemBoolean
if set to true [overwrite].
Examples
string userPass = "";
string ownerPass = "";
string sourceFile = "Example_02403.pdf";
string destFolder = @"C:\myOutputFolder";
string nameFormat = "{0}.pdf";
bool overwriteExisting = true;

PdfDocument.Separate(userPass , ownerPass , sourceFile , destFolder , nameFormat , overwriteExisting );
See Also