PDF Export Addon Print Right Justified text raggedly
Original Reporter info from Mantis: TWhyman
-
Reporter name: Tony Whyman
Original Reporter info from Mantis: TWhyman
- Reporter name: Tony Whyman
Description:
Exporting a form with right justified text to PDF using the PDF addon results in ragged right printing even though the text appears correct in the preview.
Additional information:
The problem is due to the InternalOnExportText method being called with a position computed using the screen text metrics - which are almost guaranteed to be different from the PDF metrics. The position needs to be passed unadjusted to the export function and the export function has to computed the correct text alignment.
The attached patch makes this change and changes the PDF add on to compute correct alignment.
Mantis conversion info:
- Mantis ID: 23138
- Version: 1.0.2
- Fixed in version: 1.1 (SVN)
- Fixed in revision: 39231 (#2c72395c)
- Target version: 1.2.0
- LazTarget: 1.2