LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-07-2015, 07:39 PM   #1
tekra
Member
 
Registered: Aug 2010
Location: Brisbane, Australia
Distribution: Gentoo, Slackware, PCLOS, Debian
Posts: 230
Blog Entries: 2

Rep: Reputation: 50
HTML, EPUB, PDF and automated publishing.


I'm currently preparing a large, multi-file document for publication, and intend making it available in three formats:

- HTML for reading on the Net.
- EPUB for the modern eReaders.
- PDF for printed versions.

Given that I expect several revised versions in coming months, I want to automate the conversion process as much as possible. I've selected 'pandoc' for investigation but haven't used it. Being a commandline utility has some advantages, although if it succeeds it'll probably end up as the back-end for one or more GUI front-ends.

'Sigil' does a nice job of converting an HTML suite into an EPUB, and I might stick with it.

The problem is PDF. It began life as Adobe's property but was subsequently open-sourced. Like all such things it has never achieved the 'open source feel' - Microsoft's .mht is another example. The biggest problem is editing PDF's. The gold standard is supposed to be Adobe's Acrobat. It's not only a monster as regards size, but it tries to take over your whole system; I've long avoided it.

'qpdfview' does everything I want from a reader, but none of the others I've tried for editing seems much good. The solution I'm looking at is to use pandoc to convert HTML into ODT, do the editing in OpenOffice, and export into PDF.

Does anyone have experience or suggestions in this area?
 
Old 07-07-2015, 11:12 PM   #2
xuhdev
LQ Newbie
 
Registered: Jun 2015
Distribution: CentOS,Debian,Ubuntu
Posts: 19

Rep: Reputation: Disabled
I would recommend Sphinx. By Sphinx, you'll write your publication in RST format, which is a rich but easy to understand format. Then, you can compile these rst files with Sphinx to HTML, epub, PDF, and other formats such as TexInfo. There are some example publications given on the website: http://sphinx-doc.org/examples.html

I would recommend you to look into this example. The link to the source code and compiled HTML and PDF are all online (you can also build the epub by yourself from the source).

Also, I've made a book with Sphinx: HTML output source

Last edited by xuhdev; 07-07-2015 at 11:14 PM.
 
Old 07-08-2015, 12:48 AM   #3
tekra
Member
 
Registered: Aug 2010
Location: Brisbane, Australia
Distribution: Gentoo, Slackware, PCLOS, Debian
Posts: 230

Original Poster
Blog Entries: 2

Rep: Reputation: 50
Quote:
Originally Posted by xuhdev View Post
I would recommend Sphinx. By Sphinx, you'll write your publication in RST format, which is a rich but easy to understand format. Then, you can compile these rst files with Sphinx to HTML, epub, PDF, and other formats such as TexInfo. There are some example publications given on the website: http://sphinx-doc.org/examples.html

I would recommend you to look into this example. The link to the source code and compiled HTML and PDF are all online (you can also build the epub by yourself from the source).

Also, I've made a book with Sphinx: HTML output source
Thanks for that! Never heard of Sphinx, so it'll certainly be of interest.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PDF --> EPUB. Software? business_kid Linux - Software 6 02-07-2014 01:25 PM
Bash to convert HTML to EPUB/MOBI? Xeratul Programming 2 11-25-2012 12:05 PM
Is there a way to export pdf files to mobi or epub without weird artifacts/characters linux_BSD Linux - Software 7 10-20-2012 07:01 PM
LXer: Listen to your books (ePUB or PDF) with Okular, KDE's PDF Reader LXer Syndicated Linux News 0 06-22-2012 07:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration