在AdobeLiveCycle中插入空白页

在AdobeLiveCycle中插入空白页,adobe,pdf-generation,livecycle,livecycle-designer,Adobe,Pdf Generation,Livecycle,Livecycle Designer,我有一个通过XML输入生成大量PDF文件的模板。页面计数应始终为偶数。我想在检测到奇数页时动态插入空白页。您可以帮助编写脚本以插入空白页吗?您的模板是否有一个隐藏的空白页,然后在完成后执行类似操作 if (xfa.layout.pageSpan(form1)%2 == 1 && blankPage.presence == "hidden") blankPage.presence = "visible"; else if (xfa.layout.pageSpan(form

我有一个通过XML输入生成大量PDF文件的模板。页面计数应始终为偶数。我想在检测到奇数页时动态插入空白页。您可以帮助编写脚本以插入空白页吗?

您的模板是否有一个隐藏的空白页,然后在完成后执行类似操作

if (xfa.layout.pageSpan(form1)%2 == 1 && blankPage.presence == "hidden") 
    blankPage.presence = "visible";
else if (xfa.layout.pageSpan(form1)%2 == 1) blankPage.presence = "hidden";
这应该会发现它是否奇怪,并添加页面

“form1”当然是表单的名称,“blankPage”是设计表单时隐藏的空白页面