日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

aspose word copy 获取某页的内容_6月已至,Aspose.Words又双叒叕更新到v20.6!PDF版本1.5标记过时...

發(fā)布時(shí)間:2025/4/16 编程问答 40 豆豆
生活随笔 收集整理的這篇文章主要介紹了 aspose word copy 获取某页的内容_6月已至,Aspose.Words又双叒叕更新到v20.6!PDF版本1.5标记过时... 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

六月已至,.NET版Aspose.Words也為大家?guī)砹?月的新版本!Aspose.Words for .Net是一種高級Word文檔處理API,用于執(zhí)行各種文檔管理和操作任務(wù)。API支持生成,修改,轉(zhuǎn)換,呈現(xiàn)和打印文檔,而無需在跨平臺應(yīng)用程序中直接使用Microsoft Word。

主要特點(diǎn)如下:

  • Font.EmphasisMark向公眾公開
  • 添加了新的公共屬性ImportFormatOptions.IgnoreHeaderFooter
  • 引入了MarkdownSaveOptions類
  • 提供了用于控制LINQ Reporting Engine的JSON簡單值識別的選項(xiàng)

>>你可以點(diǎn)擊文末“了解更多”下載Aspose.Words for .NET v20.6測試體驗(yàn)

具體更新內(nèi)容

WORDSNET-13983 添加功能以支持“標(biāo)記上的強(qiáng)調(diào)”字體設(shè)置 新功能

WORDSNET-19976 字體嵌入效果很好,但是符號未正確保存到PDF 新功能

WORDSNET-20513 檢查Aspose.Words for .NET如何與.NET 5.0一起使用 新功能

WORDSNET-20488 LINQ Reporting Engine-提供一種使用JsonDataSource的準(zhǔn)確格式解析日期時(shí)間值的方法 新功能

WORDSNET-19979 LINQ Reporting Engine-提供一種模式,可根據(jù)JSON表示法本身確定JSON簡單值的類型 新功能

WORDSNET-20297 添加使用SaveOptions創(chuàng)建MarkdownSaveOptions的功能 新功能

WORDSNET-20491 加載PDF時(shí)發(fā)生System.IO.FileLoadException 增強(qiáng)功能

WORDSNET-20492 PDF到Word的轉(zhuǎn)換,有時(shí)在新頁面上重復(fù)行 增強(qiáng)功能

公共API更改

①添加了新的公共類MarkdownSaveOptions

/// /// Class to specify additional options when saving a document into the format./// public class MarkdownSaveOptions : TxtSaveOptionsBase

暫時(shí)只有以下幾個(gè)公共API:

/// /// Specifies the format in which the document will be saved if this save options object is used./// Can only be ./// public override SaveFormat SaveFormat

注意,將TxtSaveOptionsBase.PreserveTableLayout移至TxtSaveOptions.PreserveTableLayout:

/// /// Specifies whether the program should attempt to preserve layout of tables when saving in the plain text format./// The default value is false./// public bool PreserveTableLayout

用例。說明如何創(chuàng)建和使用MarkdownSaveOptions對象:

DocumentBuilder builder = new DocumentBuilder();builder.Writeln("Some text!"); MarkdownSaveOptions saveOptions = (MarkdownSaveOptions)SaveOptions.CreateSaveOptions(SaveFormat.Markdown);builder.Document.Save("TestDocument.md", saveOptions);

②添加了新的公共屬性Font.EmphasisMark

/// /// Gets or sets the emphasis mark applied to this formatting./// public EmphasisMark EmphasisMark

強(qiáng)調(diào)標(biāo)記是一個(gè)附加字符,它在下面的枚舉中指定的主字符字形之上或之下呈現(xiàn)。

/// /// Specifies possible types of emphasis mark./// /// /// Names borrowed from https://docs.microsoft.com/en-us/dotnet/api/microsoft.office.interop.word.wdemphasismark?view=word-pia/// public enum EmphasisMark{????/// ????/// No emphasis mark.????/// ????None = 0x00,??????/// ????/// Emphasis mark is a solid black circle displayed above text.????/// ????OverSolidCircle = 0x01,??????/// ????/// Emphasis mark is a comma character displayed above text.????/// ????OverComma = 0x02,??????/// ????/// Emphasis mark is an empty white circle displayed above text.????/// ????OverWhiteCircle = 0x03,??????/// ????/// Emphasis mark is a solid black circle displayed below text.????/// ????UnderSolidCircle = 0x04,}

用例。說明如何通過DocumentBuilder設(shè)置Font.EmphasisMark:

Document document = new Document();DocumentBuilder builder = new DocumentBuilder(document); builder.Font.EmphasisMark = EmphasisMark.UnderSolidCircle; builder.Write("Emphasis text");builder.Writeln();builder.Font.ClearFormatting();builder.Write("Simple text"); document.Save(savePath, saveOptions);

③添加了新的公共屬性ImportFormatOptions.IgnoreHeaderFooter

/// /// Gets or sets a boolean value that specifies that source formatting of headers/footers content ignored/// if ImportFormatMode.KeepSourceFormatting mode is used./// The default value is true.///

默認(rèn)情況下,保留Word的行為是對的。用例:

Document dstDocument = new Document(dstDocumentPath);Document srcDocument = new Document(srcDocumentPath); ImportFormatOptions importFormatOptions = new ImportFormatOptions();importFormatOptions.IgnoreHeaderFooter = false; dstDocument.AppendDocument(srcDocument, ImportFormatMode.KeepSourceFormatting, importFormatOptions);;

④添加了新的公共屬性MarkdownSaveOptions.TableContentAlignment

/// /// Gets or sets a value that specifies how to align contents in tables/// when exporting into the format./// The default value is . /// public TableContentAlignment TableContentAlignment { get; set; }

此外,還添加了一個(gè)新的公共枚舉:

/// /// Allows to specify the alignment of the content of the table to be used when exporting into Markdown format./// public enum TableContentAlignment{ /// /// The alignment will be taken from the first paragraph in corresponding table column. /// Auto, /// /// The content of tables will be aligned to the Left. /// Left, /// /// The content of tables will be aligned to the Center. /// Center, /// /// The content of tables will be aligned to the Right. /// Right}

用例。說明導(dǎo)出到Markdown時(shí)如何在表格內(nèi)對齊內(nèi)容:

MarkdownSaveOptions saveOptions = new MarkdownSaveOptions();// Makes all paragraphs inside table to be aligned to Left. saveOptions.TableContentAlignment = TableContentAlignment.Left;builder.Document.Save("left.md", saveOptions); // Makes all paragraphs inside table to be aligned to Right. saveOptions.TableContentAlignment = TableContentAlignment.Right;builder.Document.Save("right.md", saveOptions); // Makes all paragraphs inside table to be aligned to Center. saveOptions.TableContentAlignment = TableContentAlignment.Center;builder.Document.Save("center.md", saveOptions); // Makes all paragraphs inside table to be aligned automatically.// The alignment in this case will be taken from the first paragraph in corresponding table column.saveOptions.TableContentAlignment = TableContentAlignment.Auto;builder.Document.Save("auto.md", saveOptions);

如果您有任何疑問或需求,請隨時(shí)加入Aspose技術(shù)交流群(642018183),我們很高興為您提供查詢和咨詢。

總結(jié)

以上是生活随笔為你收集整理的aspose word copy 获取某页的内容_6月已至,Aspose.Words又双叒叕更新到v20.6!PDF版本1.5标记过时...的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。

主站蜘蛛池模板: 中文乱码人妻一区二区三区视频 | 黑人操欧美人 | 日本欧美一区二区 | 日本性xxxxx 免费毛片视频网站 | 大片视频免费观看视频 | 在线爱情大片免费观看大全 | 欧美精品在线视频 | www.av色| 性开放的欧美大片 | 亚洲影院一区二区三区 | 国产高清网站 | 成人国产精品一区二区 | 久久久久五月 | 水密桃av| 欧美日韩中文字幕 | 天天色天天爽 | 国产特黄大片aaaa毛片 | 亚洲av成人片无码 | 一级福利视频 | 在线观看亚洲欧美 | 人人爱爱人人 | 啄木乌欧美一区二区三区 | 荫道bbwbbb高潮潮喷 | 国内偷拍av| 日本不卡一区在线观看 | 97超视频 | 51精品 | 成人午夜影视 | 狼色网 | 国产一级色| 国产有码 | 国产成人精品在线播放 | 在线观看亚洲大片短视频 | 亚洲国产日韩一区 | 久久99激情 | 网友自拍咪咪爱 | 免费在线观看不卡av | 日韩视频一区二区三区在线播放免费观看 | 韩国一级淫片 | 亚洲色图14p | 激情xxx | 黄色一及片 | 国产精品亚洲αv天堂无码 伊人性视频 | 一卡二卡精品 | 伊人称影院 | 欧美午夜一区二区 | 午夜大片 | 亚洲综合成人亚洲 | 亚洲一区欧美一区 | 91天堂在线视频 | 国产精品乱码一区二区 | 午夜精品久久久久久久99黑人 | 男男一级淫片免费播放 | 亚洲午夜精品在线观看 | 蜜桃视频一区二区 | 好色先生tv官网 | 综合久久久久久 | 国产二区电影 | 国产免费又粗又猛又爽 | 毛利兰被扒开腿做同人漫画 | 成人免费毛片果冻 | 伊人9| 日韩av资源网 | 在线免费观看视频你懂的 | 亚洲aⅴ乱码精品成人区 | 乱lun合集男男高h | 丰满人妻一区二区三区精品高清 | 暖暖免费观看日本版 | 一区二区中文字幕在线观看 | 欧美日韩高清在线 | 久久精品欧美一区二区三区麻豆 | 国产中文字幕一区二区三区 | 免费毛片软件 | 日韩精品麻豆 | 日日射天天操 | 欧美成人一区在线观看 | 精品成人免费视频 | 国产精品美乳在线观看 | 国产夫妻性爱视频 | 国产一级二级视频 | 青青草原av在线 | 超碰97在线看 | 国产精品theporn动漫 | 日本一区二区网站 | 国产日韩中文 | 国产一区二区三区欧美 | 免费在线中文字幕 | 国模私拍视频在线 | 美梦视频大全在线观看高清 | 超碰按摩| 夜夜狠 | 用力使劲高潮了888av | jlzzjlzz亚洲日本少妇 | 丁香一区二区三区 | 欧美狠狠| 天天草夜夜操 | 日本毛片网站 | 亚洲av成人精品一区二区三区 | 中文字幕av一区二区 |