我正在尝试在标准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上使用它它不起作用。基本上,此代码放置在网格方块中的大按钮的单击事件上。
非常感谢任何帮助。
答案 0 :(得分:1)
我担心我不会认为你能够让它发挥作用。
在LiveCycle Designer中设计的Adobe Reader does not support XFA forms的iPad版本。