Andy,
    Try out the left padding and right padding for that field
It might work for you?
Regards,
Raffi

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf
Of Andy DePue
Sent: Monday, June 19, 2006 10:44 PM
To: jasperreports-questions@lists.sourceforge.net
Subject: [jasperreports-questions] Trailing whitespace being stripped
from PDF


Short version: PDF export is stripping trailing whitespace from all text 
fields, and this is a problem.  For one thing, the resulting PDF no 
longer matches the Swing jasper viewer.
Long version:
I have a report in which I'm attempting to line up money amounts.  The 
requirement is that the digits must be right justified and must line up 
for both negative and positive amounts.  Negative amounts show in 
parenthesis.   For example:

 45,345.32
  2,452.10
 (5,909.00)
(41,000.00)

(note, the above must be viewed in a fixed font to appear correctly).
To accomplish this I use a fixed font with right justification.  I then 
place empty spaces around positive dollar amounts: " 45,345.32 " so that 
they align with negative amounts, which are surrounded by parenthesis.  
This works fine when using the Swing Jasper viewer, but the exported PDF 
strips all trailing whitespace from text fields so that the numbers no 
longer align.  Is there a way I can preserve these trailing whitespace 
characters in the .pdf?

Thanks,
  Andy




_______________________________________________
jasperreports-questions mailing list
jasperreports-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions


_______________________________________________
jasperreports-questions mailing list
jasperreports-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jasperreports-questions

Reply via email to