Aspose::Pdf::Facades::PdfFileEditor::AddMargins method

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

Resizes page contents and add specifed margins. Margins are specified in default space units.

bool Aspose::Pdf::Facades::PdfFileEditor::AddMargins(System::SharedPtr<System::IO::Stream> source, System::SharedPtr<System::IO::Stream> destination, System::ArrayPtr<int32_t> pages, double leftMargin, double rightMargin, double topMargin, double bottomMargin)
ParameterTypeDescription
sourceSystem::SharedPtr<System::IO::Stream>Stream which contains source document.
destinationSystem::SharedPtr<System::IO::Stream>Stream where resultant document will be saved.
pagesSystem::ArrayPtr<int32_t>Array of page indexes. If null then all document pages will be processed.
leftMargindoubleLeft margin.
rightMargindoubleRight margin.
topMargindoubleTop margin.
bottomMargindoubleBottom margin.

ReturnValue

true if operation was successful.

See Also

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

Resizes page contents and add specifed margins. Margins are specified in default space units.

bool Aspose::Pdf::Facades::PdfFileEditor::AddMargins(System::String source, System::String destination, System::ArrayPtr<int32_t> pages, double leftMargin, double rightMargin, double topMargin, double bottomMargin)
ParameterTypeDescription
sourceSystem::StringPath to source document.
destinationSystem::StringPath where resultant document will be saved.
pagesSystem::ArrayPtr<int32_t>Array of page indexes. If null then all document pages will be processed.
leftMargindoubleLeft margin.
rightMargindoubleRight margin.
topMargindoubleTop margin.
bottomMargindoubleBottom margin.

ReturnValue

true if resize was successful.

See Also