Aspose::Pdf::Facades::PdfFileEditor::TryAppend method

PdfFileEditor::TryAppend(const System::SharedPtr<System::IO::Stream>&, const System::ArrayPtr<System::SharedPtr<System::IO::Stream>>&, int32_t, int32_t, const System::SharedPtr<System::IO::Stream>&) method

Lägger till sidor som väljs från en array av dokument i portStreams. Resultatdokumentet inkluderar firstInputFile och alla portStreams‑dokumentens sidor i intervallet startPage till endPage.

bool Aspose::Pdf::Facades::PdfFileEditor::TryAppend(const System::SharedPtr<System::IO::Stream> &inputStream, const System::ArrayPtr<System::SharedPtr<System::IO::Stream>> &portStreams, int32_t startPage, int32_t endPage, const System::SharedPtr<System::IO::Stream> &outputStream)
ParameterTypBeskrivning
inputStreamconst System::SharedPtr<System::IO::Stream>&Indata Pdf ström.
portStreamsconst System::ArrayPtr<System::SharedPtr<System::IO::Stream>>&Dokument att kopiera sidor från.
startPageint32_tPage börjar i portStreams-dokument.
endPageint32_tPage slutar i portStreams-dokument.
outputStreamconst System::SharedPtr<System::IO::Stream>&Utdata Pdf ström.

ReturnValue

True vid lyckat resultat, annars false.

Anmärkningar

TryAppend‑metoden är som Append‑metoden, förutom att TryAppend‑metoden inte kastar ett undantag om operationen misslyckas.

Se även

PdfFileEditor::TryAppend(const System::SharedPtr<System::IO::Stream>&, const System::ArrayPtr<System::SharedPtr<System::IO::Stream>>&, int32_t, int32_t, const System::SharedPtr<System::Web::HttpResponse>&) method

Lägger till dokument i källdokumentet och sparar resultatet i response‑objektet.

bool Aspose::Pdf::Facades::PdfFileEditor::TryAppend(const System::SharedPtr<System::IO::Stream> &inputStream, const System::ArrayPtr<System::SharedPtr<System::IO::Stream>> &portStreams, int32_t startPage, int32_t endPage, const System::SharedPtr<System::Web::HttpResponse> &response)
ParameterTypBeskrivning
inputStreamconst System::SharedPtr<System::IO::Stream>&Ström som innehåller källdokumentet.
portStreamsconst System::ArrayPtr<System::SharedPtr<System::IO::Stream>>&Array av strömmar med dokument som ska bifogas.
startPageint32_tStart sida för bifogad sida.
endPageint32_tSlut sida för bifogade sidor.
responseconst System::SharedPtr<System::Web::HttpResponse>&Svarobjekt där dokumentet kommer att sparas.

ReturnValue

Sant om operationen slutfördes framgångsrikt; annars falskt.

Anmärkningar

TryAppend‑metoden är som Append‑metoden, förutom att TryAppend‑metoden inte kastar ett undantag om operationen misslyckas.

Se även

PdfFileEditor::TryAppend(const System::String&, const System::ArrayPtr<System::String>&, int32_t, int32_t, const System::SharedPtr<System::Web::HttpResponse>&) method

Lägger till dokument i källdokumentet och sparar resultatet i HttpResponse‑objektet.

bool Aspose::Pdf::Facades::PdfFileEditor::TryAppend(const System::String &inputFile, const System::ArrayPtr<System::String> &portFiles, int32_t startPage, int32_t endPage, const System::SharedPtr<System::Web::HttpResponse> &response)
ParameterTypBeskrivning
inputFileconst System::String&Namn på fil som innehåller källdokumentet.
portFilesconst System::ArrayPtr<System::String>&Array av filnamn som innehåller bifogade dokument.
startPageint32_tStart sida för bifogade sidor.
endPageint32_tSlut sida för bifogade sidor.
responseconst System::SharedPtr<System::Web::HttpResponse>&Svarobjekt där dokumentet kommer att sparas.

ReturnValue

Sant om operationen slutfördes framgångsrikt; annars falskt.

Anmärkningar

TryAppend‑metoden är som Append‑metoden, förutom att TryAppend‑metoden inte kastar ett undantag om operationen misslyckas.

Se även

PdfFileEditor::TryAppend(const System::String&, const System::ArrayPtr<System::String>&, int32_t, int32_t, const System::String&) method

Lägger till sidor som väljs från portFiles‑dokument. Resultatdokumentet inkluderar firstInputFile och alla portFiles‑dokumentens sidor i intervallet startPage till endPage.

bool Aspose::Pdf::Facades::PdfFileEditor::TryAppend(const System::String &inputFile, const System::ArrayPtr<System::String> &portFiles, int32_t startPage, int32_t endPage, const System::String &outputFile)
ParameterTypBeskrivning
inputFileconst System::String&Inmatnings Pdf fil.
portFilesconst System::ArrayPtr<System::String>&Dokument att kopiera sidor från.
startPageint32_tPage börjar i portFiles-dokument.
endPageint32_tPage slutar i portFiles-dokument.
outputFileconst System::String&Utdata Pdf dokument.

ReturnValue

Sant om operationen slutfördes framgångsrikt; annars falskt.

Anmärkningar

TryAppend‑metoden är som Append‑metoden, förutom att TryAppend‑metoden inte kastar ett undantag om operationen misslyckas.

Se även