没有找到合适的产品?
联系客服协助选型:023-68661681
提供3000多款全球软件/控件产品
针对软件研发的各个阶段提供专业培训与技术咨询
根据客户需求提供定制化的软件开发服务
全球知名设计软件,显著提升设计质量
打造以经营为中心,实现生产过程透明化管理
帮助企业合理产能分配,提高资源利用率
快速打造数字化生产线,实现全流程追溯
生产过程精准追溯,满足企业合规要求
以六西格玛为理论基础,实现产品质量全数字化管理
通过大屏电子看板,实现车间透明化管理
对设备进行全生命周期管理,提高设备综合利用率
实现设备数据的实时采集与监控
利用数字化技术提升油气勘探的效率和成功率
钻井计划优化、实时监控和风险评估
提供业务洞察与决策支持实现数据驱动决策
原创|产品更新|编辑:龚雪|2015-05-07 11:10:54.000|阅读 474 次
概述:Aspose.Pdf for .NET 10.3.0较先前版本各项功能又有了进一步提升和优化,这使得该 API 在同类竞争者当中仍是一马当先。Aspose始终贯彻高标准,严要求,为的就是让开发人员能用最少的代码完成他们的需求!
# 界面/图表报表/文档/IDE等千款热门软控件火热销售中 >>
Aspose.Pdf for .NET 10.3.0较先前版本各项功能又有了进一步提升和优化,这使得该 API 在同类竞争者当中仍是一马当先。Aspose始终贯彻高标准,严要求,为的就是让开发人员能用最少的代码完成他们的需求!
aspose的另外一个API叫做 Aspose.Slides ,主要功能是创建和操控已有的MSPPT文件,还能够将PPT/PPTX文件转换成PDF文件,从而使得转换后的文件能够跨平台浏览,无需担心文档的布局和格式。 PDF能很好的保存源文件的原本的样子,所以用途和受众都很多。 近来,有很多客户反映需要增加PDF文件转换为PPTX文件的功能,Aspose.Pdf for .NET当然也不负所望,将这个功能实现了。要实现这个需求,只需要将PptxSaveOptions类实的对象实例化,将它作为第二个参数传递给Document.Save(. .)方法,详情请戳:Convert PDF to PPTX.
此外,还可以通过查看 Working with Document Conversion 抢先观看Aspose.Pdf for .NET.最新的一些转换功能。
// Load PDF document Aspose.Pdf.Document doc = new Aspose.Pdf.Document(@"C:\pdftest\IN_7664539.pdf"); // Instantiate PptxSaveOptions instance Aspose.Pdf.PptxSaveOptions pptx_save = new Aspose.Pdf.PptxSaveOptions(); // Save the output in PPTX format doc.Save("c:/pdftest/IN_7664539.pptx", pptx_save);
报刊杂志在同一个页面可以分好几栏,不像书本,文字段落左右两边铺陈。很多文档处理应用,比如 Microsoft Word 和Adobe Acrobat Writer 都允许用户在一个页面上创建多个栏目。现在Aspose.Pdf for .NET 也实现了PDF分栏功能,详情点击:Create Multi-Column PDF document
Document doc = new Document(); // specify the left margin info for the PDF file doc.PageInfo.Margin.Left = 40; // specify the Right margin info for the PDF file doc.PageInfo.Margin.Right = 40; Page page = doc.Pages.Add(); Aspose.Pdf.Drawing.Graph graph1 = new Aspose.Pdf.Drawing.Graph(500, 2); // Add the line to paraphraphs collection of section object page.Paragraphs.Add(graph1); //specify the coordinates for the line float[] posArr = new float[] { 1, 2, 500, 2 }; Aspose.Pdf.Drawing.Line l1 = new Aspose.Pdf.Drawing.Line(posArr); graph1.Shapes.Add(l1); //Create string variables with text containing html tags string s = "" + "< strong> How to Steer Clear of money scams " + ""; //Create text paragraphs containing HTML text HtmlFragment heading_text = new HtmlFragment(s); page.Paragraphs.Add(heading_text); Aspose.Pdf.FloatingBox box = new Aspose.Pdf.FloatingBox(); //Add four columns in the section box.ColumnInfo.ColumnCount = 2; //Set the spacing between the columns box.ColumnInfo.ColumnSpacing = "5"; box.ColumnInfo.ColumnWidths = "105 105"; TextFragment text1 = new TextFragment("By A Googler (The Official Google Blog)"); text1.TextState.FontSize = 8; text1.TextState.LineSpacing = 2; box.Paragraphs.Add(text1); text1.TextState.FontSize = 10; text1.TextState.FontStyle = FontStyles.Italic; // Create a graphs object to draw a line Aspose.Pdf.Drawing.Graph graph2 = new Aspose.Pdf.Drawing.Graph(50, 10); // specify the coordinates for the line float[] posArr2 = new float[] { 1, 10, 100, 10 }; Aspose.Pdf.Drawing.Line l2 = new Aspose.Pdf.Drawing.Line(posArr2); graph2.Shapes.Add(l2); // Add the line to paragraphs collection of section object box.Paragraphs.Add(graph2); TextFragment text2 = new TextFragment(@"Sed augue tortor, sodales id, luctus et, pulvinar ut, eros. Suspendisse vel dolor. Sed quam. Curabitur ut massa vitae eros euismod aliquam. Pellentesque sit amet elit. Vestibulum interdum pellentesque augue. Cras mollis arcu sit amet purus. Donec augue. Nam mollis tortor a elit. Nulla viverra nisl vel mauris. Vivamus sapien. nascetur ridiculus mus. Nam justo lorem, aliquam luctus, sodales et, semper sed, enim Nam justo lorem, aliquam luctus, sodales et,nAenean posuere ante ut neque. Morbi sollicitudin congue felis. Praesent turpis diam, iaculis sed, pharetra non, mollis ac, mauris. Phasellus nisi ipsum, pretium vitae, tempor sed, molestie eu, dui. Duis lacus purus, tristique ut, iaculis cursus, tincidunt vitae, risus. Sed commodo. *** sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nam justo lorem, aliquam luctus, sodales et, semper sed, enim Nam justo lorem, aliquam luctus, sodales et, semper sed, enim Nam justo lorem, aliquam luctus, sodales et, semper sed, enim nAenean posuere ante ut neque. Morbi sollicitudin congue felis. Praesent turpis diam, iaculis sed, pharetra non, mollis ac, mauris. Phasellus nisi ipsum, pretium vitae, tempor sed, molestie eu, dui. Duis lacus purus, tristique ut, iaculis cursus, tincidunt vitae, risus. Sed commodo. *** sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Sed urna. . Duis convallis ultrices nisi. Maecenas non ligula. Nunc nibh est, tincidunt in, placerat sit amet, vestibulum a, nulla. Praesent porttitor turpis eleifend ante. Morbi sodales.nAenean posuere ante ut neque. Morbi sollicitudin congue felis. Praesent turpis diam, iaculis sed, pharetra non, mollis ac, mauris. Phasellus nisi ipsum, pretium vitae, tempor sed, molestie eu, dui. Duis lacus purus, tristique ut, iaculis cursus, tincidunt vitae, risus. Sed commodo. *** sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Sed urna. . Duis convallis ultrices nisi. Maecenas non ligula. Nunc nibh est, tincidunt in, placerat sit amet, vestibulum a, nulla. Praesent porttitor turpis eleifend ante. Morbi sodales."); box.Paragraphs.Add(text2); page.Paragraphs.Add(box); string outFile = "c:/pdftest/Muli-Column.pdf"; //Save the Pdf doc.Save(outFile);
PDF/A格式的文件支持添加附件了。按照 Adobe Community post, PDF/A_3a 合规格式支持添加任意文件类型为附件。详情请看: Convert PDF File to PDF-A
// instantiate Document instance to load existing file Aspose.Pdf.Document doc = new Document("c:/colored.pdf"); //setup new file to be added as attachment FileSpecification fileSpecification = new FileSpecification("c:/input.jpg", "Image file"); //add attachment to document's attachment collection doc.EmbeddedFiles.Add(fileSpecification); // perform conversion to PDF/A_3a so attachment is included in resultnat file doc.Convert("c:/Log.txt", Aspose.Pdf.PdfFormat.PDF_A_3A, ConvertErrorAction.Delete); // save resultant file doc.Save("c:/Converted.pdf");
Aspose.Pdf for .NET 支持在创建或操控PDF文件内容时用 Custom/TrueType 字体。这样文件内容显示就使用除系统默认字体以外的字体。 从本次版本开始,新增支持 Open Type Fonts。详细使用方法请看:How to use OTF fonts.
//Create new document instance Document pdfDocument = new Document(); // add page to pages collection of PDF file Aspose.Pdf.Page page = pdfDocument.Pages.Add(); // create TextFragment instnace with sample text TextFragment fragment = new TextFragment("Sample Text in OTF font"); // find font inside system font directory //fragment.TextState.Font = FontRepository.FindFont("HelveticaNeueLT Pro 45 Lt"); // or you can even specify the path of OTF font in system directory fragment.TextState.Font = FontRepository.OpenFont(@"E:\HelveticaNeueLTPro-Lt.otf"); // specify to emend font inside PDF file, so that its displayed properly, // even if specific font is not installed/present over target machine fragment.TextState.Font.IsEmbedded = true; // add TextFragment to paragraphs collection of Page instance page.Paragraphs.Add(fragment); // save resultant file pdfDocument.Save("c:/pdftest/OTF_Font_Tes.pdf");
除了上述的新功能和功能增强意外, PDF to HTML 和 HTML to PDF 的转换功能也有显著提升。在这些修复中,PCL to PDF, SVG to PDF, PDF to Excel, PDF to DOC, PDF to TIFF以及 TIFF to PDF 转换, PDF转换为PDF /A兼容的文件,文字替换, PDF 文件渲染为 XPS格式等功能也有完善和改进。慧都控件网欢迎下载使用Aspose.Pdf for .NET 10.3.0!
本站文章除注明转载外,均为本站原创或翻译。欢迎任何形式的转载,但请务必注明出处、不得修改原文相关链接,如果存在内容上的异议请邮件反馈至chenjj@evget.com
DevExpress WPF控件近期全新发布v24.2,此版本进一步升级了Spreadsheet(电子表格)组件的功能,欢迎下载最新版体验!
今天主要盘点一下JetBrains IDEs v2025.1发布的一些新功能,欢迎大家甄选适合的IDE体验!
ONLYOFFICE 与 Jira 集成的重大更新现已发布!从 4.0.0 版本开始,ONLYOFFICE 连接器允许您编辑 PDF 文件和表单、直接从编辑器创建新文件、可视化用户头像、在 Jira 平台内处理新文件格式等等。阅读本文,了解更多详情。
PC‑lint Plus 2025 Beta 3 全新上线,新增图形化界面 PC‑lint Plus View,助力 C/C++ 开发者高效查看、筛选、追踪并导出诊断结果。本文从界面功能、标准支持、编译器兼容性到压缩存档等方面展开分析,并提供各平台下载链接,助你快速体验这款专业级静态分析工具。
服务电话
重庆/ 023-68661681
华东/ 13452821722
华南/ 18100878085
华北/ 17347785263
客户支持
技术支持咨询服务
服务热线:400-700-1020
邮箱:sales@evget.com
关注我们
地址 : 重庆市九龙坡区火炬大道69号6幢
慧都科技 版权所有 Copyright 2003-
2025 渝ICP备12000582号-13 渝公网安备
50010702500608号