PDF管理控件Spire.PDF Java和.NET版4月同步上线!又增4大新功能 | 附下载

PDF文件格式转换处理控件Spire.PDF Java和.NET版4月同步更新,一起来看看有哪些新增功能吧!

近日,我们更新了.NET平台Spire.PDF v6.4.4 2020年4月更新,此版本主要解决了在打印和转换pdf文档时出现的一些问题。

与此同时Java平台Spire.PDF迎来了4月的又一次更新,该版本包含了许多新功能,比如它支持展开指定书签及获取RadioButton域的样式。除此之外,一些在操作PDF文档时出现的问题也得以解决,具体更新情况如下:


Spire.PDF For .NET更新内容

Bug修复

  • 修复了替换文本时应用程序引发ArgumentException的问题。
  • 修复了打印PDF时图章覆盖文本的问题。
  • 修复了使用不同密钥大小重新加密PDF失败的问题。
  • 修复了打印PDF时文本位置不正确的问题。
  • 修复了打印PDF时单词之间的空格丢失的问题。
  • 修复了将PDF转换为XPS时应用程序引发NullReferenceException的问题。

Spire.PDF For Java更新内容

新功能

  • 1 支持设置笔的划线样式。
    //创建一支笔PdfPen pen = new PdfPen(new PdfRGBColor(Color.red),3f);//设置破折 样式pen.setDashStyle(PdfDashStyle.Dash);
  • 支持嵌入声音文件。
    String inputFile = "data/CreatePdf3DAnnotation.u3d";String outputFile = "output/CreatePdf3DAnnotation.pdf";//Create a Pdf document.PdfDocument pdf = new PdfDocument();//Add a new page.PdfPageBase page = pdf.getPages().add();//Draw a rectangle on the page to define the canvas area for the 3D file.Rectangle rt = new Rectangle(0, 80, 200, 200);//Initialize a new object of Pdf3DAnnotation, load the .u3d file as 3D annotation.Pdf3DAnnotation annotation = new Pdf3DAnnotation(rt, inputFile);annotation.setActivation(new Pdf3DActivation());annotation.getActivation().setActivationMode(Pdf3DActivationMode.Page_Open);Pdf3DView View = new Pdf3DView();View.setBackground(new Pdf3DBackground(new PdfRGBColor(128,0,128)));View.setViewNodeName("3DAnnotation");View.setRenderMode(new Pdf3DRendermode(Pdf3DRenderStyle.Solid));View.setInternalName("3DAnnotation");View.setLightingScheme(new Pdf3DLighting());View.getLightingScheme().setStyle(Pdf3DLightingStyle.Day);//Set the 3D view mode for the annotation.annotation.getViews().add(View);//Add the annotation to Pdf.page.getAnnotationsWidget().add(annotation);//Save the documentpdf.saveToFile(outputFile);
  • 支持嵌入声音文件。
    String inputFile = "data/EmbedSoundFile.pdf";String inputFile_1 = "data/Music.wav";String outputFile = "output/EmbedSoundFile.pdf";//create a pdf documentPdfDocument doc = new PdfDocument();//load file from diskdoc.loadFromFile(inputFile);//get the first pagePdfPageBase page = doc.getPages().get(0);//create a sound actionPdfSoundAction soundAction = new PdfSoundAction(inputFile_1);soundAction.getSound().setBits(16);      soundAction.getSound().setChannels(PdfSoundChannels.Stereo);soundAction.getSound().setEncoding(PdfSoundEncoding.Signed);soundAction.setVolume(0.8f);soundAction.setRepeat(true);// set the sound action to be executed when the PDF document is openeddoc.setAfterOpenAction(soundAction);//save the documentdoc.saveToFile(outputFile);
  • 支持设置页面标签的顺序。
    PdfPageBase page = pdf.getPages().get(0);page.SetTabOrder(TabOrder.Structure);

Bug修复

  • 修复了删除图片失败的问题。
  • 修复了获取PDF文档缩放比例失败的问题。

还想要更多吗可以点击阅读【2019 · E-iceblue最新资源整合】查找需要的教程资源。
标签:

声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!

上一篇 2020年3月12日
下一篇 2020年3月12日

相关推荐

发表回复

登录后才能评论