Check out the Mendix Model API.
The pageTrap.com API lets you easily convert a given URL or POSTed HTML to an accurately-rendered PDF or a JPG / PNG file. pageTrap.com is an easy-to-use conversion service that powers this API. The service renders HTML as a PDF or an Image. This API is free, but if you become a member at pageTrap.com you will receive 25 free credits that will unlock all features - those features being the removal of the pageTrap logo from the results, and the ability to use many other parameters like: Orientation, Size, Margins, ImageFormat, jQuery selector etc.
Connect to API