Aspose::Pdf::Facades::PdfFileEditor::TryDelete method

PdfFileEditor::TryDelete(System::SharedPtr<System::IO::Stream>, System::ArrayPtr<int32_t>, System::SharedPtr<System::IO::Stream>) method

Deletes pages specified by number array from input file, saves as a new Pdf file.

bool Aspose::Pdf::Facades::PdfFileEditor::TryDelete(System::SharedPtr<System::IO::Stream> inputStream, System::ArrayPtr<int32_t> pageNumber, System::SharedPtr<System::IO::Stream> outputStream)
ParameterTypeDescription
inputStreamSystem::SharedPtr<System::IO::Stream>Input file Stream.
pageNumberSystem::ArrayPtr<int32_t>Index of page out of the input file.
outputStreamSystem::SharedPtr<System::IO::Stream>Output file stream.

ReturnValue

True for success, or false.

Remarks

The TryDelete method is like the Delete method, except the TryDelete method does not throw an exception if the operation fails.

See Also

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

Deletes specified pages from document and saves result into HttpResponse object.

bool Aspose::Pdf::Facades::PdfFileEditor::TryDelete(System::SharedPtr<System::IO::Stream> inputStream, System::ArrayPtr<int32_t> pageNumber, System::SharedPtr<System::Web::HttpResponse> response)
ParameterTypeDescription
inputStreamSystem::SharedPtr<System::IO::Stream>Source document stream.
pageNumberSystem::ArrayPtr<int32_t>Array of page numbers which will be deleted.
responseSystem::SharedPtr<System::Web::HttpResponse>HttpResponse object

ReturnValue

true if operation completed successfully; otherwise, false.

Remarks

The TryDelete method is like the Delete method, except the TryDelete method does not throw an exception if the operation fails.

See Also

PdfFileEditor::TryDelete(System::String, System::ArrayPtr<int32_t>, System::SharedPtr<System::Web::HttpResponse>) method

Deletes specified pages from document and stores result into HttpResponse object.

bool Aspose::Pdf::Facades::PdfFileEditor::TryDelete(System::String inputFile, System::ArrayPtr<int32_t> pageNumber, System::SharedPtr<System::Web::HttpResponse> response)
ParameterTypeDescription
inputFileSystem::StringPath of source file.
pageNumberSystem::ArrayPtr<int32_t>Array of page numbers which must be deleted.
responseSystem::SharedPtr<System::Web::HttpResponse>Response object where result document will be stored.

ReturnValue

true if operation completed successfully; otherwise, false.

Remarks

The TryDelete method is like the Delete method, except the TryDelete method does not throw an exception if the operation fails.

See Also

PdfFileEditor::TryDelete(System::String, System::ArrayPtr<int32_t>, System::String) method

Deletes pages specified by number array from input file, saves as a new Pdf file.

bool Aspose::Pdf::Facades::PdfFileEditor::TryDelete(System::String inputFile, System::ArrayPtr<int32_t> pageNumber, System::String outputFile)
ParameterTypeDescription
inputFileSystem::StringInput file path.
pageNumberSystem::ArrayPtr<int32_t>Index of page out of the input file.
outputFileSystem::StringOutput file path.

ReturnValue

true if operation completed successfully; otherwise, false.

Remarks

The TryDelete method is like the Delete method, except the TryDelete method does not throw an exception if the operation fails.

See Also