This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Mar 14, 2014, 3:36 PM
22 Posts

iText - Custom Control (conversion issue)

  • Category: Other
  • Platform: Windows
  • Release: 8.5.3
  • Role: Developer
  • Tags: itext,comma
  • Replies: 2

I'm trying to implement a custom control from OpenNtf into my xPages application.

Export To Pdf

Seems to work fine but when I pass a value to the pfd that contains a comma, this comma is transformed into a dot. I've created the pdf template with OpenOffice 3.3 and OpenOffice 4.0.

it seems that the following code cause the problem

pdfStamper.getArcoFields().setField(fieldName, fieldValue)

fieldValue is declared as string and the receiving field on the pdf is a textbox.

ex: Hello,world ==> Hello.world

123,456 ==> 123.456

 

Anybody a clue where to search. The OpenNtf examples works for some templates (templates created by OpenOffice Writer)

 

 

Mar 14, 2014, 9:31 PM
366 Posts
This sounds like a localization issue

what is your localization property set to?  Local for browser versus client?

Mar 16, 2014, 6:49 AM
22 Posts
localization property ?

Hi Paul,

What do you mean with the localization property ? the one of the OS, browser , server? or is there a property in the iText library

I've checked everything and they are all set to use "," comma as decimal separator.

Even if I put a hard coded value ("Hello,World") " in place of the variable 'fieldValue" this is transformed to a dot. ("Hello.World")

 


This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal