Aspose::Pdf::Facades::PdfFileEditor::AddMarginsPct method
Contents
[
Hide
]PdfFileEditor::AddMarginsPct(System::SharedPtr<System::IO::Stream>, System::SharedPtr<System::IO::Stream>, 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(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)
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. |
leftMargin | double | Left margin in percents of initial page size. |
rightMargin | double | Right margin in percents of initial page size. |
topMargin | double | Top margin in percents of initial page size. |
bottomMargin | double | Bottom margin in percents of initial page size. |
ReturnValue
true if action was performed successfully.
See Also
- Typedef SharedPtr
- Class Stream
- Typedef ArrayPtr
- Class PdfFileEditor
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++
PdfFileEditor::AddMarginsPct(System::String, System::String, 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(System::String source, System::String destination, System::ArrayPtr<int32_t> pages, double leftMargin, double rightMargin, double topMargin, double bottomMargin)
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. |
leftMargin | double | Left margin in percents of initial page size. |
rightMargin | double | Right margin in percents of initial page size. |
topMargin | double | Top margin in percents of initial page size. |
bottomMargin | double | Bottom margin in percents of initial page size. |
ReturnValue
true if resize was successful
See Also
- Class String
- Typedef ArrayPtr
- Class PdfFileEditor
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++