Skip to main content
Participant
August 4, 2024
Question

Language Database for Acrobat Pro

  • August 4, 2024
  • 1 reply
  • 758 views

Hello,

I have pdf forms that the user can change the form's language using a dropdown menu. Right now I have only two languages so it works properly. However, if I want to add more languages, the form will be too slow since I manually add the translations to the script. Is there any way to get it from a database? Do you have any recommendations?

 

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
August 4, 2024

How are you currently doing it? Are you using layers?

In order to use a database all the contents of the file must be something that can be edited, like form fields. That can be a LOT of work setting it all up, just to avoid having a somewhat large file size. I would not recommend you try doing that.

Participant
August 4, 2024

I am using Javascript to change the text boxes when the user selects another language from the dropdown menu. I manually write translations to the Java script.  I don't use layers at all.

try67
Community Expert
Community Expert
August 4, 2024

In that case, yes, you can do it. You can use a tab-delimited text file for the database with the names of the fields in the columns and each row matching a different language. Then attach that file to your PDF, read and parse its data when the file is opened, and change the values of the fields when the user switches between languages using the data-model you've created.

This is a bit complex, though. If you're a novice with Acrobat JS it might be a bit too much for you to be able to handle. If you're interested in hiring a professional to create it for you, feel free to contact me privately by clicking my user-name and then on "Send a Message".