Convert base64 string to pdf in c