Help me about PDF Action

  • Ronald

    Ronald - 2009-11-20

    Can you help me about the Actions on PDF, Here is my case:

    I've created a simple pdf with only 2 textField, Text1 and Text2..

    Text1 has an action script on which after a user encode a string its value will automatically copied to Text2.

    Now the question is..

    Is it possible for Jpod to read my simple pdf file and when I set the form.getField("Text1").setValueString('new value') .
    Doest Text2 value also been changed automatically after saving the pdf..

    I've Tested it and Text2 field dont have any value. How would i execute the action from Text1 field programatically using Jpod
    without manually setting the value but by triggering the Action which i think is PDActionJavaScript.

    Is it possible.? If is then can i have a code snippets..

    Hope for immediate response.. I need it badly for my experement..


  • mtraut

    mtraut - 2009-11-20

    jPod handles only document structure, not behavior.

    To support action execution in your example you'd have to:

    1) use an IFormHandler (for example the standard form handler) to fill  the form. Here is the strategy implementing the complex acro form handling while "field.setValue" would only change the "V" property of the field

    2) Implement and register an IActionHandler for "JavaScript". This action handler  is not part of the distribution.

    Shortly: Currently this can't be done using jPod without implementing (or buying) additional components.

    please, add a post only in a single forum…


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks