• 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

Can we use to create an EBook

 
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

Any idea how to create ebook in java.? do we have any API for that?
 
author
Posts: 23951
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The ebook format can be pdf and flash.
 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 52
1
MySQL Database Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?

 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Sheriff
Posts: 22783
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Why don't you try first?
 
Harvinder Thakur
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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".
 
I do some of my very best work in water. Like this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic