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
A PDF is a binary object. You need to write the bytes directly to a file.
Turning into text will probably break it. Does it start with %%PDF- and end with %%EOF?
%%PDF-
%%EOF