ICEpdf
  1. ICEpdf
  2. PDF-272

Update ViewerRI so that the PrintHelper ShrinkToPrintableArea can be easily configured.

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.1.4
    • Fix Version/s: 4.2
    • Component/s: Viewer RI
    • Labels:
      None
    • Environment:
      any

      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);

        Activity

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #24128 Thu Mar 10 19:09:40 MST 2011 patrick.corless PDF-272 added a isShrinkToPrintableArea property to the ViewModel for SwingController to allow users to more easily change the print property. Previously hard coded.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/viewer/src/org/icepdf/ri/common/ViewModel.java
        Commit graph MODIFY /icepdf/trunk/icepdf/viewer/src/org/icepdf/ri/common/SwingController.java
        Patrick Corless created issue -
        Hide
        Patrick Corless added a comment -

        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.

        Show
        Patrick Corless added a comment - 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.
        Patrick Corless made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 4.2 [ 10243 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Patrick Corless
            Reporter:
            Patrick Corless
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: