PdfDocumentSeparate Method (String, String, String, String, String, Boolean) |
Note: This API is now obsolete.
Separates a single PDF into multiple files: one file per page.
Namespace:
Atalasoft.PdfDoc
Assembly:
Atalasoft.PdfDoc (in Atalasoft.PdfDoc.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax [ObsoleteAttribute("This method is obsolete. Use Separate(string source, string destFolder, string fileNameFormat, bool overwrite, SecureString userPassword, SecureString ownerPassword) instead.",
false)]
public static void Separate(
string userPassword,
string ownerPassword,
string source,
string destFolder,
string fileNameFormat,
bool overwrite
)
<ObsoleteAttribute("This method is obsolete. Use Separate(string source, string destFolder, string fileNameFormat, bool overwrite, SecureString userPassword, SecureString ownerPassword) instead.",
false)>
Public Shared Sub Separate (
userPassword As String,
ownerPassword As String,
source As String,
destFolder As String,
fileNameFormat As String,
overwrite As Boolean
)
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].
Remarks
Separated documents will not contain a portfolio, even if the source document contains a portfolio.
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