I would like to know how to generate a PDF file using a string with binary values, the values should actually turn a text (according to the ASCII table) and be written to PDF. p>
I tried to do this but did not succeed:
string teste = "010001010101111001111111";
byte[] bytes = System.Text.Encoding.ASCII.GetBytes(teste);
File.WriteAllBytes(@"C:/teste.pdf", bytes);
What's wrong with the code? The PDF is created but nothing is written on it, it does not even open.