Aspose::Pdf::Facades::PdfFileEditor::TrySplitFromFirst metod
PdfFileEditor::TrySplitFromFirst(const System::SharedPtr<System::IO::Stream>&, int32_t, const System::SharedPtr<System::IO::Stream>&) method
Delar från början till angiven plats, och sparar den främre delen i utdata Stream.
bool Aspose::Pdf::Facades::PdfFileEditor::TrySplitFromFirst(const System::SharedPtr<System::IO::Stream> &inputStream, int32_t location, const System::SharedPtr<System::IO::Stream> &outputStream)
| Parameter | Typ | Beskrivning |
|---|---|---|
| inputStream | const System::SharedPtr<System::IO::Stream>& | Käll Pdf filström. |
| location | int32_t | Delningspunkten. |
| outputStream | const System::SharedPtr<System::IO::Stream>& | Utdatafil Stream. |
ReturnValue
True vid lyckat resultat, annars false.
Anmärkningar
Strömmarna stängs INTE efter denna operation. Metoden TrySplitFromFirst är som metoden SplitFromFirst, förutom att metoden TrySplitFromFirst inte kastar ett undantag om operationen misslyckas.
Se även
- Typedef SharedPtr
- Class Stream
- Class PdfFileEditor
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++
PdfFileEditor::TrySplitFromFirst(const System::SharedPtr<System::IO::Stream>&, int32_t, const System::SharedPtr<System::Web::HttpResponse>&) method
Delar dokumentet från början till angiven plats och lagrar resultatet i HttpResponse-objekt.
bool Aspose::Pdf::Facades::PdfFileEditor::TrySplitFromFirst(const System::SharedPtr<System::IO::Stream> &inputStream, int32_t location, const System::SharedPtr<System::Web::HttpResponse> &response)
| Parameter | Typ | Beskrivning |
|---|---|---|
| inputStream | const System::SharedPtr<System::IO::Stream>& | Ström för källdokumentet. |
| location | int32_t | Delningspunkten. |
| response | const System::SharedPtr<System::Web::HttpResponse>& | HttpResponse‑objekt där resultatet kommer att lagras. |
ReturnValue
Sant om operationen slutfördes framgångsrikt; annars falskt.
Anmärkningar
Metoden TrySplitFromFirst är som metoden SplitFromFirst, förutom att metoden TrySplitFromFirst inte kastar ett undantag om operationen misslyckas.
Se även
- Typedef SharedPtr
- Class Stream
- Class HttpResponse
- Class PdfFileEditor
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++
PdfFileEditor::TrySplitFromFirst(const System::String&, int32_t, const System::SharedPtr<System::Web::HttpResponse>&) method
Delar dokumentet från första sidan till platsen och sparar resultatet i HttpResponse-objekt.
bool Aspose::Pdf::Facades::PdfFileEditor::TrySplitFromFirst(const System::String &inputFile, int32_t location, const System::SharedPtr<System::Web::HttpResponse> &response)
| Parameter | Typ | Beskrivning |
|---|---|---|
| inputFile | const System::String& | Källfilnamn. |
| location | int32_t | Delningspunkt. |
| response | const System::SharedPtr<System::Web::HttpResponse>& | HttpResponse-objekt. |
ReturnValue
Sant om operationen slutfördes framgångsrikt; annars falskt.
Anmärkningar
Metoden TrySplitFromFirst är som metoden SplitFromFirst, förutom att metoden TrySplitFromFirst inte kastar ett undantag om operationen misslyckas.
Se även
- Class String
- Typedef SharedPtr
- Class HttpResponse
- Class PdfFileEditor
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++
PdfFileEditor::TrySplitFromFirst(const System::String&, int32_t, const System::String&) method
Delar Pdf fil från första sidan till angiven plats och sparar den främre delen som en ny fil.
bool Aspose::Pdf::Facades::PdfFileEditor::TrySplitFromFirst(const System::String &inputFile, int32_t location, const System::String &outputFile)
| Parameter | Typ | Beskrivning |
|---|---|---|
| inputFile | const System::String& | Käll Pdf fil. |
| location | int32_t | Delningspunkten. |
| outputFile | const System::String& | Utdata Pdf fil. |
ReturnValue
True vid lyckat resultat, annars false.
Anmärkningar
Metoden TrySplitFromFirst är som metoden SplitFromFirst, förutom att metoden TrySplitFromFirst inte kastar ett undantag om operationen misslyckas.
Se även
- Class String
- Class PdfFileEditor
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++