Donnez vie à vos documents numériques !
 

Répondre à : Problème d’ouverture d’un fichier

abracadabraPDF Forums PDF – Général Problème d’ouverture d’un fichier Répondre à : Problème d’ouverture d’un fichier

#67758
aelbaz
Participant

Once again, thank you very much.
Regarding the “Notes” section, I have included in each file a button that saves and closes the file when it is abandoned. In this way, an increasingly extensive history is created and you can check live updates when it is opened. In that button I have included the following code:

// Primero hay que asegurarse que la función existe
if(typeof(guardar) == “function”) {
// Ahora dividir la porción pura “Path” de la ruta del archivo para llamar a la función
var nLast = this.path.lastIndexOf(“/”);
var cPath = this.path.slice(0,nLast);
guardar(this,cPath, this.documentFileName);
} else {
app.alert(“Falta la función de guardarn” + “Por favor, contacte con el administrador de formularios”);
}
// Crear el nombre del fichero desde los campos de texto
var nombreFichero = this.getField(“ListaNivel3”).valueAsString;

// Guardar el fichero
guardar(this, “/c/Users/angel/Downloads/Biblioteca de scripts”, nombreFichero + “.pdf”);

// Cerrar el fichero
this.closeDoc();

Let me clarify: I was born in Madrid and I live in a small city very close to Madrid.