How to create a pdf file in C