c++ pdflib 中文乱码解决思路

1、加入

PDF_set_parameter(p, "charref", "true"); 

PDF_set_parameter(p, "textformat", "utf8");

2、将中文内容GBK转为UTF-8即可

 

输出效果如下:

c++ pdflib 中文乱码解决思路_第1张图片

 

 

你可能感兴趣的:(c++)