Link Search Menu Expand Document

PDF outputs UTF-8 with BOM

You need to use StreamWriter class.

If you construct it without the encoding in parameters - StreamWriter(String) - it will save UTF-8 file without BOM. Constructor StreamWriter(String, Boolean, Encoding) will save files with BOM (for appropriate encodings).