Charset problems when altering a pdf-file
Hi
I need to alter two specific lines in some 3rd party meta data applied to a pdf-file. I'm working on mac with eclipse. I know that the problem is the handling of the charset. Can anyone help me with some lines that copies a pdf-file line by line, that keeps the pdf-file in the right encoding? Tried some examples found by google, but nothing seems to work for me. The closest thing I got was a pdf-file that acrobat was able to open but the file looked wrong. I need specific lines more that explanation.
thanx
Re: Charset problems when altering a pdf-file
Your Java platform will have its own default encoding. The PDF files will have theirs. Just about your only option is to make sure your Java platform's encoding is the same as the PDF files you're given. Set the file.encoding property of the JVM. From the command line it'd be java -Dfile.encoding=UTF-8 (for example). There'll be a knob somewhere in Eclipse that'll give you GUI access to the command line arguments.