SVN has been updated with the changes recommended by Paulo to support the 
proper byte output. Hopefully it will produce the correct output now for RTF 
files.

Regards,
Howard Shank



----- Original Message ----
From: Howard Shank <[EMAIL PROTECTED]>
To: Post all your questions about iText here 
<[email protected]>
Sent: Wednesday, August 6, 2008 10:45:54 AM
Subject: Re: [iText-questions] RTF/iText on the mainframe

Then I guess I'll work on that sometime after the bills get paid.

Howard



----- Original Message ----
From: Paulo Soares <[EMAIL PROTECTED]>
To: Post all your questions about iText here 
<[email protected]>
Sent: Wednesday, August 6, 2008 10:38:43 AM
Subject: Re: [iText-questions] RTF/iText on the mainframe



> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Howard Shank
> Sent: Wednesday, August 06, 2008 1:22 PM
> To: Post all your questions about iText here
> Subject: Re: [iText-questions] RTF/iText on the mainframe
>
> You need to make sure the file is created using the proper encoding.
>

No. It's iText job to guarantee that the conversion from a String to a byte[] 
is done using an explicit encoding and not rely on the machine encoding. This 
is done in PDF but in RTF you have lots of:

private static final byte[] ROW_CELL_SPACING_RIGHT = "\\trspdr".getBytes();

This should be:

private static final byte[] ROW_CELL_SPACING_RIGHT = 
DocWriter.getISOBytes("\\trspdr");

Paulo


Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter 
informação confidencial ou legalmente protegida. A incorrecta transmissão desta 
mensagem não significa a perca de confidencialidade.. Se esta mensagem for 
recebida por engano, por favor envie-a de volta para o remetente e apague-a do 
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de 
usar, revelar ou distribuir qualquer parte desta mensagem. 

Disclaimer:
This message is destined exclusively to the intended receiver. It may contain 
confidential or legally protected information. The incorrect transmission of 
this message does not mean the loss of its confidentiality. If this message is 
received by mistake, please send it back to the sender and delete it from your 
system immediately. It is forbidden to any person who is not the intended 
receiver to use, distribute or copy any part of this message.


      


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php



      


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to