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

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

ReturnValue

true if resized sucessfully.

See Also

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

ReturnValue

true if resize was successful.

See Also