Screen Shot | Print Screen | PDF Widget

Content Type: Widget
Categories: Utility

Overview

An Implementation to make a screenshot in the front end and generate a PDF from it. Compatible with Mendix 9.xx and up.

As this is using the front end to generate the PDF, unforeseen changes in user device can affect the end result, this is a problem in any product that tries to generate from the users device.

Documentation

Screen Shot | Print Screen

Full Docs Here


An Implementation to make a screenshot in the front end and generate a PDF from it. Compatible with Mendix 9.xx and up.

In it essence it is primitive, but does support Multi Pages and is Dojo free so should be compatible relatively well into newer Mendix versions.

As this is using the front end to generate the PDF, unforeseen changes in user device can affect the end result, this is a problem in any product that tries to generate from the users device.

A general use case is to model out what you want to be printed in a pop up/modal, and controll width and height by hard coding it.

Usage of this is recommended for POC's or QR printing. (Quick Sprint Task)

Note Printing important docs from the front end also ads a security risk, as users can easily change values in the browser.

Setup in Studio Pro

Download and Import the widget, Add a button into the placeholder section and style it to match your designs, do not give the button any action as the widget will take control of the Click action.

Class Name To Print – Class Name to target to print

Prefix for Page Name -Prefix to add to default file name once saved

Page Orientation – Choose to print in Landscape or Portrait Orientation

Page Size – Choose a Page Size, Options A4, A5, A6 and US Letter

 

End result

A moving Picture is worth a 1001 words

 

Issues / Limitations

There are currently no know limitations. but if you find some feel free to add a Github issue here.

Releases

Version: 1.0.0
Framework Version: 9.6.9
Release Notes: An Implementation to make a screenshot in the front end and generate a PDF from it. Compatible with Mendix 9.xx and up. In it essence it is primitive, but does support Multi Pages and is [Dojo](https://dojotoolkit.org/) free so should be compatible _relatively_ well into newer Mendix versions. As this is using the front end to generate the PDF, unforeseen changes in user device can affect the end result, this is a problem in any product that tries to generate from the users device. A general use case is to model out what you want to be printed in a pop up/modal, and controll width and height by hard coding it. > Usage of this is recommended for _POC's_ or _QR_ printing. ([Quick Sprint Task](https://xkcd.com/1425/)) > > **Note** Printing important docs from the front end also ads a security risk, as users can easily change values in the > browser. **Full Changelog**: https://github.com/mendixlabs/app-services-components/compare/calendarnativewidget@1.0.6...screenshot@1.0.0