文档开发工具Aspose.Wordsv20.9四大新功能演示

用户头像
北京/设计爱好者/4年前/134浏览
文档开发工具Aspose.Wordsv20.9四大新功能演示
用户头像
dasein58

文档开发工具Aspose.Wordsv20.9四大新功能演示

  二月已来,.NET版Aspose.Words也为大家带来了9月的新版本!Aspose.Words for .Net是一种高级Word文档处理API,用于执行各种文档管理和操作任务。API支持生成,修改,转换,呈现和打印文档,而无需在乐器培训平台应用程序中直接使用Microsoft Word。

  主要特点如下:

  公开了VbaReferenceCollection和相关类型实现了对加载 PDF 文档时脚注的支持。实现了元文件与EMF+容器的渲染。扩展了FormField字体格式化API。

  WORDSNET-20589 PDF到DOCX-脚注 新功能 WORDSNET522 允许整体上将字体格式应用于FormField 新功能 WORDSNET-20289 通过Words-HTML-Words往返传递正确的边框参数 新功能 WORDSNET-13678 提供一种从Word文档中删除模板引用的方法 新功能 WORDSNET-20986 RTF转换为DOCX后,“保留下一个”属性被更改 增强功能 WORDSNET-19977 Aspose.Words 20.2.0在Alpine Linux容器中不起作用 增强功能 WORDSNET-20868 加载RTF时出现UnsupportedFileFormatException 增强功能

  当前允许将字体格式整体应用于FormField。设置新的Font属性后,它们将对整个FormField(包括字段值)生效。下述用例整体说明如何将字体格式应用于FormField:

  Document doc=new Document("in.doc");

  doc.Range.FormFields[0].Font.Size=20;

  doc.Range.FormFields[0].Font.Color=Color.Red;

  doc.Save("out.doc");

  用例说明如何从VbaProject的引用集合中删除一些引用:

  public void Main()

  {

  Document doc=new Document("test.doc");

  // Find and remove the reference with some LibId path.

  const string brokenPath="brokenPath.dll";

  VbaReferenceCollection references=doc.VbaProject.References;

  for (int i=references.Count - 1; i >=0; i--)

  {

  VbaReference reference=doc.VbaProject.References[i];

  string path=GetLibIdPath(reference);

  if (path==brokenPath)

  references.RemoveAt(i);

  }

  doc.Save("NoBrokenRef.doc");

  }

  ////// Returns string representing LibId path of a specified reference.

  ///private static string GetLibIdPath(VbaReference reference)

  {

  switch (reference.Type)

  {

  case VbaReferenceType.Registered:

  case VbaReferenceType.Original:

  case VbaReferenceType.Control:

  return GetLibIdReferencePath(reference.LibId);

  case VbaReferenceTypeject:

  return GetLibIdProjectPath(reference.LibId);

  default:

  throw new ArgumentOutOfRangeException();

  }

  }

  ////// Returns path from a specified identifier of an Automation type library.

  ///////// Please see details for the syntax at [MS-OVBA], 2.1.1.8 LibidReference.

  ///private static string GetLibIdReferencePath(string libIdReference)

  {

  if (libIdReference !=null)

  {

  string[] refParts=libIdReference.Split('#');

  if (refParts.Length > 3)

  return refParts[3];

  }

  return "";

  }

  ////// Returns path from a specified identifier of an Automation type library.

  ///////// Please see details for the syntax at [MS-OVBA], 2.1.1.12 ProjectReference.

  ///private static string GetLibIdProjectPath(string libIdProject)

  {

  return (libIdProject !=null) ? libIdProject.Substring(3) : "";

  }



0
阅读原文
|
举报
|
收藏
分享
相关推荐
评论
用户头像
评论你的想法~
表情
喜欢TA的作品吗?喜欢就快来夸夸TA吧!
推荐素材
中秋佳节花好月圆
宠物纪念相册H5模板系列 · 温馨治愈系 · 三款主题
玫瑰
乐陶创意体验工坊标志设计
苏门答腊虎母子插画
中国风书法汉字字体设计其他
法治景观雕塑小品
国画水墨江南山水画装饰画电视背景墙装饰画
互联网金融理财产品人物矢量海报创意插画
我要奋斗
卡通兔子插画
love玫瑰花
恭王府建筑纹样图案设计
女生半身插画
彩灯_花灯_春节彩灯_春节花灯_马年彩灯_马年花灯
香盒包装设计矢量素材
头发1
风景油画印象派油画无框油画世界油画世界名画装饰画
原创插画-愚公移山
金融行业新媒体商业理财产品立体矢量海报
 中式花鸟墙纸 新中式壁画 花鸟装饰画 花鸟画
商务金融股票类金币白领扁平风插画矢量图
汉堡插画
木纹贴图设计师常用
炫光
你可能喜欢
相关收藏夹
地产VI
地产VI
地产VI
地产VI
大家都在看
登录注册