The timeout and interval functions are not needed as of the 10.5 release of PDF-XChange.
The PXEmacro class is mostly covered by the new util.expandMacros method as of the 10.6 release of PDF-XChange https://www.pdf-xchange.com/product/pdf ... 10-6-0-396
Initially I was planning to minify the script, but because this is all loaded locally, I didn't see a need. This is a pdf with documentation (output by jsDoc): xutil.addBookmark
- Add a bookmark that uses built-in bookmark properties at current page/zoom/position (ie without the limitations of bookmark.setAction())
Uses a saved array of bookmarks and .includes() to find which bookmark was added.
xutil.setTimeout Note that capitalization matches javascript in browsers (the built-in app.setTimeOut() capitalizes 'Out'.)
- These extend the built in app methods to allow one to pass functions. I find this much easier to work with because I can use closures. Instead of returning an object, they return an integer greater than zero on success.
xutil.clearTimeout
- Functions to clear the interval or timeout set with the above functions.
- Get an annotation as soon as it's drawn
- Minimal PDF-XChange macros class for javascript
- Class for color utilities I have used in quite a few scripts. From v2 onwards, it has a dialog that includes color images for a color picker (previously it was limited to just using the color names in a drop-down list). It's documented in the code, but I've also output the jsDoc as a pdf.