PdfFileEditor.Append
Append(Stream, Stream[], int, int, Stream)
Appends pages, which are chosen from array of documents in portStreams. The result document includes firstInputFile and all portStreams documents pages in the range startPage to endPage.
public bool Append(Stream inputStream, Stream[] portStreams, int startPage, int endPage,
Stream outputStream)
Parameter | Type | Description |
---|---|---|
inputStream | Stream | Input Pdf stream. |
portStreams | Stream[] | Documents to copy pages from. |
startPage | Int32 | Page starts in portStreams documents. |
endPage | Int32 | Page ends in portStreams documents . |
outputStream | Stream | Output Pdf stream. |
Return Value
True for success, or false.
Examples
PdfFileEditor fileEditor = new PdfFileEditor();
Stream instream = new FileStream("input.pdf", FileMode.Open, FileAccess.Read);
Stream stream1 = new FileStream("file1.pdf", FileMode.Open, FileAccess.Read);
Stream stream2 = new FileStream("file2.pdf", FileMode.Open, FileAccess.Read);
Stream outstream = new FileStream("outfile.pdf", FileMode.Create, FileAccess.Write);
fileEditor.Append(instream, new Stream[] { stream1, stream2}, 3, 5, outstream);
See Also
- class PdfFileEditor
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF
Append(string, string[], int, int, string)
Appends pages, which are chosen from portFiles documents. The result document includes firstInputFile and all portFiles documents pages in the range startPage to endPage.
public bool Append(string inputFile, string[] portFiles, int startPage, int endPage,
string outputFile)
Parameter | Type | Description |
---|---|---|
inputFile | String | Input Pdf file. |
portFiles | String[] | Documents to copy pages from. |
startPage | Int32 | Page starts in portFiles documents. |
endPage | Int32 | Page ends in portFiles documents . |
outputFile | String | Output Pdf document. |
Return Value
True if operation was succeeded.
Examples
PdfFileEditor fileEditor = new PdfFileEditor();
fileEditor.Append("input.pdf", new string[] { "file1.pdf", "file2.pdf"}, 3, 5, "outfile.pdf");
See Also
- class PdfFileEditor
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF
Append(string, string, int, int, string)
Appends pages, which are chosen from portFile within the range from startPage to endPage, in portFile at the end of firstInputFile.
public bool Append(string inputFile, string portFile, int startPage, int endPage, string outputFile)
Parameter | Type | Description |
---|---|---|
inputFile | String | Input Pdf file. |
portFile | String | Pages from Pdf file. |
startPage | Int32 | Page starts in portFile. |
endPage | Int32 | Page ends in portFile. |
outputFile | String | Output Pdf document. |
Return Value
True if operation was succeeded.
Examples
PdfFileEditor fileEditor = new PdfFileEditor();
fileEditor.Append("input.pdf", "file1.pdf", 3, 5, "outfile.pdf");
See Also
- class PdfFileEditor
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF
Append(Stream, Stream, int, int, Stream)
Appends pages,which are chosen from portStream within the range from startPage to endPage, in portStream at the end of firstInputStream.
public bool Append(Stream inputStream, Stream portStream, int startPage, int endPage,
Stream outputStream)
Parameter | Type | Description |
---|---|---|
inputStream | Stream | Input file Stream. |
portStream | Stream | Pages from Pdf file Stream. |
startPage | Int32 | Page starts in portFile Stream. |
endPage | Int32 | Page ends in portFile Stream. |
outputStream | Stream | Output Pdf file Stream. |
Return Value
True for success, or false.
Examples
PdfFileEditor fileEditor = new PdfFileEditor();
Stream instream = new FileStream("input.pdf", FileMode.Open, FileAccess.Read);
Stream stream1 = new FileStream("file1.pdf", FileMode.Open, FileAccess.Read);
Stream outstream = new FileStream("outfile.pdf", FileMode.Create, FileAccess.Write);
fileEditor.Append(instream, stream1, 3, 5, "outfile.pdf");
See Also
- class PdfFileEditor
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF
Append(Stream, Stream[], int, int, HttpResponse)
Appends documents to source document and saves result into response object.
public bool Append(Stream inputStream, Stream[] portStreams, int startPage, int endPage,
HttpResponse response)
Parameter | Type | Description |
---|---|---|
inputStream | Stream | Stream which contains source document. |
portStreams | Stream[] | Array of streams with documents to be appended. |
startPage | Int32 | Start page of appended page. |
endPage | Int32 | End page of appended pages. |
response | HttpResponse | Response object where document will be saved. |
Return Value
true if operation was successful.
See Also
- class PdfFileEditor
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF
Append(string, string[], int, int, HttpResponse)
Appends documents to source document and saves result into HttpResponse object.
public bool Append(string inputFile, string[] portFiles, int startPage, int endPage,
HttpResponse response)
Parameter | Type | Description |
---|---|---|
inputFile | String | Name of file containing source document. |
portFiles | String[] | Array of file names containing appended documents. |
startPage | Int32 | Start page of appended pages. |
endPage | Int32 | End page of appended pages. |
response | HttpResponse | Response object where document will be saved. |
Return Value
true if operation was succeeded.
See Also
- class PdfFileEditor
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF