Stanley Bondi wrote:
> Thanks, I'll take look at the reference.
>
> > You are probably referring to MouseUp, Keystroke, Focus, Blur,...
> > as described in chapter 15 of the iText book or section 8.5 in
> > the PDF Reference (Tables 8.44, 8.45, 8.46, 8.47).
>
> Im not 100% sure how it works (obviously:),
> I have a pdf that, if you enter a field incorrectly(when you press
> tab) a messagebox(alert) pops up and tells you what is wrong.
When you press a tab = Blur (the field loses the focus).
> so i assumed that some event is fired to call a function in the built in
> javascript from pdfReader.JavaScript.
Events trigger actions, you'll have to look for the action
triggered by 'Bl' (as described in the PDF Reference).
> > Do you mean the piece of JavaScript similar to what you
> > retrieve when you do (1)?
> Yes,
> function checkFields() { ... } is one of the functions that i get from
> pdfReader.JavaScript;
>
> so if a textfield (in the pdf) validates it will (presumably) call this
> function.
> I want to be able to get all the acrofields and see which function they
> call when they validate, get the javascript for the pdf using
> pdfReader.JavaScript and call the method from my app to validate a
> textbox on my winform (which is generated from the PDF).
> So i want to get the validations used in the PDF and use them in my
> winform app, so i can choose any PDF and generate a screen and have the
> same validations that are built into the PDF. I can call the javascript,
> i just need to know which method to call. Is this possible?
>
> Thanks,
> Stan
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/