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.