Aspose::Pdf::Facades::PdfFileEditor::AddMarginsPct method

PdfFileEditor::AddMarginsPct(const System::SharedPtr<System::IO::Stream>&, const System::SharedPtr<System::IO::Stream>&, const System::ArrayPtr<int32_t>&, double, double, double, double) method

Resizes page contents and add specified margins. Margins are specified in percents of intitial page size.

bool Aspose::Pdf::Facades::PdfFileEditor::AddMarginsPct(const System::SharedPtr<System::IO::Stream> &source, const System::SharedPtr<System::IO::Stream> &destination, const System::ArrayPtr<int32_t> &pages, double leftMargin, double rightMargin, double topMargin, double bottomMargin)
ParameterTypeDescription
sourceconst System::SharedPtr<System::IO::Stream>&Stream which contains source document.
destinationconst System::SharedPtr<System::IO::Stream>&Stream where resultant document will be saved.
pagesconst System::ArrayPtr<int32_t>&Array of page indexes. If null then all document pages will be processed.
leftMargindoubleLeft margin in percents of initial page size.
rightMargindoubleRight margin in percents of initial page size.
topMargindoubleTop margin in percents of initial page size.
bottomMargindoubleBottom margin in percents of initial page size.

ReturnValue

true if action was performed successfully.

See Also

PdfFileEditor::AddMarginsPct(const System::String&, const System::String&, const System::ArrayPtr<int32_t>&, double, double, double, double) method

Resizes page contents and add specified margins. Margins are specified in percents of intitial page size.

bool Aspose::Pdf::Facades::PdfFileEditor::AddMarginsPct(const System::String &source, const System::String &destination, const System::ArrayPtr<int32_t> &pages, double leftMargin, double rightMargin, double topMargin, double bottomMargin)
ParameterTypeDescription
sourceconst System::String&Path to source document.
destinationconst System::String&Path where resultant document will be saved.
pagesconst System::ArrayPtr<int32_t>&Array of page indexes. If null then all document pages will be processed.
leftMargindoubleLeft margin in percents of initial page size.
rightMargindoubleRight margin in percents of initial page size.
topMargindoubleTop margin in percents of initial page size.
bottomMargindoubleBottom margin in percents of initial page size.

ReturnValue

true if resize was successful

See Also