原創|產品更新|編輯:李顯亮|2020-04-15 10:43:20.200|閱讀 202 次
概述:PDF文件格式轉換處理控件Spire.PDF Java和.NET版4月同步更新,一起來看看有哪些新增功能吧!
# 界面/圖表報表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
近日,我們更新了.NET平臺Spire.PDF v6.4.4 2020年4月更新,此版本主要解決了在打印和轉換pdf文檔時出現的一些問題。
與此同時Java平臺Spire.PDF迎來了4月的又一次更新,該版本包含了許多新功能,比如它支持展開指定書簽及獲取RadioButton域的樣式。除此之外,一些在操作PDF文檔時出現的問題也得以解決,具體更新情況如下:
Spire.PDF For .NET更新內容
Bug修復
Spire.PDF For Java更新內容
新功能
//創建一支筆 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 document pdf.saveToFile(outputFile);
String inputFile = "data/EmbedSoundFile.pdf"; String inputFile_1 = "data/Music.wav"; String outputFile = "output/EmbedSoundFile.pdf"; //create a pdf document PdfDocument doc = new PdfDocument(); //load file from disk doc.loadFromFile(inputFile); //get the first page PdfPageBase page = doc.getPages().get(0); //create a sound action PdfSoundAction 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 opened doc.setAfterOpenAction(soundAction); //save the document doc.saveToFile(outputFile);
PdfPageBase page = pdf.getPages().get(0); page.SetTabOrder(TabOrder.Structure);
Bug修復
本站文章除注明轉載外,均為本站原創或翻譯。歡迎任何形式的轉載,但請務必注明出處、不得修改原文相關鏈接,如果存在內容上的異議請郵件反饋至chenjj@fc6vip.cn