I have a huge string of text that is apparently raw data for a PDF file, and I need to make it back into a PDF.
Currently I\'m reading the string into a StringBuffer but
How did you come across this string? If it is a raw ASCII string, you will be missing a large amount of binary data that is embedded within the PDF.
If you have a unicode string, you may be able to write it to a file directly using an OutputStream (not a Writer as you don't actually want to write character data).