• <menu id="w2i4a"></menu>
  • 首頁 > 慧問 > 頻道

    Aspose.Words 控件 word轉(zhuǎn)換成圖片[Aspose.Words for .NET]

    發(fā)表于2019-05-10 回復(fù):0 查看:3086  |  
    有的時候如果word文字太多的話轉(zhuǎn)換出來的圖片有部分文字會重疊在一起,還有一種情況顯示不全被截去一最后面一列文字。 if (fileType == "doc" || fileType == "docx") { try { Aspose.Words.Document doc = new Aspose.Words.Document(filePath); Aspose.Words.Saving.ImageSaveOptions iso = new Aspose.Words.Saving.ImageSaveOptions(Aspose.Words.SaveFormat.Png); iso.PageCount = doc.PageCount; iso.PageIndex = pageIndex; using (MemoryStream s = new MemoryStream()) { doc.Save(s, iso); return s.ToArray(); } } catch { return null; } }
    0個回答

    打破零回復(fù)...

    回復(fù)

    登錄 慧都網(wǎng)發(fā)表評論

    掃碼咨詢


    添加微信 立即咨詢

    電話咨詢

    客服熱線
    023-68661681

    TOP
    三级成人熟女影院,欧美午夜成人精品视频,亚洲国产成人乱色在线观看,色中色成人论坛 (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })();