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

          People

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

            Dates

            • Created:
              Updated:
              Resolved: