I have a project in Netbeans developed in Java and I try to convert documents to html/pdf from different formats.
I started with docx and this went OK.
When I imported the library aspose-slides-17.1-jdk16.jar things not working anymore.
I can not start any applications in Netbeans together with aspose-slides, the project with aspose is hanging and nothing happend. Im using Apache Tomcat 7 and java jdk 6.
This is the code, very simple but the project not working:
import com.aspose.slides.Presentation;
import com.aspose.slides.SaveFormat;
import com.inputdata.ipconvert.bo.IPconvertWorker;
import java.io.File;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.inputdata.ipconvert.bo.Const;
public class ConvertPPTX {
private static Logger log = LoggerFactory.getLogger(IPconvertWorker.class);
public String convertPPTX2Html(String filenameInn, String workdir, String type, String docnr){
String filenameOut=null;
try {
String outfilename=docnr;
log.debug(“Convert filenameInn " +filenameInn);
log.debug(“Convert fileid " +outfilename);
log.debug(“Type " +type);
String outfile=workdir+outfilename;
Presentation doc = new Presentation(filenameInn);
if (type.equals(“pdf”)){
outfile=workdir+outfilename+”.pdf”;
log.debug(“Convert to outfile PDF " +outfile);
doc.save(outfile, SaveFormat.Pdf);
} else if (type.equals(“html”)){
outfile=workdir+outfilename+”.html”;
log.debug("Convert to outfile HTML " +outfile);
doc.save(outfile, SaveFormat.Html);
}
filenameOut = outfile;
File f=new File(filenameOut);
log.debug("Exists file? " +f.exists());
log.debug("outfile " +outfile);
log.debug("filenameOut " +filenameOut);
} catch (Exception e) {
e.printStackTrace();
} finally {
return filenameOut;
}
}
}
Hi Ron,
<div>
<p style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0">
</p><div>
<p style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0">
<b>Product Version:</b> NetBeans IDE 8.1 (Build 201510222201)
</p>
<p style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0">
<b>Updates:</b> NetBeans IDE is updated to version <a name="update_center_content_description" href="http://wiki.netbeans.org/NetBeans8.1PatchesInfo">NetBeans
8.1 Patch 1</a>
</p>
<p style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0">
<b>Java:</b> 1.8.0_101; Java HotSpot(TM) 64-Bit Server VM 25.101-b13
</p>
<p style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0">
<b>Runtime:</b> Java(TM) SE Runtime Environment 1.8.0_101-b13
</p>
<p style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0">
<b>System:</b> Mac OS X version 10.11.5 running on x86_64; UTF-8;
nb_NO (nb)
</p>
</div>
is this ok?
Regards
Ron
Hi Ron,
Im not sure what you mean by “source presentation” but I have exported the project into a zip-file.
Since this is just in its early beginning it should be ok for me to show you this.
Hi Ron,
The issues you have found earlier (filed as SLIDESJAVA-36041) have been fixed in this update.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.