ICEpdf
  1. ICEpdf
  2. PDF-359

Add ability to enlarge thumbnails

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.2.2
    • Fix Version/s: 4.3
    • Component/s: Core/Parsing
    • Labels:
      None
    • Environment:
      -

      Description

      With regards to PDF-12, a nice to have feature would be the ability to enlarge the thumbnails.

        Activity

        Hide
        Patrick Corless added a comment -

        I've add a new property in the Properties manager PROPERTY_UTILITYPANE_THUMBNAILS_ZOOM which can be used the change the default zoom level from 0.1f to what ever value one would like.

        Here's an example of how it would be used.

        PropertiesManager properties =
        new PropertiesManager(System.getProperties(),
        ResourceBundle.getBundle(PropertiesManager.DEFAULT_MESSAGE_BUNDLE));
        properties.setFloat(PropertiesManager.PROPERTY_UTILITYPANE_THUMBNAILS_ZOOM, 0.3f);

        SwingViewBuilder factory = new SwingViewBuilder(controller, properties);
        controller.getDocumentViewController().setAnnotationCallback(
        new org.icepdf.ri.common.MyAnnotationCallback(
        controller.getDocumentViewController()));
        JPanel viewerComponentPanel = factory.buildViewerPanel();

        JFrame applicationFrame = new JFrame();
        applicationFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        applicationFrame.getContentPane().add(viewerComponentPanel);
        controller.openDocument(filePath);

        Show
        Patrick Corless added a comment - I've add a new property in the Properties manager PROPERTY_UTILITYPANE_THUMBNAILS_ZOOM which can be used the change the default zoom level from 0.1f to what ever value one would like. Here's an example of how it would be used. PropertiesManager properties = new PropertiesManager(System.getProperties(), ResourceBundle.getBundle(PropertiesManager.DEFAULT_MESSAGE_BUNDLE)); properties.setFloat(PropertiesManager.PROPERTY_UTILITYPANE_THUMBNAILS_ZOOM, 0.3f); SwingViewBuilder factory = new SwingViewBuilder(controller, properties); controller.getDocumentViewController().setAnnotationCallback( new org.icepdf.ri.common.MyAnnotationCallback( controller.getDocumentViewController())); JPanel viewerComponentPanel = factory.buildViewerPanel(); JFrame applicationFrame = new JFrame(); applicationFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); applicationFrame.getContentPane().add(viewerComponentPanel); controller.openDocument(filePath);

          People

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

            Dates

            • Created:
              Updated:
              Resolved: