Copy link to clipboard
Copied
Hallo liebe Gemeinde,
ich arbeite mit Adobe Acrobat Pro DC für PC (Windows 10) und möchte gerne einen interaktiven Schaltplan erstellen.
Also es soll ein Schaltplan angezeigt werden welcher mit unsichtbaren Schaltflächen versehen ist. Wenn der Benutzer auf eine Schaltfläche drückt, soll ein Bild des Bauteils angezeigt werden.
Zur Verdeutlichung - auf dem Plan ist ein Symbol einer Pumpe oder eines Ventils zu sehen, klick auf das Symbol und ein Bild der Pumpe wird angezeigt.
Die Bilder der Bauteile sollten alle im PDF gespeichert sein und nicht per Link vom Web oder vom Rechner geladen werden.
Hoffe ich konnte mein Anliegen einigermaßen erklären.
Wie kann ich so etwas realisieren?
Gruß
Dietmar
Copy link to clipboard
Copied
Put the pictures on form buttons. Then show/hide the buttons.
Copy link to clipboard
Copied
Vielen Dank, das hat geklappt.
Wie mache ich, dass immer nur ein form button offen ist?
Also wenn ich ein zweites anklicke, dass das letzte ausgeblendet wird und das neue angezeigt wird.
Copy link to clipboard
Copied
Use a script to hide the other button when the first one is clicked. For example:
this.getField("Button2").display = display.hidden;
Copy link to clipboard
Copied
Danke für die Hilfe
wie ist das script für ausblenden aller buttons?
Copy link to clipboard
Copied
All the buttons in the entire file?
Copy link to clipboard
Copied
Ja, alle buttons in der PDF
Copy link to clipboard
Copied
You can use this code to do it:
for (var i=0; i<this.numFields; i++) {
var f = this.getField(this.getNthFieldName(i));
if (f==null) continue;
if (f.type=="button") f.display = display.hidden;
}
Copy link to clipboard
Copied
super, vielen Dank
Copy link to clipboard
Copied
When you show one button you can also hide the other buttons.
Copy link to clipboard
Copied
Danke, ich würde gerne erst alle ausblenden (script) und dann das gewünschte einblenden