1

如何将 .wmf“阿拉伯语”文件转换为 PDF?

我使用此代码

iTextSharp.text.Image img1 = ImgWMF.GetInstance(@"path.wmf");
Document pdfDoc = new Document(img1);
PdfWriter.GetInstance(pdfDoc, new FileStream(@"path.pdf", FileMode.Create));
pdfDoc.Open();
img1.SetAbsolutePosition(0, 0);
pdfDoc.Add(img1);
pdfDoc.Close();

但不幸的是,字母被“从左到右”翻转

使用 ITextSharp 将 Wmf 转换为 PDF

PS:我尝试了其他库和工具,但是PDF图像的质量太差了。

使用其他工具转换的 Wmf2pdf

4

1 回答 1

0

你可以用 iText7 和 pdfCalligraph 插件试试这个。这个插件增加了对阿拉伯语脚本的支持。

于 2017-04-05T10:20:27.717 回答