app.preview
This property gives access to all preview properties but it can not be used directly.
app.preview.resolution
Returns and sets the resolution property as float.
app.preview.resolution = 72
app.preview.border
Returns and sets the border width property as float.
app.preview.border = 1
app.preview.width
Returns and sets the fixed width property in mm as float. The value (-1) disables the fixed width.
app.preview.width = 100
app.preview.kind
Returns and sets the image depth property as string. The allowed values are here "bitmap", "grayscale", "color8" and "color24".
app.preview.kind = "color24"
app.preview.compression
Returns and sets the compression property as integer. The allowed values are:
1
|
"none"
|
2
|
"PackBits"
|
3
|
"CCIT Group 3"
|
4
|
"CCIT Group 4"
|
5
|
"LZW"
|
6
|
"LZW2"
|
app.preview.compression = 2
app.preview.page
Returns and sets the dimension property as integer. The allowed values are 1 for "Extent" and 2 for "Drawing Size".
app.preview.page = 1
app.preview.intelOrder
Returns and sets the byte order property as boolean.
app.preview.intelOrder = true
app.preview.wantsPreview
Returns and sets the generate preview property as boolean.
app.preview.wantsPreview = true