• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Get/Set First Slide Number & Improved Animations Support in Presentations using Java

 
Ranch Hand
Posts: 714
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What’s new in this release?

The long awaited version of Aspose.Slides for Java 15.11.0 . This release comes with the improved support for the animations in a presentation. We have introduced the support for setting and getting the first slide number by using newly added methods to Presentation class. The methods getFirstSlideNumber() and setFirstSlideNumber() can be used to get or set the first slide number. When a new first slide number value is specified all slide numbers are recalculated. The issues related to thumbnail generation which were reported for missing charts, missing text or misplaced contents have been fixed in this release. The slide rendering to SVG as well BMP image format for certain presentation decks with incurring issues have also been resolved. Support for setting the animations on slides and shapes, has also been improved in this release. The presentation access and saving issues have been rectified for many presentation decks that earlier resulted in exceptions including PptxReadException, ArgumentException , InvalidStringException and UnknownFileFormat in previous releases. We have also enhanced the presentation rendering to HTML and PDF in this release for charts, text and SmartArt shapes. Many chart rendering issues including missing or improper chart legends, chart categories and axes have been rectified. The issues related extraction of some document properties including Creation Date and Last Save Time have also been addressed. Some important enhancement & bug fixes included in this release are given below

- PDF rendered incorrectly
- Wrong text underline type returned for text
- Setting text underline color not working
- Creation Date and Last Save Time fields are not extracted correctly
- Shape to BMP thumbnail is not working
- Incorrect text on presentation load and save
- Incorrect chart legend displayed
- PptxReadException thrown on loading pptx
- SlideSizeType.Custom property is not working
- License is disabled message while setting the license
- Image (Jpeg) is improperly rendered in generated thumbnail
- Blank html generated from presentation
- PptxReadException thrown on loading pptx
- writeAsSvg creates incorrect text
- writeAsSvg creates incorrect svg files
- writeAsSvg method loses background image.
- Text indentation lost in generated thumbnail
- The text is improperly rendered in generated PDF
- AnimationSettings is missing in new Aspose.Slides for Java Unified API
- Fonts are not rendered from HTML to presentation
- Invalid String exception on accessing presentaiton
- Unknown file format exception on generating PDF

Newly added documentation pages and articles

Some new tips and articles have now been added into Aspose.Slides for Java documentation that may guide you briefly how to use Aspose.Slides for performing different tasks like the followings.

- Setting the Slide Number
- Exporting media files into html file

Overview: Aspose.Slides for Java

Aspose.Slides is a Java component to create, read, write and modify a PowerPoint document without using Microsoft PowerPoint. It supports PHP applications and provides all advanced features for managing presentations, slides, shapes, tables and supports PPT, POT, POS PowerPoint formats. Now you can add, access, copy, clone, edit and delete slides in your presentations. It also supports audio & video frames, adding pictures, text frames and saving presentations as streams or SVG format.

More about Aspose.Slides for Java

- Homepage of Aspose.Slides for Java
- Download Aspose.Slides for Java
- Online documentation of Aspose.Slides for Java

Contact Information

Aspose Pty Ltd
Suite 163, 79 Longueville Road
Lane Cove, NSW, 2066
Australia
Aspose - Your File Format Experts
sales@aspose.com
Phone: 888.277.6734
Fax: 866.810.9465
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
package pk.szab.edu.dao;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.Properties;

import javax.servlet.ServletContext;


public class Dal {

@Override
protected Object clone() throws CloneNotSupportedException {
return null;


}

private static Connection connection = null;

public static Connection getConnection(ServletContext context) {
if (connection != null)
return connection;
else {
try {

Properties prop = new Properties();
InputStream inputStream = Dal.class.getClassLoader().getResourceAsStream("db.properties");
try {
prop.load(inputStream);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
String driver = prop.getProperty("driver");
String url = prop.getProperty("url");
String user = prop.getProperty("user");
String password = prop.getProperty("password");
Class.forName(driver);
connection = DriverManager.getConnection(url, user, password);
}
catch(ClassNotFoundException e){
e.printStackTrace();
} catch(SQLException e){

}


}
return connection; }
}







Hello i wrote this code to make a connection. here i have overridden the clone method but i also want to avoid it. how should i do that?
 
reply
    Bookmark Topic Watch Topic
  • New Topic