Winnovative PDF Merge Library for .NET Documentation

PDFMergeAppendPDFStream Method (Stream, String, Int32, Int32)

Winnovative PDF Merge Library for .NET
Appends at most length pages from the specified password protected source document starting from zero based index startIndex in the source document.

Namespace:  Winnovative.PDFMerge
Assembly:  wnvpdfmerge (in wnvpdfmerge.dll) Version: 10.0.0.0 (10.0.0.0)
Syntax

public void AppendPDFStream(
	Stream pdfStream,
	string password,
	int startIndex,
	int length
)

Parameters

pdfStream
Type: System.IOStream
The PDF stream to be appended
password
Type: SystemString
The password to open the appended document. If this argument is null no password will be used.
startIndex
Type: SystemInt32
The zero based index of the page from the source document from where to start appending pages
length
Type: SystemInt32
The number of pages to be taken from the source document and appended to the merged document. If the specified length is bigger than the available number of pages starting from the specified start page index, only the available number of pages will be appended. If the length is negative e.g -1, all the PDF pages available from startIndex will be appended to the merged document.
See Also

Reference