CP command description


Description: This command creates a bitmap image of a page of the document. The image is either a JPEG image on Mac or a BMP image on Windows. The image name is saved by the program and stored in the document. The XView XTension uses this name to generate the image for each save of the image if the user decides to generate an image of the whole page (ie. Block# = 0).


Syntax: [ CP =  "ImageName"  ;  WhichPage  ;  BitmapScale  ;  BitMapWidth  ;  BitMapDepth  ;  Block#  ;  JpegQuality  ;  Resolution    ]


"ImageName"
String
Path and name of the image file.
     
WhichPage
Integer
The page where the bitmap image must be created.
     
BitmapScale
Percent
Scale of the image. Percentage between 10 and 250 %.
     
BitMapWidth
Integer
  Width of the image in pixels. If you use this value, the scale should be set to 0.
     
BitMapDepth
Integer
  Depth of the image in pixels. If you use this value, the scale should be set to 0.
     
Block#
Integer
  Number of the box for which the image must be created. The program uses the block to determine the image dimensions.
     
JpegQuality
Integer
  JPEG Quality. Quark Version : 0=Normal 1=Low qualité 2=Minimum Quality 3=Maximum quality 4=LossLessQuality 5=High Quality InDesign Version : 0=Normal 1=Low quality 2=Normal 3=Normal 4=High quality 5=Maximum quality
     
Resolution
Integer
  Desired resolution for the generated image, 72 dpi by default
     


Note: On Mac, QuickTime should be installed.


Example: [cp = "C:\my documents\images\page1.jpeg"; 1; 100] Generates a full scale image (100%) of page 1.


See also:


The • sign indicates a mandatory parameter

 

 

©1993-2008 Trias.
All rights reserved.