Aspose::Pdf::Facades::PdfFileEditor::ResizeContents method
PdfFileEditor::ResizeContents(System::SharedPtr<Document>, System::ArrayPtr<int32_t>, System::SharedPtr<PdfFileEditor::ContentsResizeParameters>) method
Resizes pages of document. Blank margins are added around of shrinked page.
void Aspose::Pdf::Facades::PdfFileEditor::ResizeContents(System::SharedPtr<Document> source, System::ArrayPtr<int32_t> pages, System::SharedPtr<PdfFileEditor::ContentsResizeParameters> parameters)
Parameter | Type | Description |
---|---|---|
source | System::SharedPtr<Document> | Source document. |
pages | System::ArrayPtr<int32_t> | List of page indexes. |
parameters | System::SharedPtr<PdfFileEditor::ContentsResizeParameters> | Resize parameters. |
See Also
- Class Document
- Class PdfFileEditor
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++
PdfFileEditor::ResizeContents(System::SharedPtr<Document>, System::SharedPtr<PdfFileEditor::ContentsResizeParameters>) method
Resizes pages of document. Blank margins are added around of shrinked page.
void Aspose::Pdf::Facades::PdfFileEditor::ResizeContents(System::SharedPtr<Document> source, System::SharedPtr<PdfFileEditor::ContentsResizeParameters> parameters)
Parameter | Type | Description |
---|---|---|
source | System::SharedPtr<Document> | Source document. |
parameters | System::SharedPtr<PdfFileEditor::ContentsResizeParameters> | Resize parameters. |
See Also
- Class Document
- Class PdfFileEditor
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++
PdfFileEditor::ResizeContents(System::SharedPtr<System::IO::Stream>, System::ArrayPtr<int32_t>, System::SharedPtr<PdfFileEditor::ContentsResizeParameters>, System::SharedPtr<System::Web::HttpResponse>) method
Resizes contents of pages in document. If page is shrinked blank margins are added around the page. Result is stored into HttpResponse object.
bool Aspose::Pdf::Facades::PdfFileEditor::ResizeContents(System::SharedPtr<System::IO::Stream> source, System::ArrayPtr<int32_t> pages, System::SharedPtr<PdfFileEditor::ContentsResizeParameters> parameters, System::SharedPtr<System::Web::HttpResponse> response)
Parameter | Type | Description |
---|---|---|
source | System::SharedPtr<System::IO::Stream> | Stream of source file. |
pages | System::ArrayPtr<int32_t> | Array of pages to be resized. |
parameters | System::SharedPtr<PdfFileEditor::ContentsResizeParameters> | Resize parameters. |
response | System::SharedPtr<System::Web::HttpResponse> | HttpResponse object where result is saved. |
ReturnValue
True if operation was succeeded.
See Also
- Class PdfFileEditor
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++
PdfFileEditor::ResizeContents(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 size of contents is specified in default space units.
bool Aspose::Pdf::Facades::PdfFileEditor::ResizeContents(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 default space units. |
newHeight | double | New height of page contents in default space units. |
ReturnValue
True if resize was successful.
See Also
- Class PdfFileEditor
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++
PdfFileEditor::ResizeContents(System::SharedPtr<System::IO::Stream>, System::SharedPtr<System::IO::Stream>, System::ArrayPtr<int32_t>, System::SharedPtr<PdfFileEditor::ContentsResizeParameters>) method
Resizes contents of pages of the document.
bool Aspose::Pdf::Facades::PdfFileEditor::ResizeContents(System::SharedPtr<System::IO::Stream> source, System::SharedPtr<System::IO::Stream> destination, System::ArrayPtr<int32_t> pages, System::SharedPtr<PdfFileEditor::ContentsResizeParameters> parameters)
Parameter | Type | Description |
---|---|---|
source | System::SharedPtr<System::IO::Stream> | Stream with source document. |
destination | System::SharedPtr<System::IO::Stream> | Stream with the destination document. |
pages | System::ArrayPtr<int32_t> | Array of page indexes. |
parameters | System::SharedPtr<PdfFileEditor::ContentsResizeParameters> | Resize parameters. |
ReturnValue
Returns true if success.
See Also
- Class PdfFileEditor
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++
PdfFileEditor::ResizeContents(System::String, System::ArrayPtr<int32_t>, System::SharedPtr<PdfFileEditor::ContentsResizeParameters>, System::SharedPtr<System::Web::HttpResponse>) method
Resizes contents of pages in document. If page is shrinked blank margins are added around the page. Result is stored into HttpResponse object.
bool Aspose::Pdf::Facades::PdfFileEditor::ResizeContents(System::String source, System::ArrayPtr<int32_t> pages, System::SharedPtr<PdfFileEditor::ContentsResizeParameters> parameters, System::SharedPtr<System::Web::HttpResponse> response)
Parameter | Type | Description |
---|---|---|
source | System::String | Path to source file. |
pages | System::ArrayPtr<int32_t> | Array of pages to be resized. |
parameters | System::SharedPtr<PdfFileEditor::ContentsResizeParameters> | Resize parameters. |
response | System::SharedPtr<System::Web::HttpResponse> | HttpResponse object where result is saved. |
ReturnValue
True if operation was succeeded.
See Also
- Class PdfFileEditor
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++
PdfFileEditor::ResizeContents(System::String, System::String, System::ArrayPtr<int32_t>, double, double) method
Resizes contents of document pages. Shrinks contents of page and adds margins. New size of contents is specified in default space units.
bool Aspose::Pdf::Facades::PdfFileEditor::ResizeContents(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 default space units. |
newHeight | double | New height of page contents in default space units. |
ReturnValue
true if resize was successful.
See Also
- Class PdfFileEditor
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++
PdfFileEditor::ResizeContents(System::String, System::String, System::ArrayPtr<int32_t>, System::SharedPtr<PdfFileEditor::ContentsResizeParameters>) method
Resizes contents of pages in document. If page is shrinked blank margins are added around the page.
bool Aspose::Pdf::Facades::PdfFileEditor::ResizeContents(System::String source, System::String destination, System::ArrayPtr<int32_t> pages, System::SharedPtr<PdfFileEditor::ContentsResizeParameters> parameters)
Parameter | Type | Description |
---|---|---|
source | System::String | Source document path. |
destination | System::String | Destination document path. |
pages | System::ArrayPtr<int32_t> | Array of page indexes (page index starts from 1). |
parameters | System::SharedPtr<PdfFileEditor::ContentsResizeParameters> | Parameters of page resize. |
ReturnValue
true if resize was successful.
See Also
- Class PdfFileEditor
- Namespace Aspose::Pdf::Facades
- Library Aspose.PDF for C++