I've done this in the past for an older version of Mendix, never with pluggable widgets. Do keep in mind that PDFTron also requires a very specific file format to properly work. Something that can be generated on a server but not directly as an extension to the Java runtime that Mendix cloud uses.
If you want to know more feel free to contact me (see my developer page for contact options or checkout my LinkedIn page)