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
| Repository | Revision | Date | User | Message |
| ICEsoft Public SVN Repository | #24128 | Thu Mar 10 19:09:40 MST 2011 | patrick.corless | |
| Files Changed | ||||
MODIFY
/icepdf/trunk/icepdf/viewer/src/org/icepdf/ri/common/ViewModel.java
MODIFY
/icepdf/trunk/icepdf/viewer/src/org/icepdf/ri/common/SwingController.java
|
| Field | Original Value | New Value |
|---|---|---|
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Fix Version/s | 4.2 [ 10243 ] | |
| Resolution | Fixed [ 1 ] |
| Status | Resolved [ 5 ] | Closed [ 6 ] |

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.