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.
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?
Created attachment 24622 [details] [PATCH] Revisited implementation of PDFRectangle and PDFLink
resetting P2 open bugs to P3 pending further review
increase priority for bugs with a patch