Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

rotate a text field

Explorer ,
Mar 20, 2018 Mar 20, 2018

Hi,

I have various text fields in an AcroForm, and I would like to rotate these fields. I am aware that there is an in-built option of orientation to 0,90,180, 270 degrees. But, my desire is to change the orientation to different degrees such as 25 or 35 for each text field independently.

Is there a solution to do it?

I would appreciate any help/example/guidance.

TOPICS
PDF forms
2.4K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
1 ACCEPTED SOLUTION
Community Expert ,
Mar 20, 2018 Mar 20, 2018

In theory, yes, but if you try to rotate a FreeText annotation by 45 degrees, for example, the text gets cut off:

View solution in original post

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 20, 2018 Mar 20, 2018

Not possible.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 20, 2018 Mar 20, 2018

Can't do this with a text field, but you can do it with a text markup annotation.

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 20, 2018 Mar 20, 2018

In theory, yes, but if you try to rotate a FreeText annotation by 45 degrees, for example, the text gets cut off:

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 21, 2018 Mar 21, 2018

Thank you for the feedback try67​ and Thom Parker

Maybe I clarify my intention, and one could kindly advice me a more proper way to do it.

I am creating a sort of complex diagram, in which the user clicks on a button and expands other buttons. And these buttons "visually" should be linked by lines. Please see the below image for a very simplified version of the idea. The "text field" I was mentioning were the lines of which I imagined to create by simply inserting consecutive "- - -".

example-concept.png

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 21, 2018 Mar 21, 2018

Using text fields for that is probably the most complicated way of doing it... Just use a Line annotation. You can easily control its exact location by setting the first and last points, and you can set it to be dashed by setting the dash property.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 21, 2018 Mar 21, 2018

Thank you for your response.

But, can I somehow assign interactive show/hide option to that annotation (like in any form field)?

I mean can I show/hide it on mouse click to a button field?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 21, 2018 Mar 21, 2018
LATEST

Yes, that can be done using a script, by setting the annotation's hidden property.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines