Aspose::Pdf::Facades::PdfFileEditor::ResizeContentsPct method

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

Resizes contents of document pages. Shrinks contents of page and adds margins. New contents size is specified in percents.

bool Aspose::Pdf::Facades::PdfFileEditor::ResizeContentsPct(const System::SharedPtr<System::IO::Stream> &source, const System::SharedPtr<System::IO::Stream> &destination, const System::ArrayPtr<int32_t> &pages, double newWidth, double newHeight)
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.
newWidthdoubleNew width of page contents in percents.
newHeightdoubleNew height of page contents in percetns.

ReturnValue

true if resized sucessfully.

See Also

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

Resizes contents of document pages. Shrinks contents of page and adds margins. New contents size is specified in percents.

bool Aspose::Pdf::Facades::PdfFileEditor::ResizeContentsPct(const System::String &source, const System::String &destination, const System::ArrayPtr<int32_t> &pages, double newWidth, double newHeight)
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.
newWidthdoubleNew width of page contents in percents.
newHeightdoubleNew height of page contents in percetns.

ReturnValue

true if resize was successful.

See Also