Is it possible to change the width of the alert box display on the JavaScript side?
Copy link to clipboard
Copied
Is it possible to change the width of the alert box display on the JavaScript side?
app.alert ("(1) aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa \ n (2) bbbbbbbbbbbbbbbbbbbb \ n (3) cccccccccccccccccccccc", 3);
For example, if I write as above, the sentence (1) will be displayed in two lines.
This is difficult to read and looks ugly, so I want to display it in one line.
Copy link to clipboard
Copied
NO, Acrobat does whatever it want with the text you give it.
Use the Acrobat JavaScript Reference early and often
Copy link to clipboard
Copied
Thank you. I understood.
Copy link to clipboard
Copied
May be possible when you replace the app.alert by a dialog.
Copy link to clipboard
Copied
Thank you. I haven't tried the dialog box yet, so I'll look it up.
Copy link to clipboard
Copied
Look up the "app.execDialog" function in the Acrobat JavaScript Reference.
Here's some info on Custom Dialogs, and a link to an online tool for designing Custom Dialogs:
https://www.pdfscripting.com/public/Alerts-Popups-and-Other-UI.cfm#JSCustomDlg
Use the Acrobat JavaScript Reference early and often

