montecristo24de
Goto Top

Pdf Formular speichern als pdf mit nur Leserechten

Hallo,

Ich habe ein Formular mit Acrobat X erstellt. Mit diesem Formular ist es möglich es unter dem Acrobat Reader auszufüllen und auch als ausgefülltes Formular zu Speichern.

Nun ist es so das, dass Formular in der gespeicherten Version, trotzdem immer noch mit Acrobat Reader verändert werden kann, und auch gepeichert werden kann!
Ich möchte gerne einen "Speichern" Button in das Formular einfügen, der das Formular nur mit reinen Leserechten speichert. Dazu ist es notwendig, das man ein Script mit dem Speichen Button verbindet. Ich weiß es gibt so was, da ich sowas schon gesehen habe. Leider finde ich die Seite nicht mehr!

Content-Key: 161147

Url: https://administrator.de/contentid/161147

Ausgedruckt am: 28.03.2024 um 12:03 Uhr

Mitglied: montecristo24de
montecristo24de 01.03.2011 um 15:32:23 Uhr
Goto Top
Hier das fertige Script


Mouse Up script for a button
Set all fields except buttons to read-only and save
(function () {

var i, f;

Loop through the collection of fields
for (i = 0; i < numFields; i++) {

Get the current field
f = getField(getNthFieldName(i));

Set to read-only if not a button
if (f.type !== "button") {
f.readonly = true;
}
}

Hide this button - you do not have to do this
event.target.display = display.hidden;

// Save the file
app.execMenuItem("SaveAs");

})();