带有变量的 Acrobat Run 配置文件 (JavaScript)

问题描述 投票:0回答:1

基于acrobat创建的预检,如何在运行前为预检设置值。

var oProfile = Preflight.getProfileByName("myPreflight");
var oThermometer = app.thermometer;
var textSize = 10;
//oProfile.SetVariable("textSize",textSize); how to do?
var myPreflightResult = this.preflight(oProfile,false,oThermometer );
javascript acrobat
1个回答
0
投票

尝试超时:

oProfile.SetVariable("textSize",textSize)
var result = undefined
var self = this // Not necessary, but to avoid problems

setTimeout(function(){
   result = self.preflight(oProfile,false,oThermometer)
}, 100) //The 100 is in 100ms , you can change it
© www.soinside.com 2019 - 2024. All rights reserved.