ResizePageActionModel Data Type

Page actions contain information that is used to modify pages. PageActionModel is abstract and should not be used. Instead, use one of its subclasses: OCRActionModel, ImageStampActionModel, TextStampActionModel, InsertAttachedPagesActionModel, InsertUploadedPagesActionModel, NewPageActionModel, RotatePageActionModel, PageOrderActionModel, AddImageActionModel, AddTextActionModel, and ResizePageActionModel.

Properties
name data type description
pageIndex number The index of the page to resize. If not supplied all pages will be resized.
newPageWidth number The new page width, in points (72 DPI). IF not supplied, the width of the page will not be changed.
newPageHeight number The new page height, in points (72 DPI). If not supplied, the height of the page will not be changed.
scaleContent number Resize the existing content, in percent. Set to -1 to automatically scale to fit the new page size. Content will be centered in the new page. If not supplied, the content will remain at the same scale.

Example

{
  "pageIndex" : 12345,
  "newPageWidth" : 12345,
  "newPageHeight" : 12345,
  "scaleContent" : 12345
}