I wonder if someone could suggest if this is a bug in PoDoFo, or
a characteristic that will require additional development.
This is using a version close to the 0.6 release, not the current SVN.

We have a PDF file containing a small document level javascript.
When the document is opened and processed, the resulting
document shows some corruption to the javascript text.
In particular, end of line characters seem to be parsed in such a way
that they are removed and changed to spurious 'r' and 'n' characters.
The before and after evidence is shown below.

PDF JavaScript BEFORE (original):

/*********** belongs to: Document-Level:SetButtonActionAsTextValue ***********/
function SetButtonActionAsTextValue( btnFieldName, textFieldName)
{
    var b = this.getField(btnFieldName);
    var js = this.getField(textFieldName).value;
    b.setAction("MouseUp", js);
}
//</ACRO_script>
//</Document-Level>


PDF JavaScript AFTER (damaged):

/*********** belongs to: Document-Level:SetButtonActionAsTextValue ***********/
nfunction SetButtonActionAsTextValue( btnFieldName, textFieldName)rn{rn var b = 
this.getField(btnFieldName);rn
var js = this.getField(textFieldName).value;rn b.setAction("MouseUp", js);rn}r
//</ACRO_script>
//</Document-Level>


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to