Details
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.
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
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #44416 | Mon Apr 06 09:45:58 MDT 2015 | patrick.corless | |
Files Changed | ||||
![]() ![]() ![]() ![]() |