# Page space

The page space displayes one page from opened document. Page number is shown at the bottom of displayed page, as is number of pages in document. On the right the actual position of mouse cursor on page in specified units is shown. Page space design

Page space design

## Changing page information

There are two independent information in page space which must be actualized.

First is the image of the page itself and information about page count. This part is updated only if someone calls script function go() because it can be very slow (to update page after each change could be a performance problem). Reload page button in toolbars and menu (and many other useful functions) call go() automatically. But direct changes in and changes using scripting do not update the page and page count automatically.

The second is the mouse position on page. Position must be converted into internal coordinates. The position does not depend on zoom level or actual rotation of page. (If the text starts at position [x:6, y:7 cm] in 100% zoom the same position will be used to started the text in 200% zoom.)

Notice: The most common way is to have the zero in the left-bottom edge of page and to have the maximum in right-top edge.

It can happen that after a zoom change the outer page space is not updated. To corret this call either script go() function or click the reload page button.

## Popup menu

Right click of a mouse displayes a menu which will be displayed near the cursor. You can choose from two functions

- Save page as image

- Save selected area as image

The latter one can be used only when a selection is already present.

Both functions store portion of viewed page to an image file. Format of the image file is depending on the system and version of Qt.

Save page as image stores actual viewed page to an image file. If only a part of a page is displayed, only the part of page is stored.

Save selected area as image stores only selected area. If selected area is fragmented or has not a rectangle shape, then a bounding rectangle of selected area is sotred. If selected area is bigger then actual displayed part of page, storing area is cropped with same rectangle as page is cropped in Save page as image.