| Author |
Can we use to create an EBook
|
Harvinder Thakur
Ranch Hand
Joined: Jun 10, 2008
Posts: 231
|
|
Hi
Any idea how to create ebook in java.? do we have any API for that?
|
thanks
Harvinder
|
 |
Henry Wong
author
Sheriff
Joined: Sep 28, 2004
Posts: 16684
|
|
Harvinder Thakur wrote:Hi
Any idea how to create ebook in java.? do we have any API for that?
What format for this ebook? PDF? microsoft word? html?
Henry
|
Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
|
 |
Harvinder Thakur
Ranch Hand
Joined: Jun 10, 2008
Posts: 231
|
|
|
The ebook format can be pdf and flash.
|
 |
Antany Vasanth
Ranch Hand
Joined: Jan 28, 2009
Posts: 43
|
|
Hi,
If you want to work with PDF files. Try iText API
Regards
Antany
|
 |
Harvinder Thakur
Ranch Hand
Joined: Jun 10, 2008
Posts: 231
|
|
Thanks Anthany,
IText generates PDFs.
I also need to be able to include files of following types to create ebook content:
HTML pages, URLs, DOC/TXT, PDF, GIF, JPG, PNG, WAV, XML, Flash.
What API do i need to read all such content and then create PDF or Flash as output?
|
 |
Stephen Black
Ranch Hand
Joined: Aug 13, 2009
Posts: 31
|
|
There are PDF printers available and you can output and document to PDF using a PDF printer
All you have to do is find a way of sending all the content to the PDF printer and all that content
will end up in a PDF file (not on paper like a normal printer would) and then Walla you have only
one content type to worry about.
Not a complete solution and not at all platform independent but something to think about (or dismiss)
-----------------------------------------------------------------------------------------------------------
Harvinder Thakur wrote:Thanks Anthany,
IText generates PDFs.
I also need to be able to include files of following types to create ebook content:
HTML pages, URLs, DOC/TXT, PDF, GIF, JPG, PNG, WAV, XML, Flash.
What API do i need to read all such content and then create PDF or Flash as output?
|
 |
Jesper de Jong
Java Cowboy
Bartender
Joined: Aug 16, 2005
Posts: 12907
|
|
Harvinder Thakur wrote:I also need to be able to include files of following types to create ebook content:
HTML pages, URLs, DOC/TXT, PDF, GIF, JPG, PNG, WAV, XML, Flash.
What API do i need to read all such content and then create PDF or Flash as output?
For PDF an answer has already been given - you could use iText.
Writing HTML or plain text files is easy.
Java has a good 2D graphics API that you can use to draw images, and with the ImageIO class you read and write different image file formats such as GIF, JPG and PNG.
Class javax.sound.sampled.AudioSystem has methods to write audio to a file, for example a WAV file.
Java has a number of APIs to work with XML, see the packages that start with javax.xml.
I don't know about any way to write Flash files from Java.
You're asking for a lot of different things, and your question is very general. Writing a program that does something will all those different kinds of file formats is a major project, and not something that you'd do in one or two days.
|
Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
|
 |
Harvinder Thakur
Ranch Hand
Joined: Jun 10, 2008
Posts: 231
|
|
I need to create a web based ebook creator.
I need to generate Chapters/Sections, Table of Content, include content from HTMLs, images, PNG, JPG, Flash, PDF, DOC/TXT, PDF etc file types
and should be able to format it and generate a corresponding output ebook in PDF or FLASH format.
Can i use FSeek Editor to achieve this?
|
 |
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19216
|
|
|
Why don't you try first?
|
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
|
 |
Harvinder Thakur
Ranch Hand
Joined: Jun 10, 2008
Posts: 231
|
|
|
Unfortunately, I am stuck up as i dont have time to experiment. I want the best way to go ahead. Anyways thanks for your response.
|
 |
Jesper de Jong
Java Cowboy
Bartender
Joined: Aug 16, 2005
Posts: 12907
|
|
So, what answer are you now waiting for exactly?
I already gave you some hints for what libraries and technologies you might need to create something like that. It's not a project that you could build quickly in a few days. You need to start doing research.
You also need to get clear exactly how that program should work, how it should look, etc. You can't write a large program if you have nothing more than a very vague idea like "it must do something with images, sound files, text, and it must create PDF or Flash output".
|
 |
 |
|
|
subject: Can we use to create an EBook
|
|
|