// app.documents.add(DocumentColorSpace.RGB, 100, 100, 5)
var set = new DocumentPreset()
set.colorMode = DocumentColorSpace.RGB // 颜色模式
set.width = 100 // 默认画板宽
set.height = 100 // 默认画板高
set.numArtboards = 5 // 画板数量
set.artboardSpacing = 20 // 画板间隙
set.title = "我的新文档1" // 文档标题
set.units = RulerUnits.Pixels // 单位
/**
* RulerUnits 参数:
* Centimeters 厘米
* Inches 英寸
* Pixels 像素
* Millimeters 毫米
* Unknown 未知
* Picas 派卡,是一种用于测量长度的单位,主要用于印刷领域。它的定义是一定的纸张尺寸中的一个固定比例,通常与特定的字体尺寸相关联。
* Points 点
* Qs: Ha 是面积单位公顷(hectare)的英文缩写。
*/
set.rasterResolution = DocumentRasterResolution.ScreenResolution // 光栅效果
/**
* DocumentRasterResolution 参数:
* ScreenResolution 屏幕72ppi
* MediumResolution 中150ppi
* HighResolution 高300ppi
*/
app.documents.addDocument("Web", set)
承担因您的行为而导致的法律责任,
本站有权保留或删除有争议评论。
参与本评论即表明您已经阅读并接受
上述条款。