Javascript after XFA file merged

I have a dynamic XFA-based form that was developed in LiveCycle Designer.
Now I’m be able to merge the approx XML data to the document through Aspose.PDF.
However, I need to inject certain javascript to the document and trigger this injected javascript after the data is merged with the document.
The OpenAction method in the Document, seems to be run before the data is merged.
Is there any Api/ways that available for us to trigger the Javascript after the XML data is merged with the document.

Thanks a lots
George

@george.zheng,
You can run Javascript in open and close actions on the PDF page. Please refer to this help topic: Adding JavaScript to Document or Page Action