ICEpdf
  1. ICEpdf
  2. PDF-30

PDimension should probably implement Dimension2D

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.0
    • Fix Version/s: 6.0
    • Component/s: API
    • Labels:
      None
    • Environment:
      N/A

      Description

      We are ultimately rendering to Java2D with ICEpdf, so it would be nice if the page dimensions it returned could be an instance of the standard Dimension2D class.

      I'm not too keen on using toDimension() as it returns a Dimension which has only int values, whereas if we could use it as a Dimension2D directly we would get the best of both worlds (compatibility with the rest of the Java2D API, plus keeping the dimensions stored as float internally.)

      At the moment our workaround for this is to wrap it in our own delegate class which extends Dimension2D.

        Activity

        Trejkaz . created issue -
        Patrick Corless made changes -
        Field Original Value New Value
        Salesforce Case []
        Affects Version/s 3.1 [ 10181 ]
        Affects Version/s 3.0 [ 10180 ]
        Patrick Corless made changes -
        Salesforce Case []
        Fix Version/s 3.1 [ 10181 ]
        Affects Version/s 3.0 [ 10180 ]
        Affects Version/s 3.1 [ 10181 ]
        Patrick Corless made changes -
        Fix Version/s 3.2 [ 10212 ]
        Fix Version/s 3.1 [ 10181 ]
        Ken Fyten made changes -
        Fix Version/s 4.0 - Beta [ 10212 ]
        Patrick Corless made changes -
        Fix Version/s 5.2 [ 10970 ]
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #44416 Mon Apr 06 09:45:58 MDT 2015 patrick.corless PDF-30 addition of Dimension2D extension for PDimension.
        Files Changed
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/PDimension.java
        Commit graph MODIFY /icepdf/trunk/icepdf/core/src/org/icepdf/core/pobjects/NameTree.java
        Commit graph MODIFY /icepdf/trunk/icepdf/viewer/src/org/icepdf/ri/common/views/DocumentViewComponent.java
        Commit graph MODIFY /icepdf/trunk/icepdf/viewer/src/org/icepdf/ri/common/PrintHelper.java
        Hide
        Patrick Corless added a comment -

        Marking as resolved.

        Show
        Patrick Corless added a comment - Marking as resolved.
        Patrick Corless made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Hide
        Patrick Corless added a comment -

        Marking as closed

        Show
        Patrick Corless added a comment - Marking as closed
        Patrick Corless made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: