Skip to main content
All docs
V25.1
  • Section and Page Properties

    Change page orientation

    You cannot specify a page’s height or width separately. Set the pageSize property to an instance of the Size class.

    var size = richEdit.document.sections.getByIndex(0).pageSize;
    var width = size.width;
    size.width = size.height;
    size.height = width;
    richEdit.document.sections.getByIndex(0).pageSize = size;