Pdf Duo .Net component
Split the PDF document and get for each page a separate PDF file.

Namespace: DuoDimension
Assembly: pdfduo-net (in pdfduo-net.dll) Version: 2.4.0.0 (2.4)

Syntax

         
 C#  Visual Basic  Visual C++ 
public static void PdfSplit(
	string SourceFile,
	string OutputPath
)
Public Shared Sub PdfSplit ( _
	SourceFile As String, _
	OutputPath As String _
)
public:
static void PdfSplit(
	String^ SourceFile, 
	String^ OutputPath
)

Parameters

SourceFile
String
Source PDF file.
OutputPath
String
Directory for destination files.

Examples

CopyC#
string file_pdf = @"D:\document.pdf";
string dir_out = @"D:\";

try
{
    DuoDimension.PdfTools.PdfSplit(file_pdf, dir_out);
}
catch (Exception ex)
{
    MessageBox.Show(ex.Message);
}
CopyVB.NET
Dim file_pdf As String = "D:\document.pdf" 
Dim dir_out As String = "D:\"

Try
    DuoDimension.PdfTools.PdfSplit(file_pdf, dir_out)
Catch ex As Exception
    MessageBox.Show(ex.Message)
End Try

See Also