I created a PDF editable using Adobe Indesign. When I open the PDF file in Adobe Acrobat Pro ms, is there a way to specify a font style? Or is it possible in InDesign to make sure that when someone types in this text field is a certain font?

I need to make sure that the entered text is a certain font to keep continuity with the rest of the document. Thank you!

To make form editing mode, select 'Prepare form' in the right pane. You will then get a toolbar at the top which contains various tools that focus on the form. The first thing to do is to add a temporary button. You will use this to determine the name of the font to use with the script but also to place the script that will change the properties of the font of text fields. Thus, create a button anywhere and double-click on it to bring up the field properties dialog in the Actions tab, add a JavaScript action to the mouse event to the top which is:

// Mouse Up script for temporary button
app.alert(event.target.textFont);

On the appearance tab, select the font you want to use for the text fields. Once you have done this, close the form editing mode and click the button. It displays a popup that lists the name of the font. This may be different from the name that appears in the drop-down list on the appearance tab, so write down it. For example, when I chose "Minion Pro" in the menu dropdown, popup showed "MinionPro-Regular.

The next step is to replace this script of mouse upwards by the following text:

// Mouse Up script for temporary button

// Change the font and font size for all text field in this document
for (var i = 0; i < numFields; i++) {

    var f = getField(getNthFieldName(i));

    if (f.type === "text") {
        f.textFont = "MinionPro-Regular";
        f.textSize = 9;
    }

}

Replace "MinionPro-Regular" by the name of the font that you wrote before, and set the font size to whatever you want. Use 0 to specify a font size of 'Auto '.

This script will change the font of all the text fields to whatever you specify. When you have verified that text fields are implemented as you want, you can go ahead and delete or hide the button. If you think you'll do a lot of forms of work, you can create customized in Acrobat tools to speed up this process, but this should help you get started. InDesign does not allow you to specify a large number of field and action properties, so you must work this way, and using scripts to automate is an accessible way to significantly speed up the process and avoid mistakes.

Tags: Acrobat

Similar Questions

Maybe you are looking for

  • HP Z620: Jumpers on the motherboard Z620 FMB-1102

    I'm very curious to learn what is the jumper between the PCIe slots on a card mother FMB-1102 don't. I've searched high and low, but can't seem to find a refernce to it in any documentation. The dilemma is that my Hauppauge TV tuner card is not recog

  • Error 800b0100 code after trying to install KB2416470

    I tried to install this update of security for some time now. I tried to install the analysis TOOL and I still have this problem. Also, I rebooted the computer and tried to cut the firewall so to download. Always down. Whats up with that? I guess I'l

  • Windows XP cannot format a floppy disk

    Whenever I try to format a floppy disk, windows tells me that it was impossible to finish formatting. Also, I was able to make a boot disk MS_Dos, but not the format a floppy disk. Please if anyone can help. I tried for two days now to re - install w

  • Hidden files and folders

    I have questions about the hidden files and folders. I hope someone can give me the right answer that will be only one of the four that I would ask. Q. hidden files or folders cannot be seen by any user? Q. is visible by the main user Q. is using by

  • Programs of blockages and close immediately after opening.

    I have Windows 7 and I have problems with some programs on my HP Pavilion laptop g6. Sony Vegas Pro 11 crash so he's trying to open it. Steam and the program to view photos (I forgot what it's called) has refused to open. I scanned my laptop computer