在标准PDF中移动子形式



我正在尝试在标准PDF文件(而不是动态XML)中移动子形式。我有一个旧的livecycle(ES2),并制作了以下代码

xfa.host.setFocus(clearArrows);
var gridX = xfa.layout.x(gridPICK); 
var gridY = xfa.layout.y(gridPICK); 
var gridW = xfa.layout.w(gridPICK);
var gridH = xfa.layout.h(gridPICK);
var markerDim = 0;
var mouseX = event.target.mouseX;
var newX = (mouseX + "points").toString(); 
var mouseY = xfa.layout.h(Page3) - event.target.mouseY;
var newY = (mouseY + "points").toString(); 
for (var i = 0; i < 10; i++){
    var indicatorObject = xfa.resolveNode("Indicator[" + i.toString() +     "]");
    var indicatorX = xfa.layout.x(indicatorObject);
    if (indicatorX < gridX) {
        var pointIndicator = indicatorObject;
        pointIndicator.presence = "visible"; 
        xfa.host.setFocus(pointIndicator.Description);
        xfa.host.openList("Indicator[" + i.toString() + "].Description");
        i = 10;
    }
}

if (mouseX <= gridX + markerDim)
{
    pointIndicator.x = (gridX + markerDim + "points").toString(); 
}
else if (mouseX >= gridX + gridW - markerDim)
{
    pointIndicator.x = (gridX + gridW - markerDim + "points").toString();  
}
else
{
    pointIndicator.x = newX; 
} 
if (mouseY >= gridY + gridH - markerDim)
{
    pointIndicator.y = (gridY + gridH - markerDim + "points").toString();  
}
else if (mouseY <= gridY + markerDim)
{
    pointIndicator.y = (gridY + markerDim + "points").toString(); 
}
else
{
    pointIndicator.y = newY;
}  

如果我将功能扩展并在PC或Mac上使用,则可以正常工作,但是如果我尝试在iPad上使用它,则无法正常工作。本质上,此代码放置在网格正方形中一个大按钮的单击事件上。

任何帮助将不胜感激。

我恐怕我认为你无法使它起作用。

Adobe读取器的iPad版本不支持LiveCycle Designer设计的XFA表单。

相关内容

  • 没有找到相关文章

最新更新