PDFMergeInsertPDFStream(Int32, Stream, String, Int32, Int32) Method |
Inserts at most length pages from the specified password protected source stream, starting from zero
based index startIndex in the source document, at the specified position in the merged document.
Namespace: ExpertPdf.MergePdfAssembly: epmergepdf (in epmergepdf.dll) Version: 10.0
Syntaxpublic void InsertPDFStream(
int insertIndex,
Stream pdfStream,
string password,
int startIndex,
int length
)
Public Sub InsertPDFStream (
insertIndex As Integer,
pdfStream As Stream,
password As String,
startIndex As Integer,
length As Integer
)
Parameters
- insertIndex Int32
- The zero based position of the first inserted page in the merged document:
0 inserts before the first page, GetCurrentPageCount inserts at the end.
- pdfStream Stream
- The PDF stream to be inserted. It must stay open until the merged document is saved.
- password String
- The password to open the inserted document. If this argument is null no password will be used.
- startIndex Int32
- The zero based index of the page from the source document from where to start taking pages
- length Int32
- The number of pages to be taken from the source document. If the length is negative e.g -1,
all the PDF pages available from startIndex are inserted.
RemarksThe stream is read when the merged document is saved: keep it open until then.
See Also