Paolo Russian wrote:
> To make it short, extracting bytes from the pdf I can't get all of the
> characters and get a lot of ?????? instead of the correct original ones.

Your long text contains a lot of sideways and terminology I've never 
heard of. This is confusing AND in the end the question isn't even about 
iText, it's about transferring binary data.

A byte in Java is a value between -127 and +127.
A byte[] can be turned into a String if you pass an encoding.
If you don't pass an encoding the default encoding is used.

If the encoding is wrong, the String will be wrong.
If you see plenty of ?????, then you have plenty of bytes with value 63.
63 = 00111111
Hey, that's a value that I recognize! I've seen that value plenty of 
times when either my database uses the wrong encoding, or when the 
default encoding of the OS doesn't match, or when the JVM is started 
with the wrong encoding!
It's a hell of a job to get all these encodings to work properly (for 
instance: by starting the JVM with the option 
-Dfile.encoding=windows-1252) and if you're using a JVM from SUN, you 
may also have to set another encoding property (check 
System.getProperties()), but that's not something that can be done 
remotely. It depends on many different parameters that need to be 
checked in your complete architecture.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to