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

        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.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: