Aspose::Pdf::Facades::PdfFileEditor::TryAppend method
PdfFileEditor::TryAppend(System::SharedPtr<System::IO::Stream>, System::ArrayPtr<System::SharedPtr<System::IO::Stream>>, int32_t, int32_t, System::SharedPtr<System::IO::Stream>) method
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.
bool Aspose::Pdf::Facades::PdfFileEditor::TryAppend(System::SharedPtr<System::IO::Stream> inputStream, System::ArrayPtr<System::SharedPtr<System::IO::Stream>> portStreams, int32_t startPage, int32_t endPage, System::SharedPtr<System::IO::Stream> outputStream)
Parameter | Type | Description |
---|---|---|
inputStream | System::SharedPtr<System::IO::Stream> | Input Pdf stream. |
portStreams | System::ArrayPtr<System::SharedPtr<System::IO::Stream>> | Documents to copy pages from. |
startPage | int32_t | Page starts in portStreams documents. |
endPage | int32_t | Page ends in portStreams documents . |
outputStream | System::SharedPtr<System::IO::Stream> | Output Pdf stream. |
ReturnValue
True for success, or false.
Remarks
The TryAppend method is like the Append method, except the TryAppend method does not throw an exception if the operation fails.
See Also
- Class PdfFileEditor
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++
PdfFileEditor::TryAppend(System::SharedPtr<System::IO::Stream>, System::ArrayPtr<System::SharedPtr<System::IO::Stream>>, int32_t, int32_t, System::SharedPtr<System::Web::HttpResponse>) method
Appends documents to source document and saves result into response object.
bool Aspose::Pdf::Facades::PdfFileEditor::TryAppend(System::SharedPtr<System::IO::Stream> inputStream, System::ArrayPtr<System::SharedPtr<System::IO::Stream>> portStreams, int32_t startPage, int32_t endPage, System::SharedPtr<System::Web::HttpResponse> response)
Parameter | Type | Description |
---|---|---|
inputStream | System::SharedPtr<System::IO::Stream> | Stream which contains source document. |
portStreams | System::ArrayPtr<System::SharedPtr<System::IO::Stream>> | Array of streams with documents to be appended. |
startPage | int32_t | Start page of appended page. |
endPage | int32_t | End page of appended pages. |
response | System::SharedPtr<System::Web::HttpResponse> | Response object where document will be saved. |
ReturnValue
true if operation completed successfully; otherwise, false.
Remarks
The TryAppend method is like the Append method, except the TryAppend method does not throw an exception if the operation fails.
See Also
- Class PdfFileEditor
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++
PdfFileEditor::TryAppend(System::String, System::ArrayPtr<System::String>, int32_t, int32_t, System::SharedPtr<System::Web::HttpResponse>) method
Appends documents to source document and saves result into HttpResponse object.
bool Aspose::Pdf::Facades::PdfFileEditor::TryAppend(System::String inputFile, System::ArrayPtr<System::String> portFiles, int32_t startPage, int32_t endPage, System::SharedPtr<System::Web::HttpResponse> response)
Parameter | Type | Description |
---|---|---|
inputFile | System::String | Name of file containing source document. |
portFiles | System::ArrayPtr<System::String> | Array of file names containing appended documents. |
startPage | int32_t | Start page of appended pages. |
endPage | int32_t | End page of appended pages. |
response | System::SharedPtr<System::Web::HttpResponse> | Response object where document will be saved. |
ReturnValue
true if operation completed successfully; otherwise, false.
Remarks
The TryAppend method is like the Append method, except the TryAppend method does not throw an exception if the operation fails.
See Also
- Class PdfFileEditor
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++
PdfFileEditor::TryAppend(System::String, System::ArrayPtr<System::String>, int32_t, int32_t, System::String) method
Appends pages, which are chosen from portFiles documents. The result document includes firstInputFile and all portFiles documents pages in the range startPage to endPage.
bool Aspose::Pdf::Facades::PdfFileEditor::TryAppend(System::String inputFile, System::ArrayPtr<System::String> portFiles, int32_t startPage, int32_t endPage, System::String outputFile)
Parameter | Type | Description |
---|---|---|
inputFile | System::String | Input Pdf file. |
portFiles | System::ArrayPtr<System::String> | Documents to copy pages from. |
startPage | int32_t | Page starts in portFiles documents. |
endPage | int32_t | Page ends in portFiles documents . |
outputFile | System::String | Output Pdf document. |
ReturnValue
true if operation completed successfully; otherwise, false.
Remarks
The TryAppend method is like the Append method, except the TryAppend method does not throw an exception if the operation fails.
See Also
- Class PdfFileEditor
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++