同一个pdf文件在同一个系统环境下,转word文件不会出现乱码,但转成图片文件就会出现乱码

Aspose.pdf for .net, 版本23.11, 同一个pdf文件在同一个系统环境下,转word文件不会出现乱码,但转成图片文件就会出现乱码。请问转图片时需要怎样设置才不会出现乱码。下面是pdf文件和转换的测试代码。
test2.pdf (38.0 KB)

void ProgressCallBack(UnifiedSaveOptions::ProgressEventHandlerInfo^ eventInfo)
{
if (Aspose::Pdf::ProgressEventType::TotalProgress == eventInfo->EventType)
{
std::cout << “pdf convert progress: (” << eventInfo->Value << “/” << eventInfo->MaxValue << “)\n”;
}
}

void testConvertDoc()
{
Document^ pdfFile = gcnew(Document)(“C:\Users\Administrator\Desktop\test2.pdf”);
DocSaveOptions^ saveOptinos = gcnew DocSaveOptions;
saveOptinos->Format = DocSaveOptions::DocFormat::DocX;
saveOptinos->CustomProgressHandler = gcnew UnifiedSaveOptions::ConversionProgressEventHandler(ProgressCallBack);

pdfFile->Save(“C:\Users\Administrator\Desktop\test2.docx”, saveOptinos);

}

void testConvertImages()
{
Document^ pdfFile = gcnew(Document)(“C:\Users\Administrator\Desktop\test2.pdf”);
Resolution^ resolution = gcnew(Resolution)(300);
JpegDevice^ jpegDevice = gcnew(JpegDevice)(resolution);
char imagePath[_MAX_PATH];
for (int i = 1; i <= pdfFile->Pages->Count; ++i)
{
System::String^ strImagePath;
strImagePath = strImagePath->Format(“C:\Users\Administrator\Desktop\第{0}页.jpeg”, i);
FileStream^ imageStream = gcnew(FileStream)(strImagePath, FileMode::Create);
jpegDevice->Process(pdfFile->Pages[i], imageStream);
imageStream->Close();
}
}

@SalesDhorde

我们已在内部问题跟踪系统中打开以下新票证,并将根据 Free Support Policies 中提到的条款提供修复。

问题 ID:PDFNET-56171

如果您需要优先支持,以及直接联系我们的付费支持管理团队,您可以获取 Paid Support Services