PagePreview

Build 1501 on 14/Nov/2017  This topic last edited on: 22/Mar/2016, at 17:01

Description

Generates on-the-fly a preview for the page with id XXXXX using the options YYYY (GET). The preview is returned to the caller as a bitmap.

../edo.ashx?cmd=PagePreview&id=XXXX&options=YYYY 

Available since 1.6.

Parameters

Id

integer for database id of the page

Name

string for name of the page preview options configuration to use.

Remarks

The options ('YYYY') reference a global configuration called 'ppopt_YYYY' containing various parameters describing how the preview should be generated. See attached sample file.

Options are optional, if no option name is specified the system uses the default value for all the parameters.

Previews are not saved in the database, but they are cached in memory on the server, so a second call to get the same preview will just return the cached data instead of having to reload the page and regenerate everything from scratch. The system checks if the preview options or the page or any of the page components (master page, layers, linked texts and images) have been modified since the last call, and if anything has changed the preview is re-created.

The system does NOT check if formats, styles or colors have changed though. After these kind of changes cached previews have to be 'flushed' either recycling the server application pool or re-loading the options used to generate them.