2016-05-08 156 views
0

我有一個RTF文件作爲這個圖象 enter image description here轉換RTF爲JPEG

我從RTF使用GemBox部件

DocumentModel document = new DocumentModel(); 
     document = DocumentModel.Load("1.rtf"); 
     document.Save("Convert.Jpeg"); 

然而轉換爲JPEG與此代碼中,輸出文件未保存原始列witdh(見圖片) enter image description here

+0

您可以使用[此鏈接](http://www.gemboxsoftware.com/support-center/new-ticket)並向我們提交支持憑單(GemBox軟件支持)並附上「1.rtf」文件到你的機票。我們會重現您的問題並進行調查。 –

回答

0

您應該使用AutoFit功能 Here some example from docs

+0

tnks但這個示例是Excel文件 –

+0

這種方式嘗試使用本指南與'PreferredWidth' http://www.gemboxsoftware.com/SampleExplorer/Document/Table/TableFormatting?tab=cs –

+0

我nead查找表和foreach表,但我不能找到文件上的表 –