Okay, then it is quite clear: You can just write plain text to a PDF file, PDF is a binary format.
Try to open a working PDF file in Notepad (or your favorite editor) to see what this means.
↧
Invalid Format of "filename.pdf" when we open it on success of WriteFile Api
↧