xiewei123

1.使用NuGet添加 Spire.Doc

2.使用方式

Document document = new Document();

document.LoadFromFile(documentPath);

//参数解释为 pageIndex, pageCount, ImageType

Image[] image = document.SaveToImages(0, document.PageCount, ImageType.Metafile);

//可通过循环 image数组将图片保存到指定位置

//实例代码

for (int i = 0; i < image.Length; i++)
{

  //保存路径,保存的图片格式
  image[i].Save(path, System.Drawing.Imaging.ImageFormat.Png);

}

 

分类:

技术点:

相关文章:

  • 2021-07-30
  • 2022-02-08
  • 2022-12-23
  • 2021-04-25
  • 2021-10-27
  • 2021-08-26
  • 2021-07-23
  • 2022-03-07
猜你喜欢
  • 2021-11-19
  • 2021-12-11
  • 2021-12-13
  • 2021-07-22
  • 2022-12-23
  • 2022-01-14
  • 2022-12-23
相关资源
相似解决方案