I know nothing about javascript. Paulo
----- Original Message ----- From: "matrixo" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Wednesday, September 06, 2006 4:18 AM Subject: Re: [iText-questions] appearance comb textfield: problem with spaces > > Hi Paulo, > > These are the script snippet I took from the document that executes in the > text box events. > > On "Enter" event it invokes > > TFConstrShow(); > > On "Exit" event it invokes > > TFTemplate_KeyStroke( /^([A- Za- z\\xC0- \\xD6\\xD8- \\xF6\\xF8- > \\xFF\\s\\/@]{0,23})$/ ); > TFCase_Format( 0 ); > TFConstrHide(); > > The function body is as follows > ------------- > function TFConstrShow() > { > event.target.fillColor = color.white; > event.target.comb = false; > } > ------------- > function TFConstrHide() > { > event.target.fillColor = color.transparent; > event.target.comb = true; > } > ------------- > function TFTemplate_KeyStroke( mask ) > { > if (event.willCommit) { > return; > } > var value = AFMergeChange( event ); > if (!mask.test( value )) { > event.rc = false; > app.beep( 0 ); > } > } > ------------- > function TFCase_Format( c ) > { > if (c == 0) { > event.value = event.value.toString().toUpperCase(); > } else if (c == 1) { > event.value = event.value.toString().toLowerCase(); > } > } > ------------- > > Do you see any possible version compatibility issues in these script? > > Paulo Soares wrote: >> >> >> ----- Original Message ----- >> From: "matrixo" <[EMAIL PROTECTED]> >> To: <[email protected]> >> Sent: Monday, September 04, 2006 4:21 AM >> Subject: Re: [iText-questions] appearance comb textfield: problem with >> spaces >> >> >>> >>> But if I remove generated javascript the functionality may not work as >>> expected. >>> >>> >> >> As I said, the javascript has to be corrected or you must accept that the >> form can only be filled with Acrobat. >> >> Paulo >> >>> Paulo Soares wrote: >>>> >>>> If you remove the javascript from printfields.pdf it will work >>>> correctly. >>>> It >>>> looks like it's the javascript that has to be debugged. >>>> >>>> Paulo >>>> >>>> ----- Original Message ----- >>>> From: "bruno" <[EMAIL PROTECTED]> >>>> To: <[email protected]> >>>> Sent: Wednesday, August 30, 2006 11:57 AM >>>> Subject: [iText-questions] appearance comb textfield: problem with >>>> spaces >>>> >>>> >>>>> Hello all, >>>>> I forward a problem that is reported on the Planet PDF forum. >>>>> An original PDF file (printfield) has some text fields with the comb >>>>> option. >>>>> When filled using iTextSharp, this results in printfieldmodified.pdf. >>>>> When Adobe Reader creates the appearance, everything looks OK (I >>>>> think), >>>>> but the appearance created by iText(Sharp) >>>>> (snippet: BT 1 0 0 1 2 5.73 Tm /Cour 12 Tf 0 g (SURNAME FORENAME)Tj 0 >>>>> g >>>>> ET ) >>>>> acts weird: it looks like the space character has a negative advance. >>>>> How could this be solved? >>>>> br, >>>>> Bruno >>>>> >>>> >>>> >>>> -------------------------------------------------------------------------------- >>>> >>>> >>>>> ------------------------------------------------------------------------- >>>>> Using Tomcat but need to do more? Need to support web services, >>>>> security? >>>>> Get stuff done quickly with pre-integrated technology to make your job >>>>> easier >>>>> Download IBM WebSphere Application Server v.1.0.1 based on Apache >>>>> Geronimo >>>>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >>>> >>>> >>>> -------------------------------------------------------------------------------- >>>> >>>> >>>>> _______________________________________________ >>>>> iText-questions mailing list >>>>> [email protected] >>>>> https://lists.sourceforge.net/lists/listinfo/itext-questions >>>>> >>>> >>>> >>>> ------------------------------------------------------------------------- >>>> Using Tomcat but need to do more? Need to support web services, >>>> security? >>>> Get stuff done quickly with pre-integrated technology to make your job >>>> easier >>>> Download IBM WebSphere Application Server v.1.0.1 based on Apache >>>> Geronimo >>>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >>>> _______________________________________________ >>>> iText-questions mailing list >>>> [email protected] >>>> https://lists.sourceforge.net/lists/listinfo/itext-questions >>>> >>>> >>> >>> -- >>> View this message in context: >>> http://www.nabble.com/appearance-comb-textfield%3A-problem-with-spaces-tf2189161.html#a6129391 >>> Sent from the iText - General forum at Nabble.com. >>> >>> >>> ------------------------------------------------------------------------- >>> Using Tomcat but need to do more? Need to support web services, >>> security? >>> Get stuff done quickly with pre-integrated technology to make your job >>> easier >>> Download IBM WebSphere Application Server v.1.0.1 based on Apache >>> Geronimo >>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >>> _______________________________________________ >>> iText-questions mailing list >>> [email protected] >>> https://lists.sourceforge.net/lists/listinfo/itext-questions >> >> >> ------------------------------------------------------------------------- >> Using Tomcat but need to do more? Need to support web services, security? >> Get stuff done quickly with pre-integrated technology to make your job >> easier >> Download IBM WebSphere Application Server v.1.0.1 based on Apache >> Geronimo >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >> _______________________________________________ >> iText-questions mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/itext-questions >> >> > > -- > View this message in context: > http://www.nabble.com/appearance-comb-textfield%3A-problem-with-spaces-tf2189161.html#a6164259 > Sent from the iText - General forum at Nabble.com. > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > iText-questions mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/itext-questions ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
