PdfFileEditor.Concatenate
Concatenate(string, string, string)
Concatenates two files.
public bool Concatenate(string firstInputFile, string secInputFile, string outputFile)
| Parameter | Type | Description |
|---|---|---|
| firstInputFile | String | First file to concatenate. |
| secInputFile | String | Second file to concatenate. |
| outputFile | String | Output file. |
Return Value
True if operation was succeeded.
Examples
PdfFileEditor fileEditor = new PdfFileEditor();
fileEditor.Concatenate("file1.pdf", "file2.pdf", "outfile.pdf");
See Also
- class PdfFileEditor
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF
Concatenate(Stream, Stream, Stream)
Concatenates two files.
public bool Concatenate(Stream firstInputStream, Stream secInputStream, Stream outputStream)
| Parameter | Type | Description |
|---|---|---|
| firstInputStream | Stream | Stream of first file. |
| secInputStream | Stream | Stream of second file. |
| outputStream | Stream | Stream where result file will be stored. |
Return Value
True if operation was succeeded.
True if operation was succeeded.
Examples
PdfFileEditor fileEditor = new PdfFileEditor();
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.Concatenate(stream1, stream2, outstream);
See Also
- class PdfFileEditor
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF
Concatenate(Document[], Document)
Concatenates documents.
public bool Concatenate(Document[] src, Document dest)
| Parameter | Type | Description |
|---|---|---|
| src | Document[] | Array of source documents. |
| dest | Document | Destination document. |
Return Value
True if concatenation is successful.
See Also
- class Document
- class PdfFileEditor
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF
Concatenate(string[], string)
Concatenates files into one file.
public bool Concatenate(string[] inputFiles, string outputFile)
| Parameter | Type | Description |
|---|---|---|
| inputFiles | String[] | Array of files to concatenate. |
| outputFile | String | Name of output file. |
Return Value
True if operation was succeeded.
Examples
PdfFileEditor pfe = new PdfFileEditor();
pfe.Concatenate(new string[] { "src1.pdf", "src2.pdf" }, "dest.pdf");
See Also
- class PdfFileEditor
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF
Concatenate(Stream[], Stream)
Concatenates files
public bool Concatenate(Stream[] inputStream, Stream outputStream)
| Parameter | Type | Description |
|---|---|---|
| inputStream | Stream[] | Array of streams to be concatenated. |
| outputStream | Stream | Stream where result file will be stored. |
Return Value
True if operation was succeeded.
Examples
PdfFileEditor fileEditor = new PdfFileEditor();
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.Concatenate(new Stream[] { stream1, stream2 } , outstream);
See Also
- class PdfFileEditor
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF
Concatenate(string, string, string, string)
Merges two Pdf documents into a new Pdf document with pages in alternate ways and fill the blank places with blank pages. e.g.: document1 has 5 pages: p1, p2, p3, p4, p5. document2 has 3 pages: p1’, p2’, p3’. Merging the two Pdf document will produce the result document with pages:p1, p1’, p2, p2’, p3, p3’, p4, blankpage, p5, blankpage.
public bool Concatenate(string firstInputFile, string secInputFile, string blankPageFile,
string outputFile)
| Parameter | Type | Description |
|---|---|---|
| firstInputFile | String | First file. |
| secInputFile | String | Second file. |
| blankPageFile | String | PDF file with blank page. |
| outputFile | String | Result file. |
Return Value
True if operation was succeeded.
Examples
PdfFileEditor pfe = new PdfFileEditor();
pfe.Concatenate("src1.pdf", "src2.pdf", "blank.pdf", "dest.pdf");
See Also
- class PdfFileEditor
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF
Concatenate(Stream, Stream, Stream, Stream)
Merges two Pdf documents into a new Pdf document with pages in alternate ways and fill the blank places with blank pages. e.g.: document1 has 5 pages: p1, p2, p3, p4, p5. document2 has 3 pages: p1’, p2’, p3’. Merging the two Pdf document will produce the result document with pages:p1, p1’, p2, p2’, p3, p3’, p4, blankpage, p5, blankpage.
public bool Concatenate(Stream firstInputStream, Stream secInputStream, Stream blankPageStream,
Stream outputStream)
| Parameter | Type | Description |
|---|---|---|
| firstInputStream | Stream | The first Pdf Stream. |
| secInputStream | Stream | The second Pdf Stream. |
| blankPageStream | Stream | The Pdf Stream with blank page. |
| outputStream | Stream | Output Pdf Stream. |
Return Value
True if operation was succeeded.
Examples
PdfFileEditor fileEditor = new PdfFileEditor();
Stream stream1 = new FileStream("file1.pdf", FileMode.Open, FileAccess.Read);
Stream stream2 = new FileStream("file2.pdf", FileMode.Open, FileAccess.Read);
Stream blank = new FileStream("blank.pdf", FileMode.Open, FileAccess.Read);
Stream outstream = new FileStream("outfile.pdf", FileMode.Create, FileAccess.Write);
fileEditor.Concatenate(new Stream[] { stream1, stream2, blank } , outstream);
See Also
- class PdfFileEditor
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF