Have a look at this forum post, might be an option to implement for your case: https://forum.mendix.com/link/questions/21092
PrintNode.com. We’ve been using this for years with Mendix apps and it works great!