Adding Acrobat JavaScript code to pdf export

I need to add startup Acrobat JavaScript code to pdf file while exporting to pdf (from ods or odt) by OpenOffice uno API (in C#). The code should by called when PDF is being opened or just has been opened.

I already know other solutions to the problem, but what I would like to solve is that certain approach(Acrobat JavaScript code + OpenOffice + UNO + PDF Export).

  • How to write a text file in Acrobat Javascript
  • How to validate PDF form?
  • Searching for unicode surrogates in Acrobat Pro using javascript
  • Open Source Linux Acrobat Javascript Editor
  • adobe acrobat dc document level javascript
  • Missing file for Javascript debugging in Adobe Acrobat
  • How do I detect the difference between Adobe Acrobat versions higher than 8 in non-IE browsers with JavaScript
  • Setting a field based on a ComboBox selection
  • GetJSObject fails when run on Microsoft Surface (Excel-VBA)
  • Javascript Detect if Adobe Reader is installed
  • Adobe Acrobat Reader Tabs Saving And Autoloading
  • Copy field values in Acrobat using Javascript
  • One Solution collect form web for “Adding Acrobat JavaScript code to pdf export”

    All the javascript code gets executed as soon as the PDF file is opened. There is not document open event.