Aspose::Pdf::Facades::PdfFileEditor::TryExtract metod
PdfFileEditor::TryExtract(const System::SharedPtr<System::IO::Stream>&, const System::ArrayPtr<int32_t>&, const System::SharedPtr<System::IO::Stream>&) method
Extraherar sidor som anges av ett nummerarray, sparar som en ny Pdf fil.
bool Aspose::Pdf::Facades::PdfFileEditor::TryExtract(const System::SharedPtr<System::IO::Stream> &inputStream, const System::ArrayPtr<int32_t> &pageNumber, const System::SharedPtr<System::IO::Stream> &outputStream)
| Parameter | Typ | Beskrivning |
|---|---|---|
| inputStream | const System::SharedPtr<System::IO::Stream>& | Indata filström. |
| pageNumber | const System::ArrayPtr<int32_t>& | Index för sida utanför inmatningsfilen. |
| outputStream | const System::SharedPtr<System::IO::Stream>& | Utdatafilström. |
ReturnValue
True vid lyckat resultat, annars false.
Anmärkningar
TryExtract‑metoden är som Extract‑metoden, förutom att TryExtract‑metoden inte kastar ett undantag om operationen misslyckas.
Se även
- Typedef SharedPtr
- Class Stream
- Typedef ArrayPtr
- Class PdfFileEditor
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++
PdfFileEditor::TryExtract(const System::SharedPtr<System::IO::Stream>&, const System::ArrayPtr<int32_t>&, const System::SharedPtr<System::Web::HttpResponse>&) method
Extraherar angivna sidor från källfilen och lagrar resultatet i HttpResponse‑objektet.
bool Aspose::Pdf::Facades::PdfFileEditor::TryExtract(const System::SharedPtr<System::IO::Stream> &inputStream, const System::ArrayPtr<int32_t> &pageNumber, const System::SharedPtr<System::Web::HttpResponse> &response)
| Parameter | Typ | Beskrivning |
|---|---|---|
| inputStream | const System::SharedPtr<System::IO::Stream>& | Ström för källdokumentet. |
| pageNumber | const System::ArrayPtr<int32_t>& | Array av sidnummer som kommer att extraheras. |
| 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
TryExtract‑metoden är som Extract‑metoden, förutom att TryExtract‑metoden inte kastar ett undantag om operationen misslyckas.
Se även
- Typedef SharedPtr
- Class Stream
- Typedef ArrayPtr
- Class HttpResponse
- Class PdfFileEditor
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++
PdfFileEditor::TryExtract(const System::String&, const System::ArrayPtr<int32_t>&, const System::SharedPtr<System::Web::HttpResponse>&) method
Extraherar angivna sidor från källfilen och lagrar resultatet i HttpResponse‑objektet.
bool Aspose::Pdf::Facades::PdfFileEditor::TryExtract(const System::String &inputFile, const System::ArrayPtr<int32_t> &pageNumber, const System::SharedPtr<System::Web::HttpResponse> &response)
| Parameter | Typ | Beskrivning |
|---|---|---|
| inputFile | const System::String& | Sökväg till källfil. |
| pageNumber | const System::ArrayPtr<int32_t>& | Array av sidnummer som kommer att extraheras. |
| 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
TryExtract‑metoden är som Extract‑metoden, förutom att TryExtract‑metoden inte kastar ett undantag om operationen misslyckas.
Se även
- Class String
- Typedef ArrayPtr
- Typedef SharedPtr
- Class HttpResponse
- Class PdfFileEditor
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++
PdfFileEditor::TryExtract(const System::String&, const System::ArrayPtr<int32_t>&, const System::String&) method
Extraherar sidor som anges av nummerarray, sparar som en ny PDF‑fil.
bool Aspose::Pdf::Facades::PdfFileEditor::TryExtract(const System::String &inputFile, const System::ArrayPtr<int32_t> &pageNumber, const System::String &outputFile)
| Parameter | Typ | Beskrivning |
|---|---|---|
| inputFile | const System::String& | Sökväg till indatafil. |
| pageNumber | const System::ArrayPtr<int32_t>& | Index för sida utanför inmatningsfilen. |
| outputFile | const System::String& | Sökväg till utdatafil. |
ReturnValue
Sant om operationen slutfördes framgångsrikt; annars falskt.
Anmärkningar
TryExtract‑metoden är som Extract‑metoden, förutom att TryExtract‑metoden inte kastar ett undantag om operationen misslyckas.
Se även
- Class String
- Typedef ArrayPtr
- Class PdfFileEditor
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++
PdfFileEditor::TryExtract(const System::String&, int32_t, int32_t, const System::String&) method
Extraherar sidor från inmatningsfilen, sparar som en ny Pdf fil.
bool Aspose::Pdf::Facades::PdfFileEditor::TryExtract(const System::String &inputFile, int32_t startPage, int32_t endPage, const System::String &outputFile)
| Parameter | Typ | Beskrivning |
|---|---|---|
| inputFile | const System::String& | Inmatnings Pdf filsökväg. |
| startPage | int32_t | Startsidnummer. |
| endPage | int32_t | Slutsidnummer. |
| outputFile | const System::String& | Utdata Pdf filsökväg. |
ReturnValue
True vid lyckat resultat, annars false.
Anmärkningar
TryExtract‑metoden är som Extract‑metoden, förutom att TryExtract‑metoden inte kastar ett undantag om operationen misslyckas.
Se även
- Class String
- Class PdfFileEditor
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++