在标准 PDF 中移动子表单

Moving subforms in standard 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 上使用它,它就不起作用。本质上,这段代码是放置在网格正方形中一个大按钮的点击事件上。

如有任何帮助,我们将不胜感激。

恐怕我认为你无法让它工作。

在 LiveCycle Designer 中设计的 iPad 版 Adob​​e Reader does not support XFA forms