Donnez vie à vos documents numériques !
 

Répondre à : Duplication script. RÉSOLU

abracadabraPDF Forums PDF – Général Duplication script. RÉSOLU Répondre à : Duplication script. RÉSOLU

#50911
nico21
Membre

pour l’instant j’ai trois fonctions javascript

Code:
function francais()
{

//PAGE1
this.getField(“TRANSFERT A POUSSOIR”).buttonSetCaption(“TRANSFERT A POUSSOIR”);
this.getField(“TRANSFERT A POUSSOIR”).userName=”CLIQUER ICI”;

this.getField(“FICHE MARKETING”).buttonSetCaption(“FICHE MARKETING”);
this.getField(“FICHE MARKETING”).userName=”CLIQUER ICI”;

this.getField(“CATALOGUE”).buttonSetCaption(“CATALOGUE”);
this.getField(“CATALOGUE”).userName=”CLIQUER ICI”;

this.getField(“FR-GB”).buttonSetCaption(“FR”);
this.getField(“FR-GB”).userName=”CLIQUER ICI”;

this.getField(“FICHE DE MONTAGE”).buttonSetCaption(“FICHE DE MONTAGE”);
this.getField(“FICHE DE MONTAGE”).userName=”FICHE DE MONTAGE – MOT DE PASSE NECESSAIRE”;

this.getField(“Menu general”).buttonSetCaption(“Menu general”);
this.getField(“Menu general”).userName=”CLIQUER ICI”;

this.getField(“OK”).userName=”CLIQUER ICI”;

this.getField(“Bouton1″).userName=”CLIQUER ICI POUR ACCEDER AU MODEL 3D”;

}

la fonction anglais

Code:
function anglais()
{
global.langue=0

//PAGE1

this.getField(“TRANSFERT A POUSSOIR”).buttonSetCaption(“PUSH DIVERTER”);
this.getField(“TRANSFERT A POUSSOIR”).userName=”CLICK HERE”;

this.getField(“FICHE MARKETING”).buttonSetCaption(“DATA SHEET”);
this.getField(“FICHE MARKETING”).userName=”CLICK HERE”;

this.getField(“CATALOGUE”).buttonSetCaption(“CATALOG”);
this.getField(“CATALOGUE”).userName=”CLICK HERE”;

this.getField(“FR-GB”).buttonSetCaption(“GB”);
this.getField(“FR-GB”).userName=”CLICK HERE”;

this.getField(“FICHE DE MONTAGE”).buttonSetCaption(“SHEET ASSEMBLY”);
this.getField(“FICHE DE MONTAGE”).userName=”SHEET ASSEMBLY – LOGIN NECESSARY”;

this.getField(“Menu general”).buttonSetCaption(“HOME MODEL 3D”);
this.getField(“Menu general”).userName=”CLICK HERE”;

this.getField(“OK”).userName=”CLICK HERE”;

this.getField(“Bouton1″).userName=”CLICK HERE TO GO TO THE MODEL 3D”;

}

la fonction start

Code:
function start()
{global.langue = 1;

}

3 boutons FR GB qi copie le script et le bouton1

FR 

Code:
francais(event.target.name);

GB 

Code:
anglais(event.target.name);

Et le bouton 1 “ou je patoge ;) ” . Je teste les cas mis dans les guide javascript “code si dessous) mais qui ne va pas par rapport à ma fonction. Le document pdf d’en-tete doit ouvrir un pdf qui est dans  sous dossier.

// Open a document 1er pour piece jointe et le second placer sur c/temp

Code:
if (global.langue=1)
this.exportDataObject({ cName: “myDoc.pdf”, nLaunch: 2 });
else var myDoc = app.openDoc(“/c/temp/myDoc2.pdf”);

Donc pour l’instant je n’arrive pas à connecter le “global.langue” par rapport aux deux fonctions de langue et je n’arrive pas à ouvrir un fichier dans note intranet type K:catalog 3dtestmydoc2.pdf

Bonne soirée

Nicolas