原創(chuàng)|產(chǎn)品更新|編輯:龔雪|2016-07-01 15:52:40.000|閱讀 359 次
概述:經(jīng)典幻燈片管理控件Aspose.Slides重磅更新,基于最新技術(shù),修復(fù)近百Bug,讓您的演示更加精彩!
# 界面/圖表報表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
核心 | 概述 | 類別 |
---|---|---|
SLIDESNET-37408 | 更換字體的問題 | 調(diào)查 |
SLIDESNET-37395 | 支持在PDF里渲染隱藏的幻燈片 | 特色 |
SLIDESNET-37193 | 支持為幻燈片添加五角形 | 特色 |
SLIDESNET-35693 | 支持添加圖片標(biāo)題符號 | 特色 |
SLIDESNET-33272 | Pptx的圖片標(biāo)題符號 | 特色 |
SLIDESNET-37488 | 超鏈接不是從演示中提取的 | Bug |
SLIDESNET-37477 | 訪問演示時PPT讀取異常 | Bug |
SLIDESNET-37468 | 無效的操作異常:在創(chuàng)建有效的部分格式時,顏色的問題還未解決 | Bug |
其他55個改進 | 單擊訪問查看>>> | Bug |
這個屬性代表了在段落中作為符號使用的圖片。
代碼片段:
using (Presentation pres = new Presentation()) { //Accessing the first slide ISlide slide = pres.Slides[0]; //Instantiate the image for bullets Image img = new Bitmap("bullet.png"); IPPImage imgx = pres.Images.AddImage(img); //Adding and accessing Autoshape IAutoShape aShp = slide.Shapes.AddAutoShape(ShapeType.Rectangle, 200, 200, 400, 200); //Accessing the text frame of created autoshape ITextFrame txtFrm = aShp.TextFrame; //Removing the default exisiting paragraph txtFrm.Paragraphs.RemoveAt(0); //Creating new paragraph Paragraph para = new Paragraph(); para.Text = "Welcome to Aspose.Slides"; //Setting paragraph bullet style and image para.ParagraphFormat.Bullet.Type = BulletType.Picture; para.ParagraphFormat.Bullet.Picture.Image = imgx; //Setting Bullet Height para.ParagraphFormat.Bullet.Height = 100; //Adding Paragraph to text frame txtFrm.Paragraphs.Add(para); //Writing the presentation as a PPTX file pres.Save("Bullet.pptx", SaveFormat.Pptx); //Writing the presentation as a PPT file pres.Save("Bullet.ppt", SaveFormat.Ppt); //Writing the presentation as a ODP file pres.Save("Bullet.odp", SaveFormat.Odp);
這個屬性規(guī)定了輸出的文件中是否包含隱藏幻燈片,默認值始終是“否”。
代碼示例:
using (Presentation pres = new Presentation("Presentation.pptx")) { //Instantiate the PdfOptions class PdfOptions pdfOptions = new PdfOptions(); //Specify that the generated document should include hidden slides pdfOptions.ShowHiddenSlides = true; //Save the presentation to PDF with specified options pres.Save("Presentation.pdf", SaveFormat.Pdf, pdfOptions); }
核心 | 概述 | 類別 |
---|---|---|
SLIDESJAVA-35479 | Bcprov的哪個版本是由Aspose.Slides for Java和 Aspose.Cells支持的 | 調(diào)查 |
SLIDESJAVA-35454 | 改變現(xiàn)有VBA模塊的功能和底層 | 調(diào)查 |
SLIDESJAVA-35446 | 研究回歸測試在測試服務(wù)器上的Aspose Slides項目中的失敗 | 調(diào)查 |
SLIDESJAVA-35438 | 將演示輸出為PDF時,默認的圖片格式及其品質(zhì) | 調(diào)查 |
SLIDESJAVA-35420 | 為某些文本提取對齊值 | 調(diào)查 |
SLIDESJAVA-35376 | Aspose.Slides字體加載的機制 | 調(diào)查 |
SLIDESJAVA-34229 | 使用像Windows Service這種基于Aspose.Slides的程序時的堆棧溢出異常 | 特色 |
SLIDESJAVA-35359 | 支持在PDF中渲染隱藏的幻燈片 | 特色 |
SLIDESJAVA-35284 | 在一個應(yīng)用程序中,僅加載一次字體 | 特色 |
SLIDESNET-37193 | 支持為幻燈片添加五角形 | 特色 |
SLIDESNET-35693 | 支持添加圖片標(biāo)題符號 | 特色 |
SLIDESNET-33272 | Pptx的圖片標(biāo)題符號 | 特色 |
其他48個改進 | 單擊訪問查看> | Bug |
“Bouncy Castle Crypto API”庫已更新至1.54版,Aspose.Slides for Java 16.5.0就是基于最新版的該庫進行升級的。
這種方法代表了在段落中作為符號使用的圖片
代碼片段:
Presentation pres = new Presentation(); try { //Accessing the first slide ISlide slide = pres.getSlides().get_Item(0); //Instantiate the image for bullets BufferedImage img = null; try { img = ImageIO.read(new File("bullet.jpg")); } catch (IOException e) { } IPPImage imgx = pres.getImages().addImage(img); //Adding and accessing Autoshape IAutoShape aShp = slide.getShapes().addAutoShape(ShapeType.Rectangle, 200, 200, 400, 200); //Accessing the text frame of created autoshape ITextFrame txtFrm = aShp.getTextFrame(); //Removing the default exisiting paragraph txtFrm.getParagraphs().removeAt(0); //Creating new paragraph Paragraph para = new Paragraph(); para.setText("Welcome to Aspose.Slides"); //Setting paragraph bullet style and image para.getParagraphFormat().getBullet().setType(BulletType.Picture); para.getParagraphFormat().getBullet().getPicture().setImage(imgx); //Setting Bullet Height para.getParagraphFormat().getBullet().setHeight(100); //Adding Paragraph to text frame txtFrm.getParagraphs().add(para); //Writing the presentation as a PPTX file pres.save("Bullet.pptx", SaveFormat.Pptx); //Writing the presentation as a PPT file pres.save("Bullet.ppt", SaveFormat.Ppt); //Writing the presentation as a ODP file pres.save("Bullet.odp", SaveFormat.Odp); } finally { if(pres != null) pres.dispose(); }
這種方法規(guī)定了輸出的文件中是否包含隱藏幻燈片,默認值始終是“否”。
代碼示例:
Presentation pres = new Presentation("Presentation.pptx"); try { //Instantiate the PdfOptions class PdfOptions pdfOptions = new PdfOptions(); //Specify that the generated document should include hidden slides pdfOptions.setShowHiddenSlides(true); //Save the presentation to PDF with specified options pres.save("Presentation.pdf", SaveFormat.Pdf, pdfOptions); } finally { if(pres != null) pres.dispose(); }
本站文章除注明轉(zhuǎn)載外,均為本站原創(chuàng)或翻譯。歡迎任何形式的轉(zhuǎn)載,但請務(wù)必注明出處、不得修改原文相關(guān)鏈接,如果存在內(nèi)容上的異議請郵件反饋至chenjj@fc6vip.cn
文章轉(zhuǎn)載自:慧都控件網(wǎng)