Bug 48255 - [PATCH] Revisited implementation of PDFRectangle and PDFLink (derived from new PDFAnnotation dictionary)
Summary: [PATCH] Revisited implementation of PDFRectangle and PDFLink (derived from ne...
Status: NEW
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: pdf (show other bugs)
Version: all
Hardware: All All
: P2 enhancement
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-20 14:22 UTC by Gerald Buchgraber
Modified: 2012-04-11 03:21 UTC (History)
0 users



Attachments
[PATCH] Revisited implementation of PDFRectangle and PDFLink (17.91 KB, patch)
2009-11-26 03:01 UTC, Gerald Buchgraber
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gerald Buchgraber 2009-11-20 14:22:52 UTC
The class PDFRectangle just supports Integer values but the definintion in PDF Reference 1.4 Section 3.8.3 defines a Rectangle to be written as an array of four NUMBERS.

A revisited implementation with datatype java.lang.Number or even better with PDFNumber would be convenient.

If so, the native implementation of Rectangle2D and the PDF /Rect command in PDFLink could be replaced by a given PDFRectangle with floating point number support.
Comment 1 Jeremias Maerki 2009-11-25 07:27:58 UTC
Patches are welcome to improve FOP. PDFRectangle could be changed to be a subclass of PDFArray and PDFLink should actually be a PDFDictionary subclass at some point. Want to give it a try?
Comment 2 Gerald Buchgraber 2009-11-26 03:01:47 UTC
Created attachment 24622 [details]
[PATCH] Revisited implementation of PDFRectangle and PDFLink
Comment 3 Glenn Adams 2012-04-07 01:43:55 UTC
resetting P2 open bugs to P3 pending further review
Comment 4 Glenn Adams 2012-04-11 03:21:12 UTC
increase priority for bugs with a patch