Aspose::Pdf::Facades::PdfFileEditor::ResizeContentsPct method
Contents
[
Hide
]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)
Parameter | Type | Description |
---|---|---|
source | System::SharedPtr<System::IO::Stream> | Stream which contains source document. |
destination | System::SharedPtr<System::IO::Stream> | Stream where resultant document will be saved. |
pages | System::ArrayPtr<int32_t> | Array of page indexes. If null then all document pages will be processed. |
newWidth | double | New width of page contents in percents. |
newHeight | double | New height of page contents in percetns. |
ReturnValue
true if resized sucessfully.
See Also
- Class PdfFileEditor
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++
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)
Parameter | Type | Description |
---|---|---|
source | System::String | Path to source document. |
destination | System::String | Path where resultant document will be saved. |
pages | System::ArrayPtr<int32_t> | Array of page indexes. If null then all document pages will be processed. |
newWidth | double | New width of page contents in percents. |
newHeight | double | New height of page contents in percetns. |
ReturnValue
true if resize was successful.
See Also
- Class PdfFileEditor
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++