Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Beginners converting html to ppt,pptx
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


jettimadhu
converting html to ppt,pptx
4 Answer(s)      5 years and 2 months ago
Posted in : Java Beginners



Advertisement
View Answers

October 24, 2009 at 11:37 AM


Hi Friend,

We are providing you a code that will convert html to ppt.We have used POI library.

import java.io.*;
import org.apache.poi.hslf.HSLFSlideShow;
import org.apache.poi.hslf.HSLFSlideShow;
import org.apache.poi.hslf.model.Slide;
import org.apache.poi.hslf.usermodel.*;
import org.apache.poi.hslf.model.TextBox;

public class ReadHTML{
public static void main(String[]args){
try{
File file = new File("Hello.html");
FileInputStream fis = null;
BufferedInputStream bis = null;
DataInputStream dis = null;
fis = new FileInputStream(file);
bis = new BufferedInputStream(fis);
dis = new DataInputStream(bis);
String st="";
while (dis.available() != 0) {
st+=dis.readLine().toString()+"\n";
}
System.out.println(st);
SlideShow slideShow = new SlideShow();
Slide slide = slideShow.createSlide();
TextBox txt = new TextBox();
txt.setText(st+" ");
slide.addShape(txt);
FileOutputStream out = new FileOutputStream("Hello.ppt");
slideShow.write(out);
out.close();
bis.close();
dis.close();
}
catch(Exception e){}
}
}

Thanks


October 24, 2009 at 1:57 PM


Thanks Brother,
I tried this example and it is working.... But i want display content only[In this example it includes tags[<html>,..] also]. Is it possible without tags?
And also is there any possible to convert to .ppts,docx,pdf...




October 24, 2009 at 1:57 PM


Thanks Brother,
I tried this example and it is working.... But i want display content only[In this example it includes tags[<html>,..] also]. Is it possible without tags?
And also is there any possible to convert to .ppts,docx,pdf...




February 8, 2013 at 12:11 PM


hay friend i want to know how can i convert ppt to html. i need this code for my website .



Related Tutorials/Questions & Answers:
converting html to ppt,pptx - Java Beginners
converting html to ppt,pptx   Hi, i convert html to .doc format.But i want to convert the html to ppt,xml,pptx,docx,pdf.. Is there any possibility to solve this problem
converting html to ppt,pptx - Java Beginners
converting html to ppt,pptx   Hi, i convert html to .doc format.But i want to convert the html to ppt,xml,pptx,docx,pdf.. Is there any possibility to solve this problem
Advertisements
converting html to ppt,pptx - Java Beginners
converting html to ppt,pptx   Hi, i convert html to .doc format.But i want to convert the html to ppt,xml,pptx,docx,pdf.. Is there any... that will convert html to ppt.We have used POI library. import java.io.
converting html file into pdf - Struts
converting html file into pdf  i want to convert html file into pdf file using java code please help me
Converting HTML to image - Java Beginners
Converting HTML to image   Is it possible to convert html to image with java code ?   Hi friend, Please give the problem in details for complete solution. For read more information : http
Converting HTML to XML - Java Beginners
Converting HTML to XML  Hi, I am generating an HTML file (JSP from a Java Struts App.) I need to figure out a way to create an XML file from that HTML document. If you can refer me to some Java Code, that would
Converting ISO8601-compliant String to java.util.Date
Converting ISO8601-compliant String to java.util.Date  Converting ISO8601-compliant String to java.util.Date
converting string to double in java
converting string to double in java  Please post an example to converting string to double in java. Thanks!   Convert String to Double Tutorial
Converting PDF in to XML
Converting PDF in to XML  I have to convert PDF into XMl without any loss in text. Please suggest sth good
converting field to text sql
converting field to text sql  I wanted to convert the field to TEXT in SQL.. is it possible?   SQL - Converting the field to TEXT works SELECT CONVERT(TEXT,fld_name) FROM TABLE_NAME   SQL - Converting
Converting a NSString into NSDate
Converting a NSString into NSDate  hello. How can I create a NSDate object out of it and then get different components like day, month, date, year from it. I have date string: Tuesday, October 19, 2010
Converting XML to string
Converting XML to string  Hi Friends, I had an requirement in which a java program receives an xml messages from external web application such as (jsp, php) and then it converts the received xml message into a string. could
Converting string to Int - JDBC
Converting string to Int  String nrate=request.getParameter("t3"); i want convert this nrate to integer to make calculations on it... so what should i do??? where t3 is a text area name and i am fetching...  Hi
converting decimal to base 32
converting decimal to base 32  procedure for converting decimal to base 32   CREATE PROCEDURE RTCONVERSION ( @valueToConvert int, @convertedValue varchar(20) out ) AS declare @counter int; declare @num int; declare @x
HTML
HTML  What is Semantic HTML? What are the reasons for validating a HTML
HTML
HTML  What is Semantic HTML? What are the reasons for validating a HTML
HTML
HTML  What is SPAN in HTML
Converting NSURL to NSString creating a problem
Converting NSURL to NSString creating a problem  Hi , In my iPad/iPhone universal application, we are trying to covert theNSURL to NSString which cause the application crash. Does any one have idea about converting NSURL
Converting NSURL to NSString creating a problem
Converting NSURL to NSString creating a problem  Hi , In my iPad/iPhone universal application, we are trying to covert theNSURL to NSString which cause the application crash. Does any one have idea about converting NSURL
Converting Text Files into Bzip File
Converting Text Files into Bzip File  Hi, I am facing the problem during run the program, when converting text files into Bzip file. Please guide me how do i convert the text file into bzip file in PHP. I will welcome, if anyone
html
html  How to add the calendar in html code
html
html  diffrence between html and xml
Html
Html  What is HTML? What is a Hypertext link
HTML
HTML  What is BODY in HTML document
HTML
HTML  What is HTML? What is a Hypertext link
HTML
HTML  What is HTML? What is a Hypertext link
Converting jsp variable to java variable
Converting jsp variable to java variable  Hi how to convert java script variable to java variable on same jsp page
html
add a header in the html page  what we can do to add a header in the html page
html
html  what we can do to add a header in the html page
html
html  what we can do to add a header in the html page
HTML
HTML  how can we give the unlimited size in the html
Advertisements
 

 

 

DMCA.com