当前位置: 首页 > news >正文

甘肃党风廉政建设办网站获客软件排名前十名

甘肃党风廉政建设办网站,获客软件排名前十名,沃尔玛网上超市,旅游网站建设案例分析Aspose.Words 是一种高级Word文档处理API,用于执行各种文档管理和操作任务。API支持生成,修改,转换,呈现和打印文档,而无需在跨平台应用程序中直接使用Microsoft Word。 Aspose API 支持流行文件格式处理,…

Aspose.Words 是一种高级Word文档处理API,用于执行各种文档管理和操作任务。API支持生成,修改,转换,呈现和打印文档,而无需在跨平台应用程序中直接使用Microsoft Word。

Aspose API 支持流行文件格式处理,并允许将各类文档导出或转换为固定布局文件格式和最常用的图像/多媒体格式。

将 XPS 转换为 PDF

Aspose.Page 允许文档转换。例如,您可以将 XPS 转换为 PDF。让我们试试转换的例子。

重要须知

// For complete examples and data files, please go to https://github.com/aspose-page/Aspose.Page-for-.NET
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_WorkingWithDocumentConversion();
// Initialize PDF output stream
using (System.IO.Stream pdfStream = System.IO.File.Open(dataDir + "input.xps", System.IO.FileMode.Create, System.IO.FileAccess.Write))
// Initialize XPS input stream
using (System.IO.Stream xpsStream = System.IO.File.Open(dataDir + "XPStoPDF.pdf", System.IO.FileMode.Open, System.IO.FileAccess.Read))
{
// Load XPS document form the stream
XpsDocument document = new XpsDocument(xpsStream, new XpsLoadOptions());
// or load XPS document directly from file. No xpsStream is needed then.
// XpsDocument document = new XpsDocument(inputFileName, new XpsLoadOptions());// Initialize options object with necessary parameters.
Aspose.Page.XPS.Presentation.Pdf.PdfSaveOptions options = new Aspose.Page.XPS.Presentation.Pdf.PdfSaveOptions()
{
JpegQualityLevel = 100,
ImageCompression = Aspose.Page.XPS.Presentation.Pdf.PdfImageCompression.Jpeg,
TextCompression = Aspose.Page.XPS.Presentation.Pdf.PdfTextCompression.Flate,
PageNumbers = new int[] { 1, 2, 6 }
};// Create rendering device for PDF format
Aspose.Page.XPS.Presentation.Pdf.PdfDevice device = new Aspose.Page.XPS.Presentation.Pdf.PdfDevice(pdfStream);document.Save(device, options);
// For complete examples and data files, please go to https://github.com/aspose-page/Aspose.Page-for-Java
// The path to the documents directory.
String dataDir = Utils.getDataDir();
// Initialize PDF output stream
FileOutputStream pdfStream = new FileOutputStream(dataDir + "XPStoPDF.pdf");// Load XPS document
XpsDocument document = new XpsDocument(dataDir + "input.xps");// Initialize options object with necessary parameters.
com.aspose.xps.rendering.PdfSaveOptions options = new com.aspose.xps.rendering.PdfSaveOptions();
options.setJpegQualityLevel(100);
options.setImageCompression(com.aspose.xps.rendering.PdfImageCompression.Jpeg);
options.setTextCompression(com.aspose.xps.rendering.PdfTextCompression.Flate);
options.setPageNumbers(new int[] { 1, 2, 6 });// Create rendering device for PDF format
com.aspose.xps.rendering.PdfDevice device = new com.aspose.xps.rendering.PdfDevice(pdfStream);document.save(device, options)

以上便是本篇文章的所有内容,要是您还有其他关于产品方面的问题,欢迎咨询我们

http://www.zhongyajixie.com/news/62009.html

相关文章:

  • lnmp wordpress在广州做seo找哪家公司
  • 开源php源码seo在线优化工具 si
  • 网站设计实例活动推广方案怎么写
  • 美国房产网站站长之家seo查询
  • 除了Joomla用什么做网站好北京seo推广外包
  • 动态网页与静态网页的区别seo排名专业公司
  • 公司网站建设重点内容互联网推广运营是干什么的
  • 宜兴市建设局官方网站微信管理助手
  • wordpress商城模板源码泰州网站建设优化
  • 简单网站制作软件对seo的认识和理解
  • 网站流量推广seo优化大公司排名
  • 做淘宝客网站必须备案吗seo自学网
  • 8u免费空间关键词推广优化排名品牌
  • wordpress主题 mxblogseo怎么优化软件
  • 不同域名一样的网站关键信息基础设施安全保护条例
  • 支付商城网站制作网站推广途径和推广要点
  • ashu wordpress盐城seo排名
  • 东莞东坑网站设计黑帽seo技巧
  • 青海西宁网站开发公司2023年新闻热点事件
  • 企业网站模板 简洁友情链接互换网站
  • 广告策划案南京seo按天计费
  • 网站制作代理加盟写软文
  • 乡土文化网站怎么做5118素材网站
  • 中小企业网络营销的发展现状佛山百度seo代理
  • 广州网站建设-信科分公司seo是什么意思
  • 做网站一般几个人网站产品怎么优化
  • 上海网站建设开发公百度网址浏览大全
  • 用cms做网站的缺点计算机基础培训机构
  • 帝国cms怎么做网站品牌运营中心
  • 万网域名网站建设怎样做竞价推广