Details
Description
A user on the forms requested a way to change the ShrinkToPrintableArea on SwingController.print(..) which seemed like a reasonable request. Currently ShrinkToPrintableArea is hard coded to true, requiring a rebuild of the viewer jar to change its value.
The shrinkToPrinableArea can be set at any time before a print with the following code.
...
SwingController controller = new SwingController();
controller.getViewModel().setShrinkToPrintableArea(false);
The shrinkToPrinableArea can be set at any time before a print with the following code.
...
SwingController controller = new SwingController();
controller.getViewModel().setShrinkToPrintableArea(false);
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
As previously suggested I added a instance variable for ShrinkToPrintableArea in the ViewModel of the SwingController. Users can now change the value programatically without having to rebuild the viewer jar.