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

          People

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

            Dates

            • Created:
              Updated:
              Resolved: