Re: Creating pdf forms template
- Original Message - From: Rainer M Krug r.m.k...@gmail.com -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I am really looking forward to a working example - but could we please keep this discussion on lyx-users, as it has nothing to do with devel? Thanks, Rainer Dear Rainer This discussion was made in both user and developers lists because my questions has two purposes: 1. to have a working example of forms in lyx and 2. To make developers realize that a toolbox for form design should be made for native support for this inside lyx (as you can see my example is full of ERT code) Regards Alex
Re: Creating pdf forms template
- Original Message - From: Rainer M Krug r.m.k...@gmail.com -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I am really looking forward to a working example - but could we please keep this discussion on lyx-users, as it has nothing to do with devel? Thanks, Rainer Dear Rainer This discussion was made in both user and developers lists because my questions has two purposes: 1. to have a working example of forms in lyx and 2. To make developers realize that a toolbox for form design should be made for native support for this inside lyx (as you can see my example is full of ERT code) Regards Alex
Re: Creating pdf forms template
- Original Message - From: "Rainer M Krug"-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I am really looking forward to a working example - but could we please keep this discussion on lyx-users, as it has nothing to do with devel? Thanks, Rainer Dear Rainer This discussion was made in both user and developers lists because my questions has two purposes: 1. to have a working example of forms in lyx and 2. To make developers realize that a toolbox for form design should be made for native support for this inside lyx (as you can see my example is full of ERT code) Regards Alex
Re: Creating pdf forms template
The problem is far beyond my tiny understanding of LyX/LaTeX unfortunately. Have you tried a question on StackOverflow? From: Alex Vergara Gil a...@cphr.edu.cu To: John Kane jrkrid...@yahoo.ca; lyx-users Users lyx-users@lists.lyx.org; lyx-de...@lists.lyx.org Sent: Thursday, March 21, 2013 5:18:53 PM Subject: Re: Creating pdf forms template - Original Message - From: John Kane To: Alex Vergara Gil ; lyx-users Users ; lyx-de...@lists.lyx.org Sent: Thursday, March 21, 2013 12:32 PM Subject: Re: Creating pdf forms template It works or at least I managed to type some text into the text box. I made a couple of changes to the text which I think makes it a bit more idiomatic in English (see attached. I hope you don't mind. I spent what seemed like forever installing the blasted insdljs.sty and it worked. For those having the same problem in Ubuntu I 1) created a texmf folder at root level following these directions http://nmv.stat.cmu.edu/2012/06/14/managing-latex-packages-manually-in-ubuntu-12-04/ and then following instructions from http://www.latex-community.org/forum/viewtopic.php?f=5t=8886 2. cd'd to the texmf/tex/latex/acrotex directory 3. ran sudo texhash 4 ran latex acrotex.ins Reconfigured LyX and everything ran nicely. Dear John Thanks for your reply and your idiomatic suggestions. Now I notice that it must be told in the document that for make it to work the AcroTeX package must be instaled also (it contains the insdljs.sty file), this specific package allows javascript code inside a pdf, so you can manage actions like (onselect, onkeypress, etc). It is also part of MikTeX if you run this on Windows so this should works on every platform. The problem is that if you just put {this.getField(Escuelat).readonly=false;} it works in one way, but when you uncheck the box the linked text field should become uneditable and empty. For this I expect that the code {this.getField(Escuelat).readonly=!this.getField(Escuelac).checked; this.getField(Escuelat).value=;} shall do the job, but it isn´t. I even made this as a function, but nothing happened. The rest of the objects work very nice but this kind of behaviour is critical for the next step of creating action buttons. Regards Alex
Re: Creating pdf forms template
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I am really looking forward to a working example - but could we please keep this discussion on lyx-users, as it has nothing to do with devel? Thanks, Rainer On 22/03/13 14:14, John Kane wrote: The problem is far beyond my tiny understanding of LyX/LaTeX unfortunately. Have you tried a question on StackOverflow? *From:* Alex Vergara Gil a...@cphr.edu.cu *To:* John Kane jrkrid...@yahoo.ca; lyx-users Users lyx-users@lists.lyx.org; lyx-de...@lists.lyx.org *Sent:* Thursday, March 21, 2013 5:18:53 PM *Subject:* Re: Creating pdf forms template - Original Message - *From:* John Kane mailto:jrkrid...@yahoo.ca *To:* Alex Vergara Gil mailto:a...@cphr.edu.cu ; lyx-users Users mailto:lyx-users@lists.lyx.org ; lyx-de...@lists.lyx.org mailto:lyx-de...@lists.lyx.org *Sent:* Thursday, March 21, 2013 12:32 PM *Subject:* Re: Creating pdf forms template It works or at least I managed to type some text into the text box. I made a couple of changes to the text which I think makes it a bit more idiomatic in English (see attached. I hope you don't mind. I spent what seemed like forever installing the blasted insdljs.sty and it worked. For those having the same problem in Ubuntu I 1) created a texmf folder at root level following these directions http://nmv.stat.cmu.edu/2012/06/14/managing-latex-packages-manually-in-ubuntu-12-04/ and then following instructions from http://www.latex-community.org/forum/viewtopic.php?f=5t=8886 2. cd'd to the texmf/tex/latex/acrotex directory 3. ran sudo texhash 4 ran latex acrotex.ins Reconfigured LyX and everything ran nicely. Dear John Thanks for your reply and your idiomatic suggestions. Now I notice that it must be told in the document that for make it to work the AcroTeX package must be instaled also (it contains the insdljs.sty file), this specific package allows javascript code inside a pdf, so you can manage actions like (onselect, onkeypress, etc). It is also part of MikTeX if you run this on Windows so this should works on every platform. The problem is that if you just put {this.getField(Escuelat).readonly=false;} it works in one way, but when you uncheck the box the linked text field should become uneditable and empty. For this I expect that the code {this.getField(Escuelat).readonly=!this.getField(Escuelac).checked; this.getField(Escuelat).value=;} shall do the job, but it isn´t. I even made this as a function, but nothing happened. The rest of the objects work very nice but this kind of behaviour is critical for the next step of creating action buttons. Regards Alex - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax : +33 - (0)9 58 10 27 44 Fax (D):+49 - (0)3 21 21 25 22 44 email: rai...@krugs.de Skype: RMkrug -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJRTFzeAAoJENvXNx4PUvmCz1MH+wfO2/Odl37cxml6JWsQSqIQ nw8dUT0BX47xzjmPz/+GTHZNfi56j3rLjluCP0y/gRoH4MZMO3W8WNXf+I1XB8XG H3SyzcXiraOzZid96wUcgVdYm5zczb8lBxq3pQYJ4t1i8/gXFkFKY70S0A7j7Izl O3+U0BAs2g/ZBBEA/BXm5puR7tkPzXofDVxScP7I7GhM9vom1ilawfPeXBvFOQ+y Zu4bDS3YQDRSPF3Hu9G0yuOyj/dOx/TyCbqGU2VO1ltqGGChvJ2KnIHBTnmYfzgb DBmgbsgTNCe7MELB204hV06iPhlX2RV/dObgLJbsHutJHTT/UdLw3mFGfdPi3MQ= =eHnK -END PGP SIGNATURE-
Re: Creating pdf forms template
The problem is far beyond my tiny understanding of LyX/LaTeX unfortunately. Have you tried a question on StackOverflow? From: Alex Vergara Gil a...@cphr.edu.cu To: John Kane jrkrid...@yahoo.ca; lyx-users Users lyx-users@lists.lyx.org; lyx-de...@lists.lyx.org Sent: Thursday, March 21, 2013 5:18:53 PM Subject: Re: Creating pdf forms template - Original Message - From: John Kane To: Alex Vergara Gil ; lyx-users Users ; lyx-de...@lists.lyx.org Sent: Thursday, March 21, 2013 12:32 PM Subject: Re: Creating pdf forms template It works or at least I managed to type some text into the text box. I made a couple of changes to the text which I think makes it a bit more idiomatic in English (see attached. I hope you don't mind. I spent what seemed like forever installing the blasted insdljs.sty and it worked. For those having the same problem in Ubuntu I 1) created a texmf folder at root level following these directions http://nmv.stat.cmu.edu/2012/06/14/managing-latex-packages-manually-in-ubuntu-12-04/ and then following instructions from http://www.latex-community.org/forum/viewtopic.php?f=5t=8886 2. cd'd to the texmf/tex/latex/acrotex directory 3. ran sudo texhash 4 ran latex acrotex.ins Reconfigured LyX and everything ran nicely. Dear John Thanks for your reply and your idiomatic suggestions. Now I notice that it must be told in the document that for make it to work the AcroTeX package must be instaled also (it contains the insdljs.sty file), this specific package allows javascript code inside a pdf, so you can manage actions like (onselect, onkeypress, etc). It is also part of MikTeX if you run this on Windows so this should works on every platform. The problem is that if you just put {this.getField(Escuelat).readonly=false;} it works in one way, but when you uncheck the box the linked text field should become uneditable and empty. For this I expect that the code {this.getField(Escuelat).readonly=!this.getField(Escuelac).checked; this.getField(Escuelat).value=;} shall do the job, but it isn´t. I even made this as a function, but nothing happened. The rest of the objects work very nice but this kind of behaviour is critical for the next step of creating action buttons. Regards Alex
Re: Creating pdf forms template
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I am really looking forward to a working example - but could we please keep this discussion on lyx-users, as it has nothing to do with devel? Thanks, Rainer On 22/03/13 14:14, John Kane wrote: The problem is far beyond my tiny understanding of LyX/LaTeX unfortunately. Have you tried a question on StackOverflow? *From:* Alex Vergara Gil a...@cphr.edu.cu *To:* John Kane jrkrid...@yahoo.ca; lyx-users Users lyx-users@lists.lyx.org; lyx-de...@lists.lyx.org *Sent:* Thursday, March 21, 2013 5:18:53 PM *Subject:* Re: Creating pdf forms template - Original Message - *From:* John Kane mailto:jrkrid...@yahoo.ca *To:* Alex Vergara Gil mailto:a...@cphr.edu.cu ; lyx-users Users mailto:lyx-users@lists.lyx.org ; lyx-de...@lists.lyx.org mailto:lyx-de...@lists.lyx.org *Sent:* Thursday, March 21, 2013 12:32 PM *Subject:* Re: Creating pdf forms template It works or at least I managed to type some text into the text box. I made a couple of changes to the text which I think makes it a bit more idiomatic in English (see attached. I hope you don't mind. I spent what seemed like forever installing the blasted insdljs.sty and it worked. For those having the same problem in Ubuntu I 1) created a texmf folder at root level following these directions http://nmv.stat.cmu.edu/2012/06/14/managing-latex-packages-manually-in-ubuntu-12-04/ and then following instructions from http://www.latex-community.org/forum/viewtopic.php?f=5t=8886 2. cd'd to the texmf/tex/latex/acrotex directory 3. ran sudo texhash 4 ran latex acrotex.ins Reconfigured LyX and everything ran nicely. Dear John Thanks for your reply and your idiomatic suggestions. Now I notice that it must be told in the document that for make it to work the AcroTeX package must be instaled also (it contains the insdljs.sty file), this specific package allows javascript code inside a pdf, so you can manage actions like (onselect, onkeypress, etc). It is also part of MikTeX if you run this on Windows so this should works on every platform. The problem is that if you just put {this.getField(Escuelat).readonly=false;} it works in one way, but when you uncheck the box the linked text field should become uneditable and empty. For this I expect that the code {this.getField(Escuelat).readonly=!this.getField(Escuelac).checked; this.getField(Escuelat).value=;} shall do the job, but it isn´t. I even made this as a function, but nothing happened. The rest of the objects work very nice but this kind of behaviour is critical for the next step of creating action buttons. Regards Alex - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax : +33 - (0)9 58 10 27 44 Fax (D):+49 - (0)3 21 21 25 22 44 email: rai...@krugs.de Skype: RMkrug -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJRTFzeAAoJENvXNx4PUvmCz1MH+wfO2/Odl37cxml6JWsQSqIQ nw8dUT0BX47xzjmPz/+GTHZNfi56j3rLjluCP0y/gRoH4MZMO3W8WNXf+I1XB8XG H3SyzcXiraOzZid96wUcgVdYm5zczb8lBxq3pQYJ4t1i8/gXFkFKY70S0A7j7Izl O3+U0BAs2g/ZBBEA/BXm5puR7tkPzXofDVxScP7I7GhM9vom1ilawfPeXBvFOQ+y Zu4bDS3YQDRSPF3Hu9G0yuOyj/dOx/TyCbqGU2VO1ltqGGChvJ2KnIHBTnmYfzgb DBmgbsgTNCe7MELB204hV06iPhlX2RV/dObgLJbsHutJHTT/UdLw3mFGfdPi3MQ= =eHnK -END PGP SIGNATURE-
Re: Creating pdf forms template
The problem is far beyond my tiny understanding of LyX/LaTeX unfortunately. Have you tried a question on StackOverflow? From: Alex Vergara Gil <a...@cphr.edu.cu> To: John Kane <jrkrid...@yahoo.ca>; lyx-users Users <lyx-users@lists.lyx.org>; lyx-de...@lists.lyx.org Sent: Thursday, March 21, 2013 5:18:53 PM Subject: Re: Creating pdf forms template - Original Message - From: John Kane >To: Alex Vergara Gil ; lyx-users Users ; lyx-de...@lists.lyx.org >Sent: Thursday, March 21, 2013 12:32 PM >Subject: Re: Creating pdf forms template > > >It works or at least I managed to type some text into the text box. I made >a couple of changes to the text which I think makes it a bit more idiomatic in > English (see attached. I hope you don't mind. > >I spent what seemed like forever installing the blasted insdljs.sty and it worked. > >For those having the same problem in Ubuntu I >1) created a texmf folder at root level following these directions http://nmv.stat.cmu.edu/2012/06/14/managing-latex-packages-manually-in-ubuntu-12-04/ > >and then following instructions from http://www.latex-community.org/forum/viewtopic.php?f=5=8886 > >2. cd'd to the texmf/tex/latex/acrotex directory >3. ran sudo texhash >4 ran latex acrotex.ins >Reconfigured LyX and everything ran nicely. > Dear John Thanks for your reply and your idiomatic suggestions. Now I notice that it must be told in the document that for make it to work the AcroTeX package must be instaled also (it contains the insdljs.sty file), this specific package allows javascript code inside a pdf, so you can manage actions like (onselect, onkeypress, etc). It is also part of MikTeX if you run this on Windows so this should works on every platform. The problem is that if you just put {this.getField("Escuelat").readonly=false;} it works in one way, but when you uncheck the box the linked text field should become uneditable and empty. For this I expect that the code {this.getField("Escuelat").readonly=!this.getField("Escuelac").checked; this.getField("Escuelat").value="";} shall do the job, but it isn´t. I even made this as a function, but nothing happened. The rest of the objects work very nice but this kind of behaviour is critical for the next step of creating action buttons. Regards Alex
Re: Creating pdf forms template
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I am really looking forward to a working example - but could we please keep this discussion on lyx-users, as it has nothing to do with devel? Thanks, Rainer On 22/03/13 14:14, John Kane wrote: > The problem is far beyond my tiny understanding of LyX/LaTeX unfortunately. > Have you tried a > question on StackOverflow? > > > > > *From:* Alex Vergara Gil <a...@cphr.edu.cu> > *To:* John Kane <jrkrid...@yahoo.ca>; lyx-users Users > <lyx-users@lists.lyx.org>; > lyx-de...@lists.lyx.org *Sent:* Thursday, March 21, 2013 5:18:53 PM > *Subject:* Re: Creating pdf > forms template > > - Original Message - > > *From:* John Kane <mailto:jrkrid...@yahoo.ca> *To:* Alex Vergara Gil > <mailto:a...@cphr.edu.cu> > ; lyx-users Users <mailto:lyx-users@lists.lyx.org> ; lyx-de...@lists.lyx.org > <mailto:lyx-de...@lists.lyx.org> *Sent:* Thursday, March 21, 2013 12:32 PM > *Subject:* Re: > Creating pdf forms template > > It works or at least I managed to type some text into the text box. I made a > couple of > changes to the text which I think makes it a bit more idiomatic in English > (see attached. I > hope you don't mind. > > I spent what seemed like forever installing the blasted insdljs.sty and it > worked. > > For those having the same problem in Ubuntu I 1) created a texmf folder at > root level > following these directions > http://nmv.stat.cmu.edu/2012/06/14/managing-latex-packages-manually-in-ubuntu-12-04/ > > and then following instructions from > http://www.latex-community.org/forum/viewtopic.php?f=5=8886 > > 2. cd'd to the texmf/tex/latex/acrotex directory 3. ran sudo texhash 4 ran > latex acrotex.ins > Reconfigured LyX and everything ran nicely. > > Dear John > > Thanks for your reply and your idiomatic suggestions. Now I notice that it > must be told in the > document that for make it to work the AcroTeX package must be instaled also > (it contains the > insdljs.sty file), this specific package allows javascript code inside a pdf, > so you can > manage actions like (onselect, onkeypress, etc). It is also part of MikTeX if > you run this on > Windows so this should works on every platform. > > The problem is that if you just put > > {this.getField("Escuelat").readonly=false;} > > it works in one way, but when you uncheck the box the linked text field > should become > uneditable and empty. For this I expect that the code > > {this.getField("Escuelat").readonly=!this.getField("Escuelac").checked; > this.getField("Escuelat").value="";} > > shall do the job, but it isn´t. I even made this as a function, but nothing > happened. The rest > of the objects work very nice but this kind of behaviour is critical for the > next step of > creating action buttons. > > Regards > > Alex > > > - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax : +33 - (0)9 58 10 27 44 Fax (D):+49 - (0)3 21 21 25 22 44 email: rai...@krugs.de Skype: RMkrug -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJRTFzeAAoJENvXNx4PUvmCz1MH+wfO2/Odl37cxml6JWsQSqIQ nw8dUT0BX47xzjmPz/+GTHZNfi56j3rLjluCP0y/gRoH4MZMO3W8WNXf+I1XB8XG H3SyzcXiraOzZid96wUcgVdYm5zczb8lBxq3pQYJ4t1i8/gXFkFKY70S0A7j7Izl O3+U0BAs2g/ZBBEA/BXm5puR7tkPzXofDVxScP7I7GhM9vom1ilawfPeXBvFOQ+y Zu4bDS3YQDRSPF3Hu9G0yuOyj/dOx/TyCbqGU2VO1ltqGGChvJ2KnIHBTnmYfzgb DBmgbsgTNCe7MELB204hV06iPhlX2RV/dObgLJbsHutJHTT/UdLw3mFGfdPi3MQ= =eHnK -END PGP SIGNATURE-
Creating pdf forms template
Hello Lyxers! In the lasts days I was learning how to create PDF forms using LyX. But this process require a few javascript knowledge. I´ve tried my best to translate to english the attached template (an improvement of previous in spanish) in which you will see that objects are actually created but the scripts doesn´t behave as I expect. Someone please help me to set this to work. I think this is a first step to make a good template and if we manage to obtain an impresive one and people starts using it then it should be a feature request to support form creation natively in LyX, hopely as a new toolbox. What do you think about this? Please don´t feel offended by my (bad) english, I really make my best effort to translate it. Regards Alex pdf-forms-en.lyx Description: application/lyx
Re: Creating pdf forms template
It works or at least I managed to type some text into the text box. I made a couple of changes to the text which I think makes it a bit more idiomatic in English (see attached. I hope you don't mind. I spent what seemed like forever installing the blasted insdljs.sty and it worked. For those having the same problem in Ubuntu I 1) created a texmf folder at root level following these directions http://nmv.stat.cmu.edu/2012/06/14/managing-latex-packages-manually-in-ubuntu-12-04/ and then following instructions from http://www.latex-community.org/forum/viewtopic.php?f=5t=8886 2. cd'd to the texmf/tex/latex/acrotex directory 3. ran sudo texhash 4 ran latex acrotex.ins Reconfigured LyX and everything ran nicely. From: Alex Vergara Gil a...@cphr.edu.cu To: lyx-users Users lyx-users@lists.lyx.org; lyx-de...@lists.lyx.org Sent: Thursday, March 21, 2013 10:20:15 AM Subject: Creating pdf forms template Hello Lyxers! In the lasts days I was learning how to create PDF forms using LyX. But this process require a few javascript knowledge. I´ve tried my best to translate to english the attached template (an improvement of previous in spanish) in which you will see that objects are actually created but the scripts doesn´t behave as I expect. Someone please help me to set this to work. I think this is a first step to make a good template and if we manage to obtain an impresive one and people starts using it then it should be a feature request to support form creation natively in LyX, hopely as a new toolbox. What do you think about this? Please don´t feel offended by my (bad) english, I really make my best effort to translate it. Regards Alex pdf-forms-en1.lyx Description: application/lyx
Re: Creating pdf forms template
- Original Message - From: John Kane To: Alex Vergara Gil ; lyx-users Users ; lyx-de...@lists.lyx.org Sent: Thursday, March 21, 2013 12:32 PM Subject: Re: Creating pdf forms template It works or at least I managed to type some text into the text box. I made a couple of changes to the text which I think makes it a bit more idiomatic in English (see attached. I hope you don't mind. I spent what seemed like forever installing the blasted insdljs.sty and it worked. For those having the same problem in Ubuntu I 1) created a texmf folder at root level following these directions http://nmv.stat.cmu.edu/2012/06/14/managing-latex-packages-manually-in-ubuntu-12-04/ and then following instructions from http://www.latex-community.org/forum/viewtopic.php?f=5t=8886 2. cd'd to the texmf/tex/latex/acrotex directory 3. ran sudo texhash 4 ran latex acrotex.ins Reconfigured LyX and everything ran nicely. Dear John Thanks for your reply and your idiomatic suggestions. Now I notice that it must be told in the document that for make it to work the AcroTeX package must be instaled also (it contains the insdljs.sty file), this specific package allows javascript code inside a pdf, so you can manage actions like (onselect, onkeypress, etc). It is also part of MikTeX if you run this on Windows so this should works on every platform. The problem is that if you just put {this.getField(Escuelat).readonly=false;} it works in one way, but when you uncheck the box the linked text field should become uneditable and empty. For this I expect that the code {this.getField(Escuelat).readonly=!this.getField(Escuelac).checked; this.getField(Escuelat).value=;} shall do the job, but it isn´t. I even made this as a function, but nothing happened. The rest of the objects work very nice but this kind of behaviour is critical for the next step of creating action buttons. Regards Alex
Creating pdf forms template
Hello Lyxers! In the lasts days I was learning how to create PDF forms using LyX. But this process require a few javascript knowledge. I´ve tried my best to translate to english the attached template (an improvement of previous in spanish) in which you will see that objects are actually created but the scripts doesn´t behave as I expect. Someone please help me to set this to work. I think this is a first step to make a good template and if we manage to obtain an impresive one and people starts using it then it should be a feature request to support form creation natively in LyX, hopely as a new toolbox. What do you think about this? Please don´t feel offended by my (bad) english, I really make my best effort to translate it. Regards Alex pdf-forms-en.lyx Description: application/lyx
Re: Creating pdf forms template
It works or at least I managed to type some text into the text box. I made a couple of changes to the text which I think makes it a bit more idiomatic in English (see attached. I hope you don't mind. I spent what seemed like forever installing the blasted insdljs.sty and it worked. For those having the same problem in Ubuntu I 1) created a texmf folder at root level following these directions http://nmv.stat.cmu.edu/2012/06/14/managing-latex-packages-manually-in-ubuntu-12-04/ and then following instructions from http://www.latex-community.org/forum/viewtopic.php?f=5t=8886 2. cd'd to the texmf/tex/latex/acrotex directory 3. ran sudo texhash 4 ran latex acrotex.ins Reconfigured LyX and everything ran nicely. From: Alex Vergara Gil a...@cphr.edu.cu To: lyx-users Users lyx-users@lists.lyx.org; lyx-de...@lists.lyx.org Sent: Thursday, March 21, 2013 10:20:15 AM Subject: Creating pdf forms template Hello Lyxers! In the lasts days I was learning how to create PDF forms using LyX. But this process require a few javascript knowledge. I´ve tried my best to translate to english the attached template (an improvement of previous in spanish) in which you will see that objects are actually created but the scripts doesn´t behave as I expect. Someone please help me to set this to work. I think this is a first step to make a good template and if we manage to obtain an impresive one and people starts using it then it should be a feature request to support form creation natively in LyX, hopely as a new toolbox. What do you think about this? Please don´t feel offended by my (bad) english, I really make my best effort to translate it. Regards Alex pdf-forms-en1.lyx Description: application/lyx
Re: Creating pdf forms template
- Original Message - From: John Kane To: Alex Vergara Gil ; lyx-users Users ; lyx-de...@lists.lyx.org Sent: Thursday, March 21, 2013 12:32 PM Subject: Re: Creating pdf forms template It works or at least I managed to type some text into the text box. I made a couple of changes to the text which I think makes it a bit more idiomatic in English (see attached. I hope you don't mind. I spent what seemed like forever installing the blasted insdljs.sty and it worked. For those having the same problem in Ubuntu I 1) created a texmf folder at root level following these directions http://nmv.stat.cmu.edu/2012/06/14/managing-latex-packages-manually-in-ubuntu-12-04/ and then following instructions from http://www.latex-community.org/forum/viewtopic.php?f=5t=8886 2. cd'd to the texmf/tex/latex/acrotex directory 3. ran sudo texhash 4 ran latex acrotex.ins Reconfigured LyX and everything ran nicely. Dear John Thanks for your reply and your idiomatic suggestions. Now I notice that it must be told in the document that for make it to work the AcroTeX package must be instaled also (it contains the insdljs.sty file), this specific package allows javascript code inside a pdf, so you can manage actions like (onselect, onkeypress, etc). It is also part of MikTeX if you run this on Windows so this should works on every platform. The problem is that if you just put {this.getField(Escuelat).readonly=false;} it works in one way, but when you uncheck the box the linked text field should become uneditable and empty. For this I expect that the code {this.getField(Escuelat).readonly=!this.getField(Escuelac).checked; this.getField(Escuelat).value=;} shall do the job, but it isn´t. I even made this as a function, but nothing happened. The rest of the objects work very nice but this kind of behaviour is critical for the next step of creating action buttons. Regards Alex
Creating pdf forms template
Hello Lyxers! In the lasts days I was learning how to create PDF forms using LyX. But this process require a few javascript knowledge. I´ve tried my best to translate to english the attached template (an improvement of previous in spanish) in which you will see that objects are actually created but the scripts doesn´t behave as I expect. Someone please help me to set this to work. I think this is a first step to make a good template and if we manage to obtain an impresive one and people starts using it then it should be a feature request to support form creation natively in LyX, hopely as a new toolbox. What do you think about this? Please don´t feel offended by my (bad) english, I really make my best effort to translate it. Regards Alex pdf-forms-en.lyx Description: application/lyx
Re: Creating pdf forms template
It works or at least I managed to type some text into the text box. I made a couple of changes to the text which I think makes it a bit more idiomatic in English (see attached. I hope you don't mind. I spent what seemed like forever installing the blasted insdljs.sty and it worked. For those having the same problem in Ubuntu I 1) created a texmf folder at root level following these directions http://nmv.stat.cmu.edu/2012/06/14/managing-latex-packages-manually-in-ubuntu-12-04/ and then following instructions from http://www.latex-community.org/forum/viewtopic.php?f=5=8886 2. cd'd to the texmf/tex/latex/acrotex directory 3. ran sudo texhash 4 ran latex acrotex.ins Reconfigured LyX and everything ran nicely. From: Alex Vergara Gil <a...@cphr.edu.cu> To: lyx-users Users <lyx-users@lists.lyx.org>; lyx-de...@lists.lyx.org Sent: Thursday, March 21, 2013 10:20:15 AM Subject: Creating pdf forms template Hello Lyxers! In the lasts days I was learning how to create PDF forms using LyX. But this process require a few javascript knowledge. I´ve tried my best to translate to english the attached template (an improvement of previous in spanish) in which you will see that objects are actually created but the scripts doesn´t behave as I expect. Someone please help me to set this to work. I think this is a first step to make a good template and if we manage to obtain an impresive one and people starts using it then it should be a feature request to support form creation natively in LyX, hopely as a new toolbox. What do you think about this? Please don´t feel offended by my (bad) english, I really make my best effort to translate it. Regards Alex pdf-forms-en1.lyx Description: application/lyx
Re: Creating pdf forms template
- Original Message - From: John Kane To: Alex Vergara Gil ; lyx-users Users ; lyx-de...@lists.lyx.org Sent: Thursday, March 21, 2013 12:32 PM Subject: Re: Creating pdf forms template It works or at least I managed to type some text into the text box. I made a couple of changes to the text which I think makes it a bit more idiomatic in English (see attached. I hope you don't mind. I spent what seemed like forever installing the blasted insdljs.sty and it worked. For those having the same problem in Ubuntu I 1) created a texmf folder at root level following these directions http://nmv.stat.cmu.edu/2012/06/14/managing-latex-packages-manually-in-ubuntu-12-04/ and then following instructions from http://www.latex-community.org/forum/viewtopic.php?f=5=8886 2. cd'd to the texmf/tex/latex/acrotex directory 3. ran sudo texhash 4 ran latex acrotex.ins Reconfigured LyX and everything ran nicely. Dear John Thanks for your reply and your idiomatic suggestions. Now I notice that it must be told in the document that for make it to work the AcroTeX package must be instaled also (it contains the insdljs.sty file), this specific package allows javascript code inside a pdf, so you can manage actions like (onselect, onkeypress, etc). It is also part of MikTeX if you run this on Windows so this should works on every platform. The problem is that if you just put {this.getField("Escuelat").readonly=false;} it works in one way, but when you uncheck the box the linked text field should become uneditable and empty. For this I expect that the code {this.getField("Escuelat").readonly=!this.getField("Escuelac").checked; this.getField("Escuelat").value="";} shall do the job, but it isn´t. I even made this as a function, but nothing happened. The rest of the objects work very nice but this kind of behaviour is critical for the next step of creating action buttons. Regards Alex