Aspose::Pdf::Facades::PdfFileEditor::TrySplitToEnd method

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

Splits from specified location, and saves the rear part as a new file Stream.

bool Aspose::Pdf::Facades::PdfFileEditor::TrySplitToEnd(System::SharedPtr<System::IO::Stream> inputStream, int32_t location, System::SharedPtr<System::IO::Stream> outputStream)
ParameterTypeDescription
inputStreamSystem::SharedPtr<System::IO::Stream>Source Pdf file Stream.
locationint32_tThe splitting position.
outputStreamSystem::SharedPtr<System::IO::Stream>Output Pdf file Stream.

ReturnValue

True for success, or false.

Remarks

The streams are NOT closed after this operation unless CloseConcatedStreams is specified. The TrySplitToEnd method is like the SplitToEnd method, except the TrySplitToEnd method does not throw an exception if the operation fails.

See Also

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

Splits from specified location, and saves the rear part into HttpResponse object.

bool Aspose::Pdf::Facades::PdfFileEditor::TrySplitToEnd(System::SharedPtr<System::IO::Stream> inputStream, int32_t location, System::SharedPtr<System::Web::HttpResponse> response)
ParameterTypeDescription
inputStreamSystem::SharedPtr<System::IO::Stream>Source document stream.
locationint32_tSplit point.
responseSystem::SharedPtr<System::Web::HttpResponse>HttpResponse object.

ReturnValue

true if operation completed successfully; otherwise, false.

Remarks

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

See Also

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

Splits from specified location, and saves the rear part into HttpResponse object.

bool Aspose::Pdf::Facades::PdfFileEditor::TrySplitToEnd(System::String inputFile, int32_t location, System::SharedPtr<System::Web::HttpResponse> response)
ParameterTypeDescription
inputFileSystem::Stringsource file name.
locationint32_tSplit point.
responseSystem::SharedPtr<System::Web::HttpResponse>HttpResponse objects.

ReturnValue

true if operation completed successfully; otherwise, false.

Remarks

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

See Also

PdfFileEditor::TrySplitToEnd(System::String, int32_t, System::String) method

Splits from location, and saves the rear part as a new file.

bool Aspose::Pdf::Facades::PdfFileEditor::TrySplitToEnd(System::String inputFile, int32_t location, System::String outputFile)
ParameterTypeDescription
inputFileSystem::StringSource Pdf file.
locationint32_tThe splitting position.
outputFileSystem::StringOutput Pdf file path.

ReturnValue

True for success, or false.

Remarks

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

See Also