Aspose::Pdf::Facades::PdfFileEditor::ResizeContents method

Contents
[ ]

PdfFileEditor::ResizeContents(const System::SharedPtr<Document>&, const System::SharedPtr<PdfFileEditor::ContentsResizeParameters>&) method

Resizes pages of document. Blank margins are added around of shrinked page.

void Aspose::Pdf::Facades::PdfFileEditor::ResizeContents(const System::SharedPtr<Document> &source, const System::SharedPtr<PdfFileEditor::ContentsResizeParameters> &parameters)
ParameterTypeDescription
sourceconst System::SharedPtr<Document>&Source document.
parametersconst System::SharedPtr<PdfFileEditor::ContentsResizeParameters>&Resize parameters.

See Also

PdfFileEditor::ResizeContents(const System::SharedPtr<Document>&, System::ArrayPtr<int32_t>, const System::SharedPtr<PdfFileEditor::ContentsResizeParameters>&) method

Resizes pages of document. Blank margins are added around of shrinked page.

void Aspose::Pdf::Facades::PdfFileEditor::ResizeContents(const System::SharedPtr<Document> &source, System::ArrayPtr<int32_t> pages, const System::SharedPtr<PdfFileEditor::ContentsResizeParameters> &parameters)
ParameterTypeDescription
sourceconst System::SharedPtr<Document>&Source document.
pagesSystem::ArrayPtr<int32_t>List of page indexes.
parametersconst System::SharedPtr<PdfFileEditor::ContentsResizeParameters>&Resize parameters.

See Also

PdfFileEditor::ResizeContents(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 size of contents is specified in default space units.

bool Aspose::Pdf::Facades::PdfFileEditor::ResizeContents(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 default space units.
newHeightdoubleNew height of page contents in default space units.

ReturnValue

True if resize was successful.

See Also

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

Resizes contents of pages of the document.

bool Aspose::Pdf::Facades::PdfFileEditor::ResizeContents(const System::SharedPtr<System::IO::Stream> &source, const System::SharedPtr<System::IO::Stream> &destination, System::ArrayPtr<int32_t> pages, const System::SharedPtr<PdfFileEditor::ContentsResizeParameters> &parameters)
ParameterTypeDescription
sourceconst System::SharedPtr<System::IO::Stream>&Stream with source document.
destinationconst System::SharedPtr<System::IO::Stream>&Stream with the destination document.
pagesSystem::ArrayPtr<int32_t>Array of page indexes.
parametersconst System::SharedPtr<PdfFileEditor::ContentsResizeParameters>&Resize parameters.

ReturnValue

Returns true if success.

See Also

PdfFileEditor::ResizeContents(const System::SharedPtr<System::IO::Stream>&, System::ArrayPtr<int32_t>, const System::SharedPtr<PdfFileEditor::ContentsResizeParameters>&, const 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(const System::SharedPtr<System::IO::Stream> &source, System::ArrayPtr<int32_t> pages, const System::SharedPtr<PdfFileEditor::ContentsResizeParameters> &parameters, const System::SharedPtr<System::Web::HttpResponse> &response)
ParameterTypeDescription
sourceconst System::SharedPtr<System::IO::Stream>&Stream of source file.
pagesSystem::ArrayPtr<int32_t>Array of pages to be resized.
parametersconst System::SharedPtr<PdfFileEditor::ContentsResizeParameters>&Resize parameters.
responseconst System::SharedPtr<System::Web::HttpResponse>&HttpResponse object where result is saved.

ReturnValue

True if operation was succeeded.

See Also

PdfFileEditor::ResizeContents(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 size of contents is specified in default space units.

bool Aspose::Pdf::Facades::PdfFileEditor::ResizeContents(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 default space units.
newHeightdoubleNew height of page contents in default space units.

ReturnValue

true if resize was successful.

See Also

PdfFileEditor::ResizeContents(const System::String&, const System::String&, System::ArrayPtr<int32_t>, const 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(const System::String &source, const System::String &destination, System::ArrayPtr<int32_t> pages, const System::SharedPtr<PdfFileEditor::ContentsResizeParameters> &parameters)
ParameterTypeDescription
sourceconst System::String&Source document path.
destinationconst System::String&Destination document path.
pagesSystem::ArrayPtr<int32_t>Array of page indexes (page index starts from 1).
parametersconst System::SharedPtr<PdfFileEditor::ContentsResizeParameters>&Parameters of page resize.

ReturnValue

true if resize was successful.

See Also

PdfFileEditor::ResizeContents(const System::String&, System::ArrayPtr<int32_t>, const System::SharedPtr<PdfFileEditor::ContentsResizeParameters>&, const 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(const System::String &source, System::ArrayPtr<int32_t> pages, const System::SharedPtr<PdfFileEditor::ContentsResizeParameters> &parameters, const System::SharedPtr<System::Web::HttpResponse> &response)
ParameterTypeDescription
sourceconst System::String&Path to source file.
pagesSystem::ArrayPtr<int32_t>Array of pages to be resized.
parametersconst System::SharedPtr<PdfFileEditor::ContentsResizeParameters>&Resize parameters.
responseconst System::SharedPtr<System::Web::HttpResponse>&HttpResponse object where result is saved.

ReturnValue

True if operation was succeeded.

See Also