原創|產品更新|編輯:李顯亮|2021-06-17 10:30:41.647|閱讀 327 次
概述:Spire.Office 6.6已發布。本次更新帶來一些新的功能,比如:Spire.PDF 支持轉換 PDF 為透明背景的圖片,同時還支持PDF簽名添加時間戳時設置用戶名和密碼;Spire.XLS支持轉換 Excel 到 PDF 時指定字體目錄;Spire.Doc 支持添加跨整個頁面的橫線等等。
# 界面/圖表報表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
你在尋找支持在.NET中用編程方法處理各類格式文檔的API嗎?好巧,.NET版企業級文檔管理組合套包Spire.Office 2020全新上線!Word、Excel、PPT、PDF、條形碼等格式一網打盡。
目前,Spire.Office for .NET v6.6.0 2021年第六版現已正式發布。本次更新帶來一些新的功能,比如:Spire.PDF 支持轉換 PDF 為透明背景的圖片,同時還支持PDF簽名添加時間戳時設置用戶名和密碼;Spire.XLS支持轉換 Excel 到 PDF 時指定字體目錄;Spire.Doc 支持添加跨整個頁面的橫線等等。同時,該版本還修復了大量已知問題。點擊下方按鈕即可下載試用↓↓↓
免費下載Spire.Office for .NET v6.6.0
新功能及問題修復詳情,請參閱如下內容。
新功能:
PdfDocument doc = new PdfDocument(); doc.LoadFromFile("input.pdf"); doc.ConvertOptions.SetPdfToImageOptions(0); Image image = doc.SaveAsImage(0); image.Save("output.png", ImageFormat.Png);
static void Main(string[] args) { X509Certificate2 x509 = new X509Certificate2(inputFile_pfx, password); PdfDocument doc = new PdfDocument(); doc.LoadFromFile(inputFile); PdfPKCS7Formatter formatter = new PdfPKCS7Formatter(x509, false); formatter.TimestampService = new TSAHttpService("http://time.certum.pl"); PdfOrdinarySignatureMaker signatureMaker = new PdfOrdinarySignatureMaker(doc, formatter); IPdfSignatureAppearance signatureAppearance = new PdfCustomSignatureAppearance(); signatureMaker.MakeSignature("sign", doc.Pages[0], 100, 100, 100, 100, signatureAppearance); doc.SaveToFile(outputFile, FileFormat.PDF); doc.Close(); } public class PdfCustomSignatureAppearance : IPdfSignatureAppearance { public void Generate(PdfCanvas g) { float fontSize = 10; PdfTrueTypeFont font = new PdfTrueTypeFont(new Font("Arial", fontSize), true); g.DrawString("AAAAAAAAAAA", font, PdfBrushes.Red, new PointF(0, 0)); } }
string url = "http://test1.tsa.cn/tsa"; signature.ConfigureTimestamp(url, "tsademo", "tsademo");
doc.LoadFromSvg(Stream stream);
問題修復:
新功能:
sheet.GetColumnIsHide(columnIndex) sheet.GetRowIsHide(rowIndex)
workbook.CustomFontFileDirectory = new string[] { "./Data/Font" };
問題修復:
新功能:
Document doc = new Document(); Section section = doc.AddSection(); section.AddParagraph().AppendHorizonalLine(); doc.SaveToFile("result.docx", FileFormat.Docx);
問題修復:
問題修復:
問題修復:
問題修復:
本站文章除注明轉載外,均為本站原創或翻譯。歡迎任何形式的轉載,但請務必注明出處、不得修改原文相關鏈接,如果存在內容上的異議請郵件反饋至chenjj@fc6vip.cn