2017-04-05 131 views
1

如何将.wmf“阿拉伯语言”文件转换为PDF?如何将.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(); 

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

Converted Wmf to PDF using ITextSharp

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

Wmf2pdf converted using another tools

回答

0

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

+0

谢谢! 我解决了我的问题与另一个免费库。 – Ameed

+0

你使用了哪一个? – COeDev

+0

我发现免费的DLL项目与源代码,我改变了代码,使其运行,因为我想 – Ameed