Copy link to clipboard
Copied
I'm creating buttons & actions for interactive pdf in Adobe acrobat pro. In a single page, I could NOT add more than 102 actions for a single button. Is this limit can be extended somehow in adobe settings.
Copy link to clipboard
Copied
For what does you need so many actions?
Copy link to clipboard
Copied
Its an engineering manual.
Copy link to clipboard
Copied
Please answer my question.
Copy link to clipboard
Copied
I don't think i understood your question correctly. But here is my answer, button needs to hide/show another buttons (basically layer). Does that answer your question.
Copy link to clipboard
Copied
When you use a script for this you need only one action at the button.
Copy link to clipboard
Copied
Do you have any link or mock up document with javascript that can help me.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
The basic code is very simple:
this.getField("field1").display = display.visible; // show this field
this.getField("field2").display = display.hidden; // hide this field
Just duplicate these lines as many times as needed, adjusting the field name each time.
Copy link to clipboard
Copied
The interactive pdf created this way will work as expected in browsers also? if the pdf is opened through browsers?
Copy link to clipboard
Copied
There's no definite answer for that. It depends on the browser and the PDF plugin used in it.
Copy link to clipboard
Copied
I've attached a trial document here. In this, i've added script for the yello arrow button to turn red when clicked. It happens, but the red color fills outside the arrow. I want the arrow shape to change the color to red. is it possible? Also how to detect color for if condition. I've tried like this, but it didn't work.
var arrowColor = this.getField("Off-Yellow").fillColor;
if arrowColor == "rgb,1,1,0"
{
event.target.fillColor = color.rgb(1,0,0);
this.getField("Text-Button").display = display.visible;
}
else
{
event.target.fillColor = color.rgb(1,1,0);
this.getField("Text-Button").display = display.hidden;
}
Copy link to clipboard
Copied
You have multiple errors in your code. I recommend you read the documentation of the color object to see how to define new colors, and how to compare color objects.
You also have some errors that have to do with the core JS-syntax. Namely, you have to put parentheses around the condition in your if-statements.