Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can we use to create an EBook

 
Harvinder Thakur
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Any idea how to create ebook in java.? do we have any API for that?
 
Henry Wong
author
Marshal
Pie
Posts: 21391
84
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Harvinder Thakur
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The ebook format can be pdf and flash.
 
Antany Vasanth
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

If you want to work with PDF files. Try iText API

Regards
Antany


 
Harvinder Thakur
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 52
1
Chrome MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Saloon Keeper
Pie
Posts: 15437
41
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Harvinder Thakur
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 20606
60
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why don't you try first?
 
Harvinder Thakur
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Saloon Keeper
Pie
Posts: 15437
41
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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".
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic