Aspose::Pdf::Facades::PdfFileEditor::TryInsert method
PdfFileEditor::TryInsert(const System::SharedPtr<System::IO::Stream>&, int32_t, const System::SharedPtr<System::IO::Stream>&, const System::ArrayPtr<int32_t>&, const System::SharedPtr<System::IO::Stream>&) method
Вставляет страницы из другого файла во входной Pdf файл.
bool Aspose::Pdf::Facades::PdfFileEditor::TryInsert(const System::SharedPtr<System::IO::Stream> &inputStream, int32_t insertLocation, const System::SharedPtr<System::IO::Stream> &portStream, const System::ArrayPtr<int32_t> &pageNumber, const System::SharedPtr<System::IO::Stream> &outputStream)
| Параметр | Тип | Описание |
|---|---|---|
| inputStream | const System::SharedPtr<System::IO::Stream>& | Входной поток Pdf файла. |
| insertLocation | int32_t | Позиция вставки во входном файле. |
| portStream | const System::SharedPtr<System::IO::Stream>& | Поток Pdf файла для страниц. |
| pageNumber | const System::ArrayPtr<int32_t>& | Номер страницы, импортированной в portFile. |
| outputStream | const System::SharedPtr<System::IO::Stream>& | Выходной поток. |
ReturnValue
true, если операция завершилась успешно; иначе false.
Примечания
Метод TryInsert похож на метод Insert, за исключением того, что метод TryInsert не бросает исключение, если операция не удалась.
См. также
- Typedef SharedPtr
- Class Stream
- Typedef ArrayPtr
- Class PdfFileEditor
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++
PdfFileEditor::TryInsert(const System::SharedPtr<System::IO::Stream>&, int32_t, const System::SharedPtr<System::IO::Stream>&, const System::ArrayPtr<int32_t>&, const System::SharedPtr<System::Web::HttpResponse>&) method
Вставляет документ в другой документ и сохраняет результат в объект ответа.
bool Aspose::Pdf::Facades::PdfFileEditor::TryInsert(const System::SharedPtr<System::IO::Stream> &inputStream, int32_t insertLocation, const System::SharedPtr<System::IO::Stream> &portStream, const System::ArrayPtr<int32_t> &pageNumber, const System::SharedPtr<System::Web::HttpResponse> &response)
| Параметр | Тип | Описание |
|---|---|---|
| inputStream | const System::SharedPtr<System::IO::Stream>& | Поток с исходным документом |
| insertLocation | int32_t | Место, куда будет вставлен другой документ. |
| portStream | const System::SharedPtr<System::IO::Stream>& | Document для вставки. |
| pageNumber | const System::ArrayPtr<int32_t>& | Массив номеров страниц во втором документе, которые будут вставлены. |
| ответ | const System::SharedPtr<System::Web::HttpResponse>& | Объект ответа, где будет сохранён результат. |
ReturnValue
true, если операция завершилась успешно; иначе false.
Примечания
Метод TryInsert похож на метод Insert, за исключением того, что метод TryInsert не бросает исключение, если операция не удалась.
См. также
- Typedef SharedPtr
- Class Stream
- Typedef ArrayPtr
- Class HttpResponse
- Class PdfFileEditor
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++
PdfFileEditor::TryInsert(const System::String&, int32_t, const System::String&, const System::ArrayPtr<int32_t>&, const System::SharedPtr<System::Web::HttpResponse>&) method
Вставляет содержимое файла в исходный файл и сохраняет результат в объект HttpResponse.
bool Aspose::Pdf::Facades::PdfFileEditor::TryInsert(const System::String &inputFile, int32_t insertLocation, const System::String &portFile, const System::ArrayPtr<int32_t> &pageNumber, const System::SharedPtr<System::Web::HttpResponse> &response)
| Параметр | Тип | Описание |
|---|---|---|
| inputFile | const System::String& | Имя исходного файла. |
| insertLocation | int32_t | Номер Page где будет вставлен второй файл. |
| portFile | const System::String& | Путь к файлу, который будет вставлен. |
| pageNumber | const System::ArrayPtr<int32_t>& | Массив номеров страниц в исходном файле, которые будут вставлены. |
| ответ | const System::SharedPtr<System::Web::HttpResponse>& | Объект ответа, где будет сохранён результат. |
ReturnValue
true, если операция завершилась успешно; иначе false.
Примечания
Метод TryInsert похож на метод Insert, за исключением того, что метод TryInsert не бросает исключение, если операция не удалась.
См. также
- Class String
- Typedef ArrayPtr
- Typedef SharedPtr
- Class HttpResponse
- Class PdfFileEditor
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++
PdfFileEditor::TryInsert(const System::String&, int32_t, const System::String&, const System::ArrayPtr<int32_t>&, const System::String&) method
Вставляет страницы из другого файла во входной Pdf файл.
bool Aspose::Pdf::Facades::PdfFileEditor::TryInsert(const System::String &inputFile, int32_t insertLocation, const System::String &portFile, const System::ArrayPtr<int32_t> &pageNumber, const System::String &outputFile)
| Параметр | Тип | Описание |
|---|---|---|
| inputFile | const System::String& | Входной файл Pdf. |
| insertLocation | int32_t | Позиция вставки во входном файле. |
| portFile | const System::String& | Страницы из файла Pdf. |
| pageNumber | const System::ArrayPtr<int32_t>& | Номер страницы, импортированной в portFile. |
| outputFile | const System::String& | Выводит файл Pdf. |
ReturnValue
True при успехе, иначе false.
Примечания
Метод TryInsert похож на метод Insert, за исключением того, что метод TryInsert не бросает исключение, если операция не удалась.
См. также
- Class String
- Typedef ArrayPtr
- Class PdfFileEditor
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++