Creating PDF file from a String
Hi, i have to do this thing, create a PDF file from a source that is a String. I'm using iText libraries but i'm not able to do that. My conversion function receive a String representing the pdf file (and of course is illegible if i try to print it). I now that is weird (have a string with the content of the pdf inside) but i have no control to the input parameter. I've tried to create the file with the object PdfReader() (this is the code)
InputStream is = new ByteArrayInputStream(myString.getBytes(encoding));
PdfReader reader = new PdfReader(is);
and then write with the PdfWriter but the result is a file illegible (but not empty).
Any idea?