Description
Creates a preview of the current page.
Usually part of the PageSave script.
Syntax
Page.PagePreview (str1) |
str1
resolution, expressed as a string- e.g. "400". The limit is 3000.
You can also add following suffixes:
f or F: shows frame borders in the preview.
i or I: shows link information in the preview.
l or L:. shows format and type labels (if show frame is defined ("F")
d or D: generates a page preview using dummy texts and pictures
h or H: Hides not printable objects and hidden layers
r or R: the page preview is in RGB color type (without it, the system use the 256-palette color type)
p or P: the page preview image is in PNG format (without it, the system use the GIF format)
j or J: the page preview image is in JPEG format (without it, the system use the GIF format)
Examples
Page.PagePreview ("s300")
saves a normal preview (hidden layers included).
Page.PagePreview ("s300h")
saves a normal preview (hidden layers hidden)
Page.PagePreview ("s300fi")
saves a preview with frames border and page information.
Page.PagePreview ("s400fli")
saves a preview with frames border, type and format labels and page information.
Page.pagepreview ("s1000j")
page preview (size 1000pix.) in JPEG format and 256-palette color type (default color type);
Page.pagepreview ("rp")
page preview (default size 400pix.) in PNG format and RGB color type;
Page.pagepreview ("")
page preview (default size 400pix.) in GIF format and 256-palette color type (default format and color type);
Remarks
Considerations about size and quality
256-Palette color type:
Size: PNG and GIF have a similar size; JPEG is larger;
Quality: similar for the PNG and GIF, worse for JPEG .
RGB color type:
Size: JPEG is smaller than PNG;
Quality: PNG image have the better quality.
Context
Page designer