简体   繁体   English

Adobe Acrobat DC Pro-使用单选按钮隐藏字段时如何向上移动字段

[英]Adobe Acrobat DC Pro - How to move fields up when hiding fields with radio buttons

I was wondering if I could get some help regarding my current issue with Adobe Acrobat DC Pro; 我想知道我是否可以在Adobe Acrobat DC Pro的当前问题上获得一些帮助? I'm currently working on a PDF form and I'm hiding some fields via radio buttons I just created. 我目前正在使用PDF表单,并且正在通过刚创建的单选按钮隐藏某些字段。 I would like to know how can I move the fields up for not leaving an empty space of the hidden fields. 我想知道如何才能将字段向上移动,以免在隐藏字段的空白处留下空白。

Any help would be very appreciated. 任何帮助将不胜感激。

Thanks. 谢谢。

It is possible, but will require a bit of programming, and all the elements which can be moved must be in fields. 可能,但需要进行一些编程,并且所有可移动的元素都必须位于字段中。

The Field object has the rect property, which represents its coordinates. Field对象具有rect属性,代表其坐标。 By accordingly modifying those coordinates, you can place (therefore move) the fields around. 通过相应地修改这些坐标,您可以在周围放置(因此移动)字段。

You will create a function which evaluates all the radiobuttons values etc. and move the fields to the right place; 您将创建一个函数,该函数将评估所有单选按钮的值等,并将字段移到正确的位置; you will call this function either from the radiobuttons, or from the Calculate event of a hidden, read-only field. 您可以通过单选按钮或隐藏的只读字段的Calculate事件来调用此函数。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM