Skip to content

Working on Foundry V12 and pdf.js 4.0.x

Compare
Choose a tag to compare
@farling42 farling42 released this 24 Feb 00:57
· 18 commits to master since this release
  • The event sequence that was being used to copy fields from Foundry to a fillable PDF don't work with pdf.js version 4.0.x. A better sequence has been developed which works properly for older and newer pdf.js versions.
  • Switch to using DOCUMENT_OWNERSHIP_LEVELS since DOCUMENT_PERMISSION_LEVELS doesn't exist in V12 (it has been deprecated for a while).
  • Changed to use foundry.utils.set/getProperty (added to foundry in V10 or earlier, and required for V12).
  • A couple of one-line code tidy-ups.

(Note that Foundry 12, Prototype 2, still uses pdf.js version 2.14.305)