如何将波斯文字转换为pdf [英] how can I convert persian text to pdf
本文介绍了如何将波斯文字转换为pdf的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好,我想将波斯文字转换为pdf,但我不能,我使用了一些dll,但所有波斯文字都存在问题.
hello, I want to convert persian text to pdf, but I couldn''t, I use some dll but all of them have problem with persian text.
推荐答案
如果可以使用MS Word Introp
服务,请使用以下代码(当然是在打开word应用程序并将其填充所需的文本之后):
If you can work withMS Word Introp
services then use this code (of course after opening word application and filling it with desired texts):
wordApp.ActiveDocument.ExportAsFixedFormat(OutputFileName:@"C:\report.pdf"
, ExportFormat:WdExportFormat.wdExportFormatPDF , OpenAfterExport:true
, OptimizeFor:WdExportOptimizeFor.wdExportOptimizeForPrint
, Range:WdExportRange.wdExportAllDocument,
From:1, To:1, Item:WdExportItem.wdExportDocumentContent,
IncludeDocProps:true, KeepIRM:true,
CreateBookmarks: WdExportCreateBookmarks.wdExportCreateNoBookmarks ,
DocStructureTags:true, BitmapMissingFonts:true, UseISO19005_1:false);
此功能文档:
http://msdn.microsoft.com/en-us/library/bb256835%28v = office.12%29.aspx [ ^ ]
即使使用波斯语文字,它也一样具有魅力.
希望对您有所帮助.
This function documentation :
http://msdn.microsoft.com/en-us/library/bb256835%28v=office.12%29.aspx[^]
It works like a charm even with Persian text.
Hope it helps.
这篇关于如何将波斯文字转换为pdf的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文