abracadabraPDF › Forums › PDF – Général › Duplication script. RÉSOLU › Répondre à : Duplication script. RÉSOLU
Voici le code pour le bouton qui va ouvrir un fichier suivant la langue
BoutonTest qui va chercher dans un sous repertoire par raport au fichier ouvert :contentdance:
if (global.langue == 0)
app.openDoc(“./8141_DOC/Schema pesee statique.pdf”);
else
app.openDoc(“./8141_DOC/fr-CB016P-4.pdf”);
{global.langue = 1;
}
{
global.langue = 1;
//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”;
this.getField(“BoutonTest”).buttonSetCaption(“Doc en Anglais”);
this.getField(“BoutonTest”).userName=”CLIQUER ICI POUR ACCEDER AU MODEL 3D”;
}
{
global.langue = 0;
//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”;
this.getField(“BoutonTest”).buttonSetCaption(“Doc en Français”);
this.getField(“BoutonTest”).userName=”CLIQUER ICI POUR ACCEDER AU MODEL 3D”;
}
Maintenant que j’ai passé ce mur avec votre aide, j’ai une nouvelle barrière qui est là. Je sais ouvrir le fichier, mais ce fichier est un portfolio!!! Comment accéder au bon fichier du portfolio qui est dans des dossiers FR GB .