Pdf modifiable Form Nan

Tout ce qui concerne le langage TeX/LaTeX et ses variantes. Ce langage est utilisable sur le forum via les balises tex.
[participation réservée aux utilisateurs inscrits]
Règles du forum
Merci de soigner la rédaction de vos messages et de consulter ce sujet avant de poster. Pensez également à utiliser la fonction recherche du forum.
marco56
Utilisateur chevronné
Utilisateur chevronné
Messages : 1136
Inscription : jeudi 25 novembre 2010, 22:10

[Résolu] Pdf modifiable Form Nan

Message non lu par marco56 »

Bonjour,
Je pense encore une conséquence de la mise à jour à TL2021, mes formulaires ne fonctionnent plus correctement.
Ainsi, dans le document suivant, lorsque je coche une case par ligne et que je demande le total, j'ai le droit à un joli NaN.
Quelqu'un a une idée pour y remédier ?
Ai-je perdu un package quelconque sur ma distribution Ubuntu ?
Bonne semaine à vous.

Code : Tout sélectionner

\documentclass[12pt,french]{report}
\usepackage{lmodern}
\renewcommand*\familydefault{\sfdefault}
\usepackage[french]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc} 
\usepackage{geometry}
\geometry{verbose,a4paper,tmargin=1.2 cm,bmargin=1.5 cm,lmargin=1.5 cm,rmargin=1.5 cm} % modificat
\usepackage{fourier}
\usepackage{babel}
\usepackage{setspace}
\usepackage{fancyhdr} % pour les entêtes et les pieds de page

\usepackage[pdftex]{graphicx}
\usepackage{graphics}
\usepackage{hyperref}

% le format de page
%%%\setlength{\textheight}{701.2245pt}
\setlength{\textheight}{723pt}
\setlength{\topmargin}{-38.12677pt}
\setlength{\headheight}{14.9pt}
\setlength{\headsep}{8pt}
%%\setlength{\footskip}{21pt}
\setlength{\footskip}{24pt}
%\renewcommand{\footrulewidth}{0pt}
\renewcommand{\footrulewidth}{.4pt}

% les entêtes et pieds de page
\pagestyle{fancy}

\begin{document}

\shorthandoff{;}
\begin{Form}


\noindent\hspace{2mm}\ChoiceMenu[radio,name=CoursA,charsize=14pt]{}{=4}\hfill\ChoiceMenu[radio,name=CoursA,charsize=14pt]{}{=3}\hfill\ChoiceMenu[radio,name=CoursA,charsize=14pt]{}{=2}\hfill\ChoiceMenu[radio,name=CoursA,charsize=14pt]{}{=1}\hfill\ChoiceMenu[radio,name=CoursA,charsize=14pt]{}{=0}\hspace{2mm}

\vspace{1cm}


\noindent\hspace{2mm}\ChoiceMenu[radio,name=CoursB,charsize=14pt]{}{=4}\hfill\ChoiceMenu[radio,name=CoursB,charsize=14pt]{}{=3}\hfill\ChoiceMenu[radio,name=CoursB,charsize=14pt]{}{=2}\hfill\ChoiceMenu[radio,name=CoursB,charsize=14pt]{}{=1}\hfill\ChoiceMenu[radio,name=CoursB,charsize=14pt]{}{=0}\hspace{2mm}

\vspace{1cm}

\hspace{-1.67cm} APP
\noindent\hspace{2mm}\ChoiceMenu[radio,name=ExoA,charsize=14pt]{}{=4}\hfill\ChoiceMenu[radio,name=ExoA,charsize=14pt]{}{=3}\hfill\ChoiceMenu[radio,name=ExoA,charsize=14pt]{}{=2}\hfill\ChoiceMenu[radio,name=ExoA,charsize=14pt]{}{=1}\hfill\ChoiceMenu[radio,name=ExoA,charsize=14pt]{}{=0}\hspace{2mm}

\vspace{1cm}

\hspace{-1.7cm} ANA
\noindent\hspace{2mm}\ChoiceMenu[radio,name=ExoB,charsize=14pt]{}{=4}\hfill\ChoiceMenu[radio,name=ExoB,charsize=14pt]{}{=3}\hfill\ChoiceMenu[radio,name=ExoB,charsize=14pt]{}{=2}\hfill\ChoiceMenu[radio,name=ExoB,charsize=14pt]{}{=1}\hfill\ChoiceMenu[radio,name=ExoB,charsize=14pt]{}{=0}\hspace{2mm}

\vspace{1cm}

\hspace{-1.65cm} REA
\noindent\hspace{2mm}\ChoiceMenu[radio,name=ExoC,charsize=14pt]{}{=4}\hfill\ChoiceMenu[radio,name=ExoC,charsize=14pt]{}{=3}\hfill\ChoiceMenu[radio,name=ExoC,charsize=14pt]{}{=2}\hfill\ChoiceMenu[radio,name=ExoC,charsize=14pt]{}{=1}\hfill\ChoiceMenu[radio,name=ExoC,charsize=14pt]{}{=0}\hspace{2mm}

\vspace{1cm}

\hspace{-1.6cm} VAL
\noindent\hspace{2mm}\ChoiceMenu[radio,name=TransverseA,charsize=14pt]{}{=4}\hfill\ChoiceMenu[radio,name=TransverseA,charsize=14pt]{}{=3}\hfill\ChoiceMenu[radio,name=TransverseA,charsize=14pt]{}{=2}\hfill\ChoiceMenu[radio,name=TransverseA,charsize=14pt]{}{=1}\hfill\ChoiceMenu[radio,name=TransverseA,charsize=14pt]{}{=0}

\vspace{1cm}

\hspace{-1.8cm} COM
\noindent\hspace{2mm}\ChoiceMenu[radio,name=TransverseB,charsize=14pt]{}{=4}\hfill\ChoiceMenu[radio,name=TransverseB,charsize=14pt]{}{=3}\hfill\ChoiceMenu[radio,name=TransverseB,charsize=14pt]{}{=2}\hfill\ChoiceMenu[radio,name=TransverseB,charsize=14pt]{}{=1}\hfill\ChoiceMenu[radio,name=TransverseB,charsize=14pt]{}{=0}

\vspace{1cm}

\hspace{-1.7cm} AUT
\noindent\hspace{2mm}\ChoiceMenu[radio,name=TransverseC,charsize=14pt]{}{=4}\hfill\ChoiceMenu[radio,name=TransverseC,charsize=14pt]{}{=3}\hfill\ChoiceMenu[radio,name=TransverseC,charsize=14pt]{}{=2}\hfill\ChoiceMenu[radio,name=TransverseC,charsize=14pt]{}{=1}\hfill\ChoiceMenu[radio,name=TransverseC,charsize=14pt]{}{=0}\hspace{2mm}

\vspace{1cm}

\TextField[name=note,readonly=true]{Note : }\hfill
\PushButton[name=go,
onclick={var ca = this.getField("CoursA");var cb=this.getField("CoursB");
var ea=this.getField("ExoA");var eb=this.getField("ExoB");var ec=this.getField("ExoC");
var ta=this.getField("TransverseA");var tb=this.getField("TransverseB");var tc=this.getField("TransverseC");
% la note de cours a un coeff multiplicateur entre 0,7 et 1
% la note d'exo a un coeff multiplicateur entre 0,4 et 1
% la note transversal a un coeff multiplicateur entre 0,5 et 1
var tempo=((parseInt(ca.value)+parseInt(cb.value))/8*8/20) + ((parseInt(ea.value)+parseInt(eb.value)+parseInt(ec.value))/12*9/20)+((parseInt(ta.value)+parseInt(tb.value)+parseInt(tc.value))/12*3/20);
var note=this.getField("note");note.value=Math.round(tempo*40)/2
}
]{Cliquez ici pour calculer}

\vspace{.3em}

\noindent\dotfill

\noindent\hfill\PushButton[name=signature,
onclick={if (this.getField("classe").value=="oups") {
this.getField("nomA").readonly=false;this.getField("date").readonly=false;this.getField("semaine").readonly=false;this.getField("groupe").readonly=false;
this.getField("CoursA").readonly=false;this.getField("CoursB").readonly=false;
this.getField("ExoA").readonly=false;this.getField("ExoB").readonly=false;this.getField("ExoC").readonly=false;
this.getField("TransverseA").readonly=false;this.getField("TransverseB").readonly=false;this.getField("TransverseC").readonly=false;
}
else {
this.getField("nomA").readonly=true;this.getField("date").readonly=true;this.getField("semaine").readonly=true;this.getField("groupe").readonly=true;
this.getField("CoursA").readonly=true;this.getField("CoursB").readonly=true;
this.getField("ExoA").readonly=true;this.getField("ExoB").readonly=true;this.getField("ExoC").readonly=true;
this.getField("TransverseA").readonly=true;this.getField("TransverseB").readonly=true;this.getField("TransverseC").readonly=true;
}
}
]{Verrouiller}\hfill~

\end{Form}
\shorthandon{;}

\end{document}
Dernière modification par marco56 le lundi 18 octobre 2021, 10:25, modifié 3 fois.
touhami
Utilisateur éprouvé
Utilisateur éprouvé
Messages : 488
Inscription : dimanche 11 février 2007, 11:45

Re: Pdf modifiable Form Nan

Message non lu par touhami »

Bonjour.
  • Vous avez besoin de charger l'extension hyperref avec l'option pdfencoding=auto:

    Code : Tout sélectionner

    \usepackage[pdfencoding=auto]{hyperref}
  • Ajoutez un point virgule à la fin de votre code javascript.
  • Ajouter une valeur par défaut à chaque \ChoiceMenu, par exemple \ChoiceMenu[default=0,...
Supplément.

Enfin, la syntaxe de menu au choix (\ChoiceMenu) est: \ChoiceMenu[parameters]{label}{choices}
par exemple,

Code : Tout sélectionner

\ChoiceMenu[name=ca, radio, default=0]{Question}{\hfill choix un =2,\hfill choix deux =0,\hfill choix trois=3}
marco56
Utilisateur chevronné
Utilisateur chevronné
Messages : 1136
Inscription : jeudi 25 novembre 2010, 22:10

Re: Pdf modifiable Form Nan

Message non lu par marco56 »

Ok, merci, je regarderai cela demain. Ce qui est étonnant, c'est que cela fonctionnait jusqu'à présent. Bonne soirée.
projetmbc
Utilisateur chevronné
Utilisateur chevronné
Messages : 2238
Inscription : samedi 29 décembre 2007, 00:58

Re: Pdf modifiable Form Nan

Message non lu par projetmbc »

Quand vous aurez réparé votre code, je serais bien preneur de le voir.
touhami
Utilisateur éprouvé
Utilisateur éprouvé
Messages : 488
Inscription : dimanche 11 février 2007, 11:45

Re: Pdf modifiable Form Nan

Message non lu par touhami »

Bon jour.
Excusez-moi, deux remarques concernant ma réponse.
  • Le point virgule manque à la fin du code de button calculer nommé *go*.
  • Comme vous avez des valeur nuls entre les choix, vous pouvez prendre comme valeur par défaut "-0".

Code : Tout sélectionner

 \ChoiceMenu[default=-0,...
marco56
Utilisateur chevronné
Utilisateur chevronné
Messages : 1136
Inscription : jeudi 25 novembre 2010, 22:10

Re: Pdf modifiable Form Nan

Message non lu par marco56 »

projetmbc a écrit : mardi 07 septembre 2021, 09:02 Quand vous aurez réparé votre code, je serais bien preneur de le voir.
Merci touhami !
Problème avec hyperref et l'oubli du point-virgule.

Voici ce que j'ai finalement.

Code : Tout sélectionner

\documentclass[12pt,french]{report}
\usepackage{lmodern}
\renewcommand*\familydefault{\sfdefault}
\usepackage[french]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc} 
\usepackage{geometry}
\geometry{verbose,a4paper,tmargin=1.2 cm,bmargin=1.5 cm,lmargin=1.5 cm,rmargin=1.5 cm} % modificat
\usepackage{fourier}
\usepackage{babel}
\usepackage{setspace}
\usepackage{fancyhdr}                          % pour les entêtes et les pieds de page

\usepackage[pdftex]{graphicx}
\usepackage{graphics}
\usepackage[pdfencoding=auto]{hyperref}

% le format de page
%%%\setlength{\textheight}{701.2245pt}
\setlength{\textheight}{723pt}
\setlength{\topmargin}{-38.12677pt}
\setlength{\headheight}{14.9pt}
\setlength{\headsep}{8pt}
%%\setlength{\footskip}{21pt}
\setlength{\footskip}{24pt}
%\renewcommand{\footrulewidth}{0pt}
\renewcommand{\footrulewidth}{.4pt}

% les entêtes et pieds de page
\pagestyle{fancy}

\begin{document}



\lhead{Lycée bidule}
\chead{\bf Physique-Chimie}
\cfoot{}
\rhead{\em 2021 -- 2022}

%\rfoot{\TextField[name=nomprof,width=8cm,charsize=12pt]{Colleur : } }


\shorthandoff{;}
\begin{Form}

\noindent \TextField[name=semaine,width=1cm,charsize=12pt]{Semaine }  le \TextField[name=date,width=4cm,charsize=12pt]{} \hfill Classe : cpge 

\vspace{1em}

\noindent\TextField[name=nomA,width=8cm,charsize=12pt]{Nom : } \hfill \TextField[name=groupe,width=2cm,charsize=12pt]{Groupe n° : }

\noindent\dotfill

\noindent\hfill{\sc Cours}\hfill~

\vspace{.2em}

\noindent\hfill\TextField[name=rqCours,width=17.8cm,height=3.3cm,multiline=true,charsize=10pt]\hfill~{}

\vspace{.3em}

%\vspace{.2em}

\noindent Complet et juste \hfill Absent ou faux

\vspace{.25em}

\noindent\hspace{2mm}\ChoiceMenu[radio,name=CoursA,charsize=14pt]{}{=4}\hfill\ChoiceMenu[radio,name=CoursA,charsize=14pt]{}{=3}\hfill\ChoiceMenu[radio,name=CoursA,charsize=14pt]{}{=2}\hfill\ChoiceMenu[radio,name=CoursA,charsize=14pt]{}{=1}\hfill\ChoiceMenu[radio,name=CoursA,charsize=14pt]{}{=0}\hspace{2mm}

\vspace{.2em}

\noindent Maîtrise et rapidité \hfill Notions hésitantes

\vspace{.25em}

\noindent\hspace{2mm}\ChoiceMenu[radio,name=CoursB,charsize=14pt]{}{=4}\hfill\ChoiceMenu[radio,name=CoursB,charsize=14pt]{}{=3}\hfill\ChoiceMenu[radio,name=CoursB,charsize=14pt]{}{=2}\hfill\ChoiceMenu[radio,name=CoursB,charsize=14pt]{}{=1}\hfill\ChoiceMenu[radio,name=CoursB,charsize=14pt]{}{=0}\hspace{2mm}

\vspace{-.5em}

\noindent\dotfill

\noindent\hfill{\sc Exercices}\hfill~
\vspace{.2em}

\noindent\hfill\TextField[name=rqExo,width=17.8cm,height=3.3cm,multiline=true,charsize=10pt,value=]\hfill~{}

\vspace{.2em}

\noindent Appropriation du sujet, suivi des conseils \hfill "Hors" du sujet

\vspace{.25em}

\hspace{-1.67cm} APP
\noindent\hspace{2mm}\ChoiceMenu[radio,name=ExoA,charsize=14pt]{}{=4}\hfill\ChoiceMenu[radio,name=ExoA,charsize=14pt]{}{=3}\hfill\ChoiceMenu[radio,name=ExoA,charsize=14pt]{}{=2}\hfill\ChoiceMenu[radio,name=ExoA,charsize=14pt]{}{=1}\hfill\ChoiceMenu[radio,name=ExoA,charsize=14pt]{}{=0}\hspace{2mm}

\vspace{.2em}

\noindent Analyse et modélisation (schéma, lois physiques\ldots) \hfill Absence d'analyse

\vspace{.25em}
\hspace{-1.7cm} ANA
\noindent\hspace{2mm}\ChoiceMenu[radio,name=ExoB,charsize=14pt]{}{=4}\hfill\ChoiceMenu[radio,name=ExoB,charsize=14pt]{}{=3}\hfill\ChoiceMenu[radio,name=ExoB,charsize=14pt]{}{=2}\hfill\ChoiceMenu[radio,name=ExoB,charsize=14pt]{}{=1}\hfill\ChoiceMenu[radio,name=ExoB,charsize=14pt]{}{=0}\hspace{2mm}

\vspace{.2em}

\noindent Justesse et rapidité des raisonnements et calculs \hfill Lent, approximatif ou faux

\vspace{.25em}

\hspace{-1.65cm} REA
\noindent\hspace{2mm}\ChoiceMenu[radio,name=ExoC,charsize=14pt]{}{=4}\hfill\ChoiceMenu[radio,name=ExoC,charsize=14pt]{}{=3}\hfill\ChoiceMenu[radio,name=ExoC,charsize=14pt]{}{=2}\hfill\ChoiceMenu[radio,name=ExoC,charsize=14pt]{}{=1}\hfill\ChoiceMenu[radio,name=ExoC,charsize=14pt]{}{=0}\hspace{2mm}

\vspace{.2em}

\noindent Recul physique correct (AN, homogénéité, esprit critique\ldots) \hfill Aucun recul (ne fait que du calcul)

\vspace{.25em}
\hspace{-1.6cm} VAL
\noindent\hspace{2mm}\ChoiceMenu[radio,name=TransverseA,charsize=14pt]{}{=4}\hfill\ChoiceMenu[radio,name=TransverseA,charsize=14pt]{}{=3}\hfill\ChoiceMenu[radio,name=TransverseA,charsize=14pt]{}{=2}\hfill\ChoiceMenu[radio,name=TransverseA,charsize=14pt]{}{=1}\hfill\ChoiceMenu[radio,name=TransverseA,charsize=14pt]{}{=0}\hspace{2mm}

\vspace{.2em}

\noindent Dialogue, gestion du tableau, dynamisme, prestance \hfill Communication à revoir

\vspace{.25em}
\hspace{-1.8cm} COM
\noindent\hspace{2mm}\ChoiceMenu[radio,name=TransverseB,charsize=14pt]{}{=4}\hfill\ChoiceMenu[radio,name=TransverseB,charsize=14pt]{}{=3}\hfill\ChoiceMenu[radio,name=TransverseB,charsize=14pt]{}{=2}\hfill\ChoiceMenu[radio,name=TransverseB,charsize=14pt]{}{=1}\hfill\ChoiceMenu[radio,name=TransverseB,charsize=14pt]{}{=0}\hspace{2mm}

\vspace{.2em}

\noindent Autonomie \hfill Aucune initiative personnelle

\vspace{.25em}
\hspace{-1.7cm} AUT
\noindent\hspace{2mm}\ChoiceMenu[radio,name=TransverseC,charsize=14pt]{}{=4}\hfill\ChoiceMenu[radio,name=TransverseC,charsize=14pt]{}{=3}\hfill\ChoiceMenu[radio,name=TransverseC,charsize=14pt]{}{=2}\hfill\ChoiceMenu[radio,name=TransverseC,charsize=14pt]{}{=1}\hfill\ChoiceMenu[radio,name=TransverseC,charsize=14pt]{}{=0}\hspace{2mm}


\vspace{-.5em}

\noindent\dotfill

\vspace{.3em}

\TextField[name=note,readonly=true]{Note : }\hfill
\PushButton[name=go,
onclick={var ca = this.getField("CoursA");var cb=this.getField("CoursB");
var ea=this.getField("ExoA");var eb=this.getField("ExoB");var ec=this.getField("ExoC");
var ta=this.getField("TransverseA");var tb=this.getField("TransverseB");var tc=this.getField("TransverseC");
% la note de cours a un coeff multiplicateur entre 0,7 et 1
% la note d'exo a un coeff multiplicateur entre 0,4 et 1
% la note transversal a un coeff multiplicateur entre 0,5 et 1
var tempo=((parseInt(ca.value)+parseInt(cb.value))/8*8/20) + ((parseInt(ea.value)+parseInt(eb.value)+parseInt(ec.value))/12*9/20)+((parseInt(ta.value)+parseInt(tb.value)+parseInt(tc.value))/12*3/20);
var note=this.getField("note");note.value=Math.round(tempo*40)/2
}
]{Cliquez ici pour calculer};

\vspace{.3em}

\noindent\dotfill

\noindent\hfill\PushButton[name=signature,
onclick={if (this.getField("classe").value=="oups") {
this.getField("nomA").readonly=false;this.getField("date").readonly=false;this.getField("semaine").readonly=false;this.getField("groupe").readonly=false;
this.getField("CoursA").readonly=false;this.getField("CoursB").readonly=false;
this.getField("ExoA").readonly=false;this.getField("ExoB").readonly=false;this.getField("ExoC").readonly=false;
this.getField("TransverseA").readonly=false;this.getField("TransverseB").readonly=false;this.getField("TransverseC").readonly=false;
}
else {
this.getField("nomA").readonly=true;this.getField("date").readonly=true;this.getField("semaine").readonly=true;this.getField("groupe").readonly=true;
this.getField("CoursA").readonly=true;this.getField("CoursB").readonly=true;
this.getField("ExoA").readonly=true;this.getField("ExoB").readonly=true;this.getField("ExoC").readonly=true;
this.getField("TransverseA").readonly=true;this.getField("TransverseB").readonly=true;this.getField("TransverseC").readonly=true;
}
}
]{Verrouiller};

\hfill~

%\lfoot{\TextField[name=nomA,width=6cm,readonly=true]{}}

\end{Form}
\shorthandon{;}


\end{document}
projetmbc
Utilisateur chevronné
Utilisateur chevronné
Messages : 2238
Inscription : samedi 29 décembre 2007, 00:58

Re: Pdf modifiable Form Nan

Message non lu par projetmbc »

Merci beaucoup pour ce partage.
marco56
Utilisateur chevronné
Utilisateur chevronné
Messages : 1136
Inscription : jeudi 25 novembre 2010, 22:10

Re: Pdf modifiable Form Nan

Message non lu par marco56 »

Après quelques modifs :

Code : Tout sélectionner

\documentclass[12pt,french]{report}
\usepackage{lmodern}
\renewcommand*\familydefault{\sfdefault}
\usepackage[french]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc} 
\usepackage{geometry}
\geometry{verbose,a4paper,tmargin=1.2 cm,bmargin=1.5 cm,lmargin=1.5 cm,rmargin=1.5 cm} % modificat
\usepackage{fourier}
\usepackage{babel}
\usepackage{setspace}
\usepackage{fancyhdr}                          % pour les entêtes et les pieds de page

\usepackage[pdftex]{graphicx}
\usepackage{graphics}
\usepackage[pdfencoding=auto]{hyperref}

% le format de page
%%%\setlength{\textheight}{701.2245pt}
\setlength{\textheight}{723pt}
\setlength{\topmargin}{-38.12677pt}
\setlength{\headheight}{14.9pt}
\setlength{\headsep}{8pt}
%%\setlength{\footskip}{21pt}
\setlength{\footskip}{24pt}
%\renewcommand{\footrulewidth}{0pt}
\renewcommand{\footrulewidth}{.4pt}

% les entêtes et pieds de page
\pagestyle{fancy}

\begin{document}



\lhead{Saint Joseph-LaSalle Lorient}
\chead{\bf Physique-Chimie}
\cfoot{}
\rhead{\em 2021 -- 2022}

%\rfoot{\TextField[name=nomprof,width=8cm,charsize=12pt]{Colleur : } }


\shorthandoff{;}
\begin{Form}

\noindent \TextField[name=semaine,width=1cm,charsize=12pt]{Semaine}  le \TextField[name=date,width=4cm,charsize=12pt]{} \hfill Classe : cpge TSI 2

\vspace{1em}

\noindent\TextField[name=nomA,width=8cm,charsize=12pt]{Nom : } \hfill \TextField[name=groupe,width=2cm,charsize=12pt]{Groupe n° : }

\noindent\dotfill

\noindent\hfill{\sc Cours}\hfill~

\vspace{.2em}

\noindent\hfill\TextField[name=rqCours,width=17.8cm,height=3.3cm,multiline=true,charsize=10pt]\hfill~{}

\vspace{.3em}

%\vspace{.2em}

\noindent Complet et juste \hfill Absent ou faux

\vspace{.25em}

\noindent\hspace{2mm}\ChoiceMenu[radio,name=CoursA,charsize=14pt]{}{=4}\hfill\ChoiceMenu[radio,name=CoursA,charsize=14pt]{}{=3}\hfill\ChoiceMenu[radio,name=CoursA,charsize=14pt]{}{=2}\hfill\ChoiceMenu[radio,name=CoursA,charsize=14pt]{}{=1}\hfill\ChoiceMenu[radio,name=CoursA,charsize=14pt]{}{=0}\hspace{2mm}

\vspace{.2em}

\noindent Maîtrise et rapidité \hfill Notions hésitantes

\vspace{.25em}

\noindent\hspace{2mm}\ChoiceMenu[radio,name=CoursB,charsize=14pt]{}{=4}\hfill\ChoiceMenu[radio,name=CoursB,charsize=14pt]{}{=3}\hfill\ChoiceMenu[radio,name=CoursB,charsize=14pt]{}{=2}\hfill\ChoiceMenu[radio,name=CoursB,charsize=14pt]{}{=1}\hfill\ChoiceMenu[radio,name=CoursB,charsize=14pt]{}{=0}\hspace{2mm}

\vspace{-.5em}

\noindent\dotfill

\noindent\hfill{\sc Exercices}\hfill~
\vspace{.2em}

\noindent\hfill\TextField[name=rqExo,width=17.8cm,height=3.3cm,multiline=true,charsize=10pt,value=]\hfill~{}

\vspace{.2em}

\noindent Appropriation du sujet, suivi des conseils \hfill "Hors" du sujet

\vspace{.25em}

\hspace{-1.67cm} APP
\noindent\hspace{2mm}\ChoiceMenu[radio,name=ExoA,charsize=14pt]{}{=4}\hfill\ChoiceMenu[radio,name=ExoA,charsize=14pt]{}{=3}\hfill\ChoiceMenu[radio,name=ExoA,charsize=14pt]{}{=2}\hfill\ChoiceMenu[radio,name=ExoA,charsize=14pt]{}{=1}\hfill\ChoiceMenu[radio,name=ExoA,charsize=14pt]{}{=0}\hspace{2mm}

\vspace{.2em}

\noindent Analyse et modélisation (schéma, lois physiques\ldots) \hfill Absence d'analyse

\vspace{.25em}
\hspace{-1.7cm} ANA
\noindent\hspace{2mm}\ChoiceMenu[radio,name=ExoB,charsize=14pt]{}{=4}\hfill\ChoiceMenu[radio,name=ExoB,charsize=14pt]{}{=3}\hfill\ChoiceMenu[radio,name=ExoB,charsize=14pt]{}{=2}\hfill\ChoiceMenu[radio,name=ExoB,charsize=14pt]{}{=1}\hfill\ChoiceMenu[radio,name=ExoB,charsize=14pt]{}{=0}\hspace{2mm}

\vspace{.2em}

\noindent Justesse et rapidité des raisonnements et calculs \hfill Lent, approximatif ou faux

\vspace{.25em}

\hspace{-1.65cm} REA
\noindent\hspace{2mm}\ChoiceMenu[radio,name=ExoC,charsize=14pt]{}{=4}\hfill\ChoiceMenu[radio,name=ExoC,charsize=14pt]{}{=3}\hfill\ChoiceMenu[radio,name=ExoC,charsize=14pt]{}{=2}\hfill\ChoiceMenu[radio,name=ExoC,charsize=14pt]{}{=1}\hfill\ChoiceMenu[radio,name=ExoC,charsize=14pt]{}{=0}\hspace{2mm}

\vspace{.2em}

\noindent Recul physique correct (AN, homogénéité, esprit critique\ldots) \hfill Aucun recul (ne fait que du calcul)

\vspace{.25em}
\hspace{-1.6cm} VAL
\noindent\hspace{2mm}\ChoiceMenu[radio,name=TransverseA,charsize=14pt]{}{=4}\hfill\ChoiceMenu[radio,name=TransverseA,charsize=14pt]{}{=3}\hfill\ChoiceMenu[radio,name=TransverseA,charsize=14pt]{}{=2}\hfill\ChoiceMenu[radio,name=TransverseA,charsize=14pt]{}{=1}\hfill\ChoiceMenu[radio,name=TransverseA,charsize=14pt]{}{=0}\hspace{2mm}

\vspace{.2em}

\noindent Dialogue, gestion du tableau, dynamisme, prestance \hfill Communication à revoir

\vspace{.25em}
\hspace{-1.8cm} COM
\noindent\hspace{2mm}\ChoiceMenu[radio,name=TransverseB,charsize=14pt]{}{=4}\hfill\ChoiceMenu[radio,name=TransverseB,charsize=14pt]{}{=3}\hfill\ChoiceMenu[radio,name=TransverseB,charsize=14pt]{}{=2}\hfill\ChoiceMenu[radio,name=TransverseB,charsize=14pt]{}{=1}\hfill\ChoiceMenu[radio,name=TransverseB,charsize=14pt]{}{=0}\hspace{2mm}

\vspace{.2em}

\noindent Autonomie \hfill Aucune initiative personnelle

\vspace{.25em}
\hspace{-1.7cm} AUT
\noindent\hspace{2mm}\ChoiceMenu[radio,name=TransverseC,charsize=14pt]{}{=4}\hfill\ChoiceMenu[radio,name=TransverseC,charsize=14pt]{}{=3}\hfill\ChoiceMenu[radio,name=TransverseC,charsize=14pt]{}{=2}\hfill\ChoiceMenu[radio,name=TransverseC,charsize=14pt]{}{=1}\hfill\ChoiceMenu[radio,name=TransverseC,charsize=14pt]{}{=0}\hspace{2mm}


\vspace{-.5em}

\noindent\dotfill

\vspace{.3em}

\TextField[name=note,readonly=true]{Note : }\hfill
\PushButton[name=go,
onclick={var ca = this.getField("CoursA");var cb=this.getField("CoursB");
var ea=this.getField("ExoA");var eb=this.getField("ExoB");var ec=this.getField("ExoC");
var ta=this.getField("TransverseA");var tb=this.getField("TransverseB");var tc=this.getField("TransverseC");
% la note de cours a un coeff multiplicateur entre 0,7 et 1
% la note d'exo a un coeff multiplicateur entre 0,4 et 1
% la note transversal a un coeff multiplicateur entre 0,5 et 1
var tempo=((parseInt(ca.value)+parseInt(cb.value))/8*8/20) + ((parseInt(ea.value)+parseInt(eb.value)+parseInt(ec.value))/12*9/20)+((parseInt(ta.value)+parseInt(tb.value)+parseInt(tc.value))/12*3/20);
var note=this.getField("note");note.value=Math.round(tempo*40)/2
}
]{Cliquez ici pour calculer}

\PushButton[name=raz,
onclick={var note=this.getField("note");note.value={}
}
]{Raz}



\hfill~

%\lfoot{\TextField[name=nomA,width=6cm,readonly=true]{}}

\end{Form}
\shorthandon{;}


\end{document}
Un collègue souhaiterait pouvoir effacer la note qui est mise en cliquant sur "Cliquez ici pour calculer" et remplir la case manuellement.
Savez-vous si c'est possible ?
touhami
Utilisateur éprouvé
Utilisateur éprouvé
Messages : 488
Inscription : dimanche 11 février 2007, 11:45

Re: Pdf modifiable Form Nan

Message non lu par touhami »

Bon jour.
Si j'ai bien compris, il suffit de faire

Code : Tout sélectionner

\PushButton[name=raz,
onclick={var note=this.getField("note");note.value="";note.readonly=false
}
]{Raz}
marco56
Utilisateur chevronné
Utilisateur chevronné
Messages : 1136
Inscription : jeudi 25 novembre 2010, 22:10

Re: Pdf modifiable Form Nan

Message non lu par marco56 »

Merci, c'est mieux que ce que j'avais.
La deuxième étape serait de remplacer la valeur par un \TextField pour pouvoir remplir le champ à la main.
Je ne sais même pas si c'est possible.
touhami
Utilisateur éprouvé
Utilisateur éprouvé
Messages : 488
Inscription : dimanche 11 février 2007, 11:45

Re: Pdf modifiable Form Nan

Message non lu par touhami »

marco56 a écrit : mardi 05 octobre 2021, 07:07 La deuxième étape serait de remplacer la valeur par un \TextField pour pouvoir remplir le champ à la main.
Le code proposé ne répond-il pas au besoin?

Code : Tout sélectionner

\PushButton[name=raz,
onclick={var note=this.getField("note");note.value="";note.readonly=false
}
]{Raz}
note.value="" : efface le contenu
note.readonly=false : permet la saisie.
marco56
Utilisateur chevronné
Utilisateur chevronné
Messages : 1136
Inscription : jeudi 25 novembre 2010, 22:10

Re: Pdf modifiable Form Nan

Message non lu par marco56 »

Non, on ne peut rien saisir.
Au pire, je vais faire une autre case à côté avec un champ de saisie.
Le fait d'effacer le calcul est déjà un progrès :)
touhami
Utilisateur éprouvé
Utilisateur éprouvé
Messages : 488
Inscription : dimanche 11 février 2007, 11:45

Re: Pdf modifiable Form Nan

Message non lu par touhami »

marco56 a écrit : mardi 05 octobre 2021, 10:50 Non, on ne peut rien saisir.
Pourriez-vous poster le fichier .log ?
marco56
Utilisateur chevronné
Utilisateur chevronné
Messages : 1136
Inscription : jeudi 25 novembre 2010, 22:10

Re: Pdf modifiable Form Nan

Message non lu par marco56 »

Oui, bien sûr, le voilà :

Code : Tout sélectionner

This is pdfTeX, Version 3.141592653-2.6-1.40.22 (TeX Live 2021) (preloaded format=latex 2021.6.18)  5 OCT 2021 14:55
entering extended mode
 restricted \write18 enabled.
 Source specials enabled.
 %&-line parsing enabled.
**Evaluation-colle-4-TSI2-essai-raz.tex
(./Evaluation-colle-4-TSI2-essai-raz.tex
LaTeX2e <2021-06-01> patch level 1
L3 programming layer <2021-06-01>
(/usr/local/texlive/2021/texmf-dist/tex/latex/base/report.cls
Document Class: report 2021/02/12 v1.4n Standard LaTeX document class
(/usr/local/texlive/2021/texmf-dist/tex/latex/base/size12.clo
File: size12.clo 2021/02/12 v1.4n Standard LaTeX file (size option)
)
\c@part=\count182
\c@chapter=\count183
\c@section=\count184
\c@subsection=\count185
\c@subsubsection=\count186
\c@paragraph=\count187
\c@subparagraph=\count188
\c@figure=\count189
\c@table=\count190
\abovecaptionskip=\skip47
\belowcaptionskip=\skip48
\bibindent=\dimen138
)
(/usr/local/texlive/2021/texmf-dist/tex/latex/lm/lmodern.sty
Package: lmodern 2015/05/01 v1.6.1 Latin Modern Fonts
LaTeX Font Info:    Overwriting symbol font `operators' in version `normal'
(Font)                  OT1/cmr/m/n --> OT1/lmr/m/n on input line 22.
LaTeX Font Info:    Overwriting symbol font `letters' in version `normal'
(Font)                  OML/cmm/m/it --> OML/lmm/m/it on input line 23.
LaTeX Font Info:    Overwriting symbol font `symbols' in version `normal'
(Font)                  OMS/cmsy/m/n --> OMS/lmsy/m/n on input line 24.
LaTeX Font Info:    Overwriting symbol font `largesymbols' in version `normal'
(Font)                  OMX/cmex/m/n --> OMX/lmex/m/n on input line 25.
LaTeX Font Info:    Overwriting symbol font `operators' in version `bold'
(Font)                  OT1/cmr/bx/n --> OT1/lmr/bx/n on input line 26.
LaTeX Font Info:    Overwriting symbol font `letters' in version `bold'
(Font)                  OML/cmm/b/it --> OML/lmm/b/it on input line 27.
LaTeX Font Info:    Overwriting symbol font `symbols' in version `bold'
(Font)                  OMS/cmsy/b/n --> OMS/lmsy/b/n on input line 28.
LaTeX Font Info:    Overwriting symbol font `largesymbols' in version `bold'
(Font)                  OMX/cmex/m/n --> OMX/lmex/m/n on input line 29.
LaTeX Font Info:    Overwriting math alphabet `\mathbf' in version `normal'
(Font)                  OT1/cmr/bx/n --> OT1/lmr/bx/n on input line 31.
LaTeX Font Info:    Overwriting math alphabet `\mathsf' in version `normal'
(Font)                  OT1/cmss/m/n --> OT1/lmss/m/n on input line 32.
LaTeX Font Info:    Overwriting math alphabet `\mathit' in version `normal'
(Font)                  OT1/cmr/m/it --> OT1/lmr/m/it on input line 33.
LaTeX Font Info:    Overwriting math alphabet `\mathtt' in version `normal'
(Font)                  OT1/cmtt/m/n --> OT1/lmtt/m/n on input line 34.
LaTeX Font Info:    Overwriting math alphabet `\mathbf' in version `bold'
(Font)                  OT1/cmr/bx/n --> OT1/lmr/bx/n on input line 35.
LaTeX Font Info:    Overwriting math alphabet `\mathsf' in version `bold'
(Font)                  OT1/cmss/bx/n --> OT1/lmss/bx/n on input line 36.
LaTeX Font Info:    Overwriting math alphabet `\mathit' in version `bold'
(Font)                  OT1/cmr/bx/it --> OT1/lmr/bx/it on input line 37.
LaTeX Font Info:    Overwriting math alphabet `\mathtt' in version `bold'
(Font)                  OT1/cmtt/m/n --> OT1/lmtt/m/n on input line 38.
)
(/usr/local/texlive/2021/texmf-dist/tex/generic/babel/babel.sty
Package: babel 2021/06/02 3.60 The Babel package

(/usr/local/texlive/2021/texmf-dist/tex/generic/babel/babel.def
File: babel.def 2021/06/02 3.60 Babel common definitions
\babel@savecnt=\count191
\U@D=\dimen139
\l@unhyphenated=\language87

(/usr/local/texlive/2021/texmf-dist/tex/generic/babel/txtbabel.def)
\bbl@readstream=\read2
)
\bbl@dirlevel=\count192

(/usr/local/texlive/2021/texmf-dist/tex/generic/babel-french/french.ldf
Language: french 2020/10/10 v3.5l French support from the babel system
Package babel Info: Hyphen rules for 'acadian' set to \l@french
(babel)             (\language29). Reported on input line 91.
Package babel Info: Hyphen rules for 'canadien' set to \l@french
(babel)             (\language29). Reported on input line 92.
\FB@nonchar=\count193
Package babel Info: Making : an active character on input line 430.
Package babel Info: Making ; an active character on input line 431.
Package babel Info: Making ! an active character on input line 432.
Package babel Info: Making ? an active character on input line 433.
\FBguill@level=\count194
\FBold@everypar=\toks16
\FB@Mht=\dimen140
\mc@charclass=\count195
\mc@charfam=\count196
\mc@charslot=\count197
\std@mcc=\count198
\dec@mcc=\count199
\listindentFB=\dimen141
\descindentFB=\dimen142
\labelindentFB=\dimen143
\labelwidthFB=\dimen144
\leftmarginFB=\dimen145
\parindentFFN=\dimen146
\FBfnindent=\dimen147
))
(/usr/local/texlive/2021/texmf-dist/tex/latex/carlisle/scalefnt.sty)
(/usr/local/texlive/2021/texmf-dist/tex/latex/graphics/keyval.sty
Package: keyval 2014/10/28 v1.15 key=value parser (DPC)
\KV@toks@=\toks17
)
(/usr/local/texlive/2021/texmf-dist/tex/latex/base/fontenc.sty
Package: fontenc 2021/04/29 v2.0v Standard LaTeX package
LaTeX Font Info:    Trying to load font information for T1+lmss on input line 1
12.

(/usr/local/texlive/2021/texmf-dist/tex/latex/lm/t1lmss.fd
File: t1lmss.fd 2015/05/01 v1.6.1 Font defs for Latin Modern
))
(/usr/local/texlive/2021/texmf-dist/tex/latex/base/inputenc.sty
Package: inputenc 2021/02/14 v1.3d Input encoding file
\inpenc@prehook=\toks18
\inpenc@posthook=\toks19
)
(/usr/local/texlive/2021/texmf-dist/tex/latex/geometry/geometry.sty
Package: geometry 2020/01/02 v5.9 Page Geometry

(/usr/local/texlive/2021/texmf-dist/tex/generic/iftex/ifvtex.sty
Package: ifvtex 2019/10/25 v1.7 ifvtex legacy package. Use iftex instead.

(/usr/local/texlive/2021/texmf-dist/tex/generic/iftex/iftex.sty
Package: iftex 2020/03/06 v1.0d TeX engine tests
))
\Gm@cnth=\count266
\Gm@cntv=\count267
\c@Gm@tempcnt=\count268
\Gm@bindingoffset=\dimen148
\Gm@wd@mp=\dimen149
\Gm@odd@mp=\dimen150
\Gm@even@mp=\dimen151
\Gm@layoutwidth=\dimen152
\Gm@layoutheight=\dimen153
\Gm@layouthoffset=\dimen154
\Gm@layoutvoffset=\dimen155
\Gm@dimlist=\toks20
)
(/usr/local/texlive/2021/texmf-dist/tex/latex/fourier/fourier.sty
Package: fourier 2020/03/03 2.2 fourier-GUTenberg package
Now handling font encoding FML ...
... no UTF-8 mapping file for font encoding FML
Now handling font encoding FMS ...
... no UTF-8 mapping file for font encoding FMS
Now handling font encoding FMX ...
... no UTF-8 mapping file for font encoding FMX

(/usr/local/texlive/2021/texmf-dist/tex/latex/base/fontenc.sty
Package: fontenc 2021/04/29 v2.0v Standard LaTeX package
)
(/usr/local/texlive/2021/texmf-dist/tex/latex/base/textcomp.sty
Package: textcomp 2020/02/02 v2.0n Standard LaTeX package
)
(/usr/local/texlive/2021/texmf-dist/tex/latex/fourier/fourier-orns.sty
Package: fourier-orns 2020/03/03 2.2 fourier-ornaments package
)
LaTeX Font Info:    Redeclaring symbol font `operators' on input line 63.
LaTeX Font Info:    Encoding `OT1' has changed to `T1' for symbol font
(Font)              `operators' in the math version `normal' on input line 63.
LaTeX Font Info:    Overwriting symbol font `operators' in version `normal'
(Font)                  OT1/lmr/m/n --> T1/futs/m/n on input line 63.
LaTeX Font Info:    Encoding `OT1' has changed to `T1' for symbol font
(Font)              `operators' in the math version `bold' on input line 63.
LaTeX Font Info:    Overwriting symbol font `operators' in version `bold'
(Font)                  OT1/lmr/bx/n --> T1/futs/m/n on input line 63.
LaTeX Font Info:    Overwriting symbol font `operators' in version `bold'
(Font)                  T1/futs/m/n --> T1/futs/b/n on input line 64.
LaTeX Font Info:    Redeclaring symbol font `letters' on input line 72.
LaTeX Font Info:    Encoding `OML' has changed to `FML' for symbol font
(Font)              `letters' in the math version `normal' on input line 72.
LaTeX Font Info:    Overwriting symbol font `letters' in version `normal'
(Font)                  OML/lmm/m/it --> FML/futmi/m/it on input line 72.
LaTeX Font Info:    Encoding `OML' has changed to `FML' for symbol font
(Font)              `letters' in the math version `bold' on input line 72.
LaTeX Font Info:    Overwriting symbol font `letters' in version `bold'
(Font)                  OML/lmm/b/it --> FML/futmi/m/it on input line 72.
\symotherletters=\mathgroup4
LaTeX Font Info:    Overwriting symbol font `letters' in version `bold'
(Font)                  FML/futmi/m/it --> FML/futmi/b/it on input line 74.
LaTeX Font Info:    Overwriting symbol font `otherletters' in version `bold'
(Font)                  FML/futm/m/it --> FML/futm/b/it on input line 75.
LaTeX Font Info:    Redeclaring math symbol \Gamma on input line 76.
LaTeX Font Info:    Redeclaring math symbol \Delta on input line 77.
LaTeX Font Info:    Redeclaring math symbol \Theta on input line 78.
LaTeX Font Info:    Redeclaring math symbol \Lambda on input line 79.
LaTeX Font Info:    Redeclaring math symbol \Xi on input line 80.
LaTeX Font Info:    Redeclaring math symbol \Pi on input line 81.
LaTeX Font Info:    Redeclaring math symbol \Sigma on input line 82.
LaTeX Font Info:    Redeclaring math symbol \Upsilon on input line 83.
LaTeX Font Info:    Redeclaring math symbol \Phi on input line 84.
LaTeX Font Info:    Redeclaring math symbol \Psi on input line 85.
LaTeX Font Info:    Redeclaring math symbol \Omega on input line 86.
LaTeX Font Info:    Redeclaring symbol font `symbols' on input line 126.
LaTeX Font Info:    Encoding `OMS' has changed to `FMS' for symbol font
(Font)              `symbols' in the math version `normal' on input line 126.
LaTeX Font Info:    Overwriting symbol font `symbols' in version `normal'
(Font)                  OMS/lmsy/m/n --> FMS/futm/m/n on input line 126.
LaTeX Font Info:    Encoding `OMS' has changed to `FMS' for symbol font
(Font)              `symbols' in the math version `bold' on input line 126.
LaTeX Font Info:    Overwriting symbol font `symbols' in version `bold'
(Font)                  OMS/lmsy/b/n --> FMS/futm/m/n on input line 126.
LaTeX Font Info:    Redeclaring symbol font `largesymbols' on input line 127.
LaTeX Font Info:    Encoding `OMX' has changed to `FMX' for symbol font
(Font)              `largesymbols' in the math version `normal' on input line 1
27.
LaTeX Font Info:    Overwriting symbol font `largesymbols' in version `normal'
(Font)                  OMX/lmex/m/n --> FMX/futm/m/n on input line 127.
LaTeX Font Info:    Encoding `OMX' has changed to `FMX' for symbol font
(Font)              `largesymbols' in the math version `bold' on input line 127
.
LaTeX Font Info:    Overwriting symbol font `largesymbols' in version `bold'
(Font)                  OMX/lmex/m/n --> FMX/futm/m/n on input line 127.
LaTeX Font Info:    Redeclaring math alphabet \mathbf on input line 128.
LaTeX Font Info:    Overwriting math alphabet `\mathbf' in version `normal'
(Font)                  OT1/lmr/bx/n --> T1/futs/bx/n on input line 128.
LaTeX Font Info:    Overwriting math alphabet `\mathbf' in version `bold'
(Font)                  OT1/lmr/bx/n --> T1/futs/bx/n on input line 128.
LaTeX Font Info:    Redeclaring math alphabet \mathrm on input line 129.
LaTeX Font Info:    Redeclaring math alphabet \mathit on input line 130.
LaTeX Font Info:    Overwriting math alphabet `\mathit' in version `normal'
(Font)                  OT1/lmr/m/it --> T1/futs/m/it on input line 130.
LaTeX Font Info:    Overwriting math alphabet `\mathit' in version `bold'
(Font)                  OT1/lmr/bx/it --> T1/futs/m/it on input line 130.
LaTeX Font Info:    Redeclaring math alphabet \mathcal on input line 131.
LaTeX Font Info:    Redeclaring math symbol \parallel on input line 147.
LaTeX Font Info:    Redeclaring math symbol \hbar on input line 161.
LaTeX Font Info:    Redeclaring math symbol \varkappa on input line 199.
LaTeX Font Info:    Redeclaring math symbol \varvarrho on input line 200.
LaTeX Font Info:    Redeclaring math delimiter \Vert on input line 223.
LaTeX Font Info:    Redeclaring math delimiter \vert on input line 228.
LaTeX Font Info:    Redeclaring math delimiter \Downarrow on input line 238.
LaTeX Font Info:    Redeclaring math delimiter \backslash on input line 240.
LaTeX Font Info:    Redeclaring math delimiter \rangle on input line 242.
LaTeX Font Info:    Redeclaring math delimiter \langle on input line 244.
LaTeX Font Info:    Redeclaring math delimiter \rbrace on input line 246.
LaTeX Font Info:    Redeclaring math delimiter \lbrace on input line 248.
LaTeX Font Info:    Redeclaring math delimiter \rceil on input line 250.
LaTeX Font Info:    Redeclaring math delimiter \lceil on input line 252.
LaTeX Font Info:    Redeclaring math delimiter \rfloor on input line 254.
LaTeX Font Info:    Redeclaring math delimiter \lfloor on input line 256.
LaTeX Font Info:    Redeclaring math accent \acute on input line 260.
LaTeX Font Info:    Redeclaring math accent \grave on input line 261.
LaTeX Font Info:    Redeclaring math accent \ddot on input line 262.
LaTeX Font Info:    Redeclaring math accent \tilde on input line 263.
LaTeX Font Info:    Redeclaring math accent \bar on input line 264.
LaTeX Font Info:    Redeclaring math accent \breve on input line 265.
LaTeX Font Info:    Redeclaring math accent \check on input line 266.
LaTeX Font Info:    Redeclaring math accent \hat on input line 267.
LaTeX Font Info:    Redeclaring math accent \dot on input line 268.
LaTeX Font Info:    Redeclaring math accent \mathring on input line 269.
\symUfutm=\mathgroup5
)
(/usr/local/texlive/2021/texmf-dist/tex/latex/setspace/setspace.sty
Package: setspace 2011/12/19 v6.7a set line spacing
)
(/usr/local/texlive/2021/texmf-dist/tex/latex/fancyhdr/fancyhdr.sty
Package: fancyhdr 2021/01/28 v4.0.1 Extensive control of page headers and foote
rs
\f@nch@headwidth=\skip49
\f@nch@O@elh=\skip50
\f@nch@O@erh=\skip51
\f@nch@O@olh=\skip52
\f@nch@O@orh=\skip53
\f@nch@O@elf=\skip54
\f@nch@O@erf=\skip55
\f@nch@O@olf=\skip56
\f@nch@O@orf=\skip57
)
(/usr/local/texlive/2021/texmf-dist/tex/latex/graphics/graphicx.sty
Package: graphicx 2020/12/05 v1.2c Enhanced LaTeX Graphics (DPC,SPQR)

(/usr/local/texlive/2021/texmf-dist/tex/latex/graphics/graphics.sty
Package: graphics 2021/03/04 v1.4d Standard LaTeX Graphics (DPC,SPQR)

(/usr/local/texlive/2021/texmf-dist/tex/latex/graphics/trig.sty
Package: trig 2016/01/03 v1.10 sin cos tan (DPC)
)
(/usr/local/texlive/2021/texmf-dist/tex/latex/graphics-cfg/graphics.cfg
File: graphics.cfg 2016/06/04 v1.11 sample graphics configuration
)
Package graphics Info: Driver file: pdftex.def on input line 107.

(/usr/local/texlive/2021/texmf-dist/tex/latex/graphics-def/pdftex.def
File: pdftex.def 2020/10/05 v1.2a Graphics/color driver for pdftex
))
\Gin@req@height=\dimen156
\Gin@req@width=\dimen157
)
(/usr/local/texlive/2021/texmf-dist/tex/latex/hyperref/hyperref.sty
Package: hyperref 2021-06-07 v7.00m Hypertext links for LaTeX

(/usr/local/texlive/2021/texmf-dist/tex/generic/ltxcmds/ltxcmds.sty
Package: ltxcmds 2020-05-10 v1.25 LaTeX kernel commands for general use (HO)
)
(/usr/local/texlive/2021/texmf-dist/tex/generic/pdftexcmds/pdftexcmds.sty
Package: pdftexcmds 2020-06-27 v0.33 Utility functions of pdfTeX for LuaTeX (HO
)

(/usr/local/texlive/2021/texmf-dist/tex/generic/infwarerr/infwarerr.sty
Package: infwarerr 2019/12/03 v1.5 Providing info/warning/error messages (HO)
)
Package pdftexcmds Info: \pdf@primitive is available.
Package pdftexcmds Info: \pdf@ifprimitive is available.
Package pdftexcmds Info: \pdfdraftmode is ignored in DVI mode.
)
(/usr/local/texlive/2021/texmf-dist/tex/generic/kvsetkeys/kvsetkeys.sty
Package: kvsetkeys 2019/12/15 v1.18 Key value parser (HO)
)
(/usr/local/texlive/2021/texmf-dist/tex/generic/kvdefinekeys/kvdefinekeys.sty
Package: kvdefinekeys 2019-12-19 v1.6 Define keys (HO)
)
(/usr/local/texlive/2021/texmf-dist/tex/generic/pdfescape/pdfescape.sty
Package: pdfescape 2019/12/09 v1.15 Implements pdfTeX's escape features (HO)
)
(/usr/local/texlive/2021/texmf-dist/tex/latex/hycolor/hycolor.sty
Package: hycolor 2020-01-27 v1.10 Color options for hyperref/bookmark (HO)
)
(/usr/local/texlive/2021/texmf-dist/tex/latex/letltxmacro/letltxmacro.sty
Package: letltxmacro 2019/12/03 v1.6 Let assignment for LaTeX macros (HO)
)
(/usr/local/texlive/2021/texmf-dist/tex/latex/auxhook/auxhook.sty
Package: auxhook 2019-12-17 v1.6 Hooks for auxiliary files (HO)
)
(/usr/local/texlive/2021/texmf-dist/tex/latex/kvoptions/kvoptions.sty
Package: kvoptions 2020-10-07 v3.14 Key value format for package options (HO)
)
\@linkdim=\dimen158
\Hy@linkcounter=\count269
\Hy@pagecounter=\count270

(/usr/local/texlive/2021/texmf-dist/tex/latex/hyperref/pd1enc.def
File: pd1enc.def 2021-06-07 v7.00m Hyperref: PDFDocEncoding definition (HO)
Now handling font encoding PD1 ...
... no UTF-8 mapping file for font encoding PD1
)
(/usr/local/texlive/2021/texmf-dist/tex/latex/hyperref/hyperref-langpatches.def
File: hyperref-langpatches.def 2021-06-07 v7.00m Hyperref: patches for babel la
nguages
) (/usr/local/texlive/2021/texmf-dist/tex/generic/intcalc/intcalc.sty
Package: intcalc 2019/12/15 v1.3 Expandable calculations with integers (HO)
)
(/usr/local/texlive/2021/texmf-dist/tex/generic/etexcmds/etexcmds.sty
Package: etexcmds 2019/12/15 v1.7 Avoid name clashes with e-TeX commands (HO)
)
\Hy@SavedSpaceFactor=\count271

(/usr/local/texlive/2021/texmf-dist/tex/latex/hyperref/puenc.def
File: puenc.def 2021-06-07 v7.00m Hyperref: PDF Unicode definition (HO)
Now handling font encoding PU ...
... no UTF-8 mapping file for font encoding PU
)
Package hyperref Info: Option `unicode' set `true' on input line 4073.

(/usr/local/texlive/2021/texmf-dist/tex/generic/stringenc/stringenc.sty
Package: stringenc 2019/11/29 v1.12 Convert strings between diff. encodings (HO
)
)
Package hyperref Info: Hyper figures OFF on input line 4192.
Package hyperref Info: Link nesting OFF on input line 4197.
Package hyperref Info: Hyper index ON on input line 4200.
Package hyperref Info: Plain pages OFF on input line 4207.
Package hyperref Info: Backreferencing OFF on input line 4212.
Package hyperref Info: Implicit mode ON; LaTeX internals redefined.
Package hyperref Info: Bookmarks ON on input line 4445.
\c@Hy@tempcnt=\count272

(/usr/local/texlive/2021/texmf-dist/tex/latex/url/url.sty
\Urlmuskip=\muskip16
Package: url 2013/09/16  ver 3.4  Verb mode for urls, etc.
)
LaTeX Info: Redefining \url on input line 4804.
\XeTeXLinkMargin=\dimen159

(/usr/local/texlive/2021/texmf-dist/tex/generic/bitset/bitset.sty
Package: bitset 2019/12/09 v1.3 Handle bit-vector datatype (HO)

(/usr/local/texlive/2021/texmf-dist/tex/generic/bigintcalc/bigintcalc.sty
Package: bigintcalc 2019/12/15 v1.5 Expandable calculations on big integers (HO
)
))
\Fld@menulength=\count273
\Field@Width=\dimen160
\Fld@charsize=\dimen161
Package hyperref Info: Hyper figures OFF on input line 6076.
Package hyperref Info: Link nesting OFF on input line 6081.
Package hyperref Info: Hyper index ON on input line 6084.
Package hyperref Info: backreferencing OFF on input line 6091.
Package hyperref Info: Link coloring OFF on input line 6096.
Package hyperref Info: Link coloring with OCG OFF on input line 6101.
Package hyperref Info: PDF/A mode OFF on input line 6106.
LaTeX Info: Redefining \ref on input line 6146.
LaTeX Info: Redefining \pageref on input line 6150.

(/usr/local/texlive/2021/texmf-dist/tex/latex/base/atbegshi-ltx.sty
Package: atbegshi-ltx 2021/01/10 v1.0c Emulation of the original atbegshi
package with kernel methods
)
\Hy@abspage=\count274
\c@Item=\count275
\c@Hfootnote=\count276
)
Package hyperref Info: Driver (default): hdvips.

(/usr/local/texlive/2021/texmf-dist/tex/latex/hyperref/hdvips.def
File: hdvips.def 2021-06-07 v7.00m Hyperref driver for dvips

(/usr/local/texlive/2021/texmf-dist/tex/latex/hyperref/pdfmark.def
File: pdfmark.def 2021-06-07 v7.00m Hyperref definitions for pdfmark specials
\pdf@docset=\toks21
\pdf@box=\box50
\pdf@toks=\toks22
\pdf@defaulttoks=\toks23
\HyField@AnnotCount=\count277
\Fld@listcount=\count278
\c@bookmark@seq@number=\count279

(/usr/local/texlive/2021/texmf-dist/tex/latex/rerunfilecheck/rerunfilecheck.sty
Package: rerunfilecheck 2019/12/05 v1.9 Rerun checks for auxiliary files (HO)
(/usr/local/texlive/2021/texmf-dist/tex/latex/base/atveryend-ltx.sty
Package: atveryend-ltx 2020/08/19 v1.0a Emulation of the original atvery packag
e
with kernel methods
)
(/usr/local/texlive/2021/texmf-dist/tex/generic/uniquecounter/uniquecounter.sty
Package: uniquecounter 2019/12/15 v1.4 Provide unlimited unique counter (HO)
)
Package uniquecounter Info: New unique counter `rerunfilecheck' on input line 2
86.
)
\Hy@SectionHShift=\skip58
))
(/usr/local/texlive/2021/texmf-dist/tex/latex/l3backend/l3backend-dvips.def
File: l3backend-dvips.def 2021-05-07 L3 backend support: dvips
\l__pdf_internal_box=\box51
\g__pdf_backend_object_int=\count280
\l__pdf_backend_content_box=\box52
\l__pdf_backend_model_box=\box53
\g__pdf_backend_annotation_int=\count281
\g__pdf_backend_link_int=\count282
\g__pdf_backend_link_sf_int=\count283
)
(./Evaluation-colle-4-TSI2-essai-raz.aux)
\openout1 = `Evaluation-colle-4-TSI2-essai-raz.aux'.

LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 32.
LaTeX Font Info:    ... okay on input line 32.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 32.
LaTeX Font Info:    ... okay on input line 32.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 32.
LaTeX Font Info:    ... okay on input line 32.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 32.
LaTeX Font Info:    ... okay on input line 32.
LaTeX Font Info:    Checking defaults for TS1/cmr/m/n on input line 32.
LaTeX Font Info:    ... okay on input line 32.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 32.
LaTeX Font Info:    ... okay on input line 32.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 32.
LaTeX Font Info:    ... okay on input line 32.
LaTeX Font Info:    Checking defaults for FML/futm/m/it on input line 32.
LaTeX Font Info:    Trying to load font information for FML+futm on input line 
32.

(/usr/local/texlive/2021/texmf-dist/tex/latex/fourier/fmlfutm.fd
File: fmlfutm.fd 2004/10/30 Fontinst v1.926 font definitions for FML/futm.
)
LaTeX Font Info:    ... okay on input line 32.
LaTeX Font Info:    Checking defaults for FMS/futm/m/n on input line 32.
LaTeX Font Info:    Trying to load font information for FMS+futm on input line 
32.

(/usr/local/texlive/2021/texmf-dist/tex/latex/fourier/fmsfutm.fd
File: fmsfutm.fd 2004/10/30 Fontinst v1.926 font definitions for FMS/futm.
)
LaTeX Font Info:    ... okay on input line 32.
LaTeX Font Info:    Checking defaults for FMX/futm/m/n on input line 32.
LaTeX Font Info:    Trying to load font information for FMX+futm on input line 
32.

(/usr/local/texlive/2021/texmf-dist/tex/latex/fourier/fmxfutm.fd
File: fmxfutm.fd futm-extension
)
LaTeX Font Info:    ... okay on input line 32.
LaTeX Font Info:    Checking defaults for PD1/pdf/m/n on input line 32.
LaTeX Font Info:    ... okay on input line 32.
LaTeX Font Info:    Checking defaults for PU/pdf/m/n on input line 32.
LaTeX Font Info:    ... okay on input line 32.
LaTeX Info: Redefining \degres on input line 32.
LaTeX Info: Redefining \dots on input line 32.
LaTeX Info: Redefining \up on input line 32.

*geometry* driver: auto-detecting
*geometry* detected driver: dvips

Package geometry Warning: The marginal notes overrun the paper.
     Add 11.32088pt and more to the right margin.

*geometry* verbose mode - [ preamble ] result:
* driver: dvips
* paper: a4paper
* layout: <same size as paper>
* layoutoffset:(h,v)=(0.0pt,0.0pt)
* modes: 
* h-part:(L,W,R)=(42.67912pt, 512.14963pt, 42.67912pt)
* v-part:(T,H,B)=(34.14322pt, 768.2245pt, 42.67912pt)
* \paperwidth=597.50787pt
* \paperheight=845.04684pt
* \textwidth=512.14963pt
* \textheight=723.0pt
* \oddsidemargin=-29.59087pt
* \evensidemargin=-29.59087pt
* \topmargin=-38.12677pt
* \headheight=14.9pt
* \headsep=8.0pt
* \topskip=12.0pt
* \footskip=24.0pt
* \marginparwidth=44.0pt
* \marginparsep=10.0pt
* \columnsep=10.0pt
* \skip\footins=10.8pt plus 4.0pt minus 2.0pt
* \hoffset=0.0pt
* \voffset=0.0pt
* \mag=1000
* \@twocolumnfalse
* \@twosidefalse
* \@mparswitchfalse
* \@reversemarginfalse
* (1in=72.27pt=25.4mm, 1cm=28.453pt)

(/usr/local/texlive/2021/texmf-dist/tex/context/base/mkii/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
\scratchcounter=\count284
\scratchdimen=\dimen162
\scratchbox=\box54
\nofMPsegments=\count285
\nofMParguments=\count286
\everyMPshowfont=\toks24
\MPscratchCnt=\count287
\MPscratchDim=\dimen163
\MPnumerator=\count288
\makeMPintoPDFobject=\count289
\everyMPtoPDFconversion=\toks25
) (/usr/local/texlive/2021/texmf-dist/tex/latex/epstopdf-pkg/epstopdf-base.sty
Package: epstopdf-base 2020-01-24 v2.11 Base part for package epstopdf
Package epstopdf-base Info: Redefining graphics rule for `.eps' on input line 4
85.

(/usr/local/texlive/2021/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg
File: epstopdf-sys.cfg 2010/07/13 v1.3 Configuration of (r)epstopdf for TeX Liv
e
))
Package hyperref Info: Link coloring OFF on input line 32.

(/usr/local/texlive/2021/texmf-dist/tex/latex/hyperref/nameref.sty
Package: nameref 2021-04-02 v2.47 Cross-referencing by name of section

(/usr/local/texlive/2021/texmf-dist/tex/latex/refcount/refcount.sty
Package: refcount 2019/12/15 v3.6 Data extraction from label references (HO)
)
(/usr/local/texlive/2021/texmf-dist/tex/generic/gettitlestring/gettitlestring.s
ty
Package: gettitlestring 2019/12/15 v1.6 Cleanup title references (HO)
)
\c@section@level=\count290
)
LaTeX Info: Redefining \ref on input line 32.
LaTeX Info: Redefining \pageref on input line 32.
LaTeX Info: Redefining \nameref on input line 32.
 (./Evaluation-colle-4-TSI2-essai-raz.out)
(./Evaluation-colle-4-TSI2-essai-raz.out)
\@outlinefile=\write3
\openout3 = `Evaluation-colle-4-TSI2-essai-raz.out'.

LaTeX Font Info:    Trying to load font information for TS1+lmss on input line 
51.

(/usr/local/texlive/2021/texmf-dist/tex/latex/lm/ts1lmss.fd
File: ts1lmss.fd 2015/05/01 v1.6.1 Font defs for Latin Modern
)
LaTeX Font Info:    Trying to load font information for T1+lmr on input line 55
.

(/usr/local/texlive/2021/texmf-dist/tex/latex/lm/t1lmr.fd
File: t1lmr.fd 2015/05/01 v1.6.1 Font defs for Latin Modern
)

LaTeX Font Warning: Font shape `T1/lmss/m/sc' in size <12> not available
(Font)              Font shape `T1/lmr/m/sc' tried instead on input line 55.

(/usr/local/texlive/2021/texmf-dist/tex/generic/stringenc/se-pdfdoc.def
File: se-pdfdoc.def 2019/11/29 v1.12 stringenc: PDFDocEncoding
)
LaTeX Font Info:    Font shape `T1/lmss/m/it' in size <12> not available
(Font)              Font shape `T1/lmss/m/sl' tried instead on input line 173.

[1

] (./Evaluation-colle-4-TSI2-essai-raz.aux)
Package rerunfilecheck Info: File `Evaluation-colle-4-TSI2-essai-raz.out' has n
ot changed.
(rerunfilecheck)             Checksum: D41D8CD98F00B204E9800998ECF8427E;0.
 ) 
Here is how much of TeX's memory you used:
 10996 strings out of 478513
 164205 string characters out of 5849651
 524056 words of memory out of 5000000
 28814 multiletter control sequences out of 15000+600000
 415269 words of font info for 33 fonts, out of 8000000 for 9000
 1141 hyphenation exceptions out of 8191
 65i,11n,69p,437b,424s stack positions out of 5000i,500n,10000p,200000b,80000s

Output written on Evaluation-colle-4-TSI2-essai-raz.dvi (1 page, 28404 bytes).
Je compile en dvi->ps-pdf mais avec pdflatex, c'est le même résultat. J'utilise Masterpdf pour compléter le pdf.
touhami
Utilisateur éprouvé
Utilisateur éprouvé
Messages : 488
Inscription : dimanche 11 février 2007, 11:45

Re: Pdf modifiable Form Nan

Message non lu par touhami »

Bon jour.
J'ai essayé avec TeXlive2020 et ça fonctionne bien.
J'ai essayé avec Master pdf, pas de problème!

Avez-vous essayer avec Adobe Acrobat Reader DC ?
Si le problème persiste, essayer de compiler avec pdflatex en ajoutant

Code : Tout sélectionner

\pdfcompresslevel=0
\pdfobjcompresslevel=0
avant \documentclass et envoyer le pdf.
marco56
Utilisateur chevronné
Utilisateur chevronné
Messages : 1136
Inscription : jeudi 25 novembre 2010, 22:10

Re: Pdf modifiable Form Nan

Message non lu par marco56 »

Avec Acrobat, cela fonctionne bien effectivement.
Le but, c'est que l'on soit plusieurs à l'utiliser.
Je vais voir ce que je vais faire. Pour l'instant, le bouton de remise à zéro fonctionne et j'ai ajouté une case de note manuelle.
Merci en tous cas et bonne semaine.
Répondre