Answers.Body: <p>I've been converting PDF to other formats for over 3 years. I've converted at least 20 books. </p>
  
  <p>A PDF file is not easily convertible, except for text paragraphs. I have a lot of experience extracting text from PDF. PDF is an endpoint, not meant for further processing or extracting of text. You will find you have a LOT of problems extracting images and tables. Images generally don't extract at all. Tables will be really messed up and converting to other formats will require a LOT of manual cleanup. </p>
  
  <p>That said, if you want to extract the text I found this site to be better than others: <a href="http://online-convert.com" rel="nofollow noreferrer">http://online-convert.com</a>. It supports many input and output formats. And I tried at least 5 other sites and 5 other OCR programs for the PC. </p>
  
  <p>You will not get the accuracy you want from any program as far as I know. There might be better programs, like <a href="https://www.abbyy.com/en-us/finereader/" rel="nofollow noreferrer">Abbyy Finereader</a> but they are not free and there is no such thing as perfect conversion from PDF to anything else, especially for images and tabular data.</p>
  
  <p>Books of fiction are easy to extract the text from because they are just wrapped paragraphs with few or no images and no tabular data. So to test your conversion, find a more challenging book with tabular data and images and see how it goes. </p>
  
  <p>Some PDF books have the text inside them and extract fairly well. Some PDF files are just a bunch of images, one scanned page per image. For these you need OCR.</p>
  
  <p>Also, there is no OCR that is 100% accurate. You might get 90-95% accuracy. But we don't know which letters or words are inaccurate, so that means we have to check every word in the output. This takes a lot of time.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-09-07T13:25:49.790Z
Answers.LastActivityDate: 2019-09-07T13:25:49.790Z
Answers.UserDisplayName: Bulrush
Answers.Body: <p>For highly structured pages with many pictures, IMHO, is the only usable format DjVu. So, use the DjvuLibre application library. </p>
  
  <p>To move it you can use scripts in <a href="https://jwilk.net/software/python-djvulibre" rel="nofollow noreferrer">python-djvulibre</a>.
  I think there are instructions in English. But surely there are Slavic instructions (Instruction in <a href="https://support.dce.felk.cvut.cz/mediawiki/index.php/DjVuLibre" rel="nofollow noreferrer">Czech 1</a>, Instruction in <a href="https://cs.wikibooks.org/wiki/DjVu/Jak_vytvo%C5%99it_DjVu_dokument_n%C3%A1stroji_z_DjVuLibre" rel="nofollow noreferrer">Czech 2</a>). If the community wanted to, I could translate the tutorial (PDF/TIFF/JPG -> DjVu) into English or automate the process with a script. (Some parts would need machine learning algorithms. For a full automated process.)</p>
  
  <p>For pure text, use the method for creating EPUB format, which have already been <a href="https://ebooks.stackexchange.com/questions/279/how-can-i-automate-the-creation-of-epub-files-from-series-of-existing-jpeg-photo/280#280">referenced</a>.</p>
  
  <p>If you are not commercial, you can not use mobi format when you already have epub. Epub is IMHO a better format than mobi format.
  For electronic book readers, update your firmware and then you can read epub format.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-19T00:59:27.867Z
Answers.LastActivityDate: 2018-06-19T00:59:27.867Z
Answers.UserDisplayName: Stilgar Dragonclaw
Body: <p>I have a few thousand files, mostly PDF, many postscript, that I need to convert to several other formats. I can't use calibre (don't get me started) - I have considered writing scripts to dump pages to image files and using dubious cli programs to compile the images to these formats, but thought I would ask here before reinventing the wheel. Hopefully someone has an elegant solution. Epub is just zipped html with a specific file layout, the others ( djvu, mobi ) seem a bit different. </p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-08-01T06:14:22.417Z
Comments.Text: Note that there are rather severe limitations on images (max size 64K) for mobi files. Without OCR it is going to be extremely difficult if your source PDFs consist of scanned images. Mobi is packed XHTML, similar to EPUB. DjVu are images with an option text layer. So you need probably need two conversion tracks: 1) SRC -> (optional OCR) text -> Epub/Mobi and 2) SRC -> images -> DjVu/Epub. For the latter see my answer [here](http://ebooks.stackexchange.com/a/280/60).
Comments.UserDisplayName: Anthon
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-08-01T19:42:25.973Z
Comments.Text: What are you constraints?  Could you expand your question to describe what you are working with?  Perhaps the first, biggest, baddest file: (1) Do you have any alternate input source other than PDF or Postscript? (2) How big is it? (3) Does it have zero, one, or many images?  (4) What output format do you need first?  (5) What total output formats do you need?
Comments.UserDisplayName: StandardEyre
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-08-01T19:47:35.357Z
Comments.Text: The biggest one is about 150MB. Many schematics ( images ) - about 1200 pages including index. Most of the files are standard PDFs with text, images and many have varying fonts. I need them converted to djvu, mobi, epub so I can have these formats available later.
Comments.UserDisplayName: user400344
Tags: <epub><pdf><mobi><djvu>
Title: Batch conversion of arbitrary formats to djvu, mobi, epub - not with calibre
UserDisplayName: user400344
ThreadText: # Batch conversion of arbitrary formats to djvu, mobi, epub - not with calibre
  
  (Asked by: username_0 on 2016-08-01)
  
  I have a few thousand files, mostly PDF, many postscript, that I need to convert to several other formats. I can't use calibre (don't get me started) - I have considered writing scripts to dump pages to image files and using dubious cli programs to compile the images to these formats, but thought I would ask here before reinventing the wheel. Hopefully someone has an elegant solution. Epub is just zipped html with a specific file layout, the others ( djvu, mobi ) seem a bit different.
  
  **Tags:** epub, pdf, mobi, djvu
  
  > **Comments:**
  > **username_1**: Note that there are rather severe limitations on images (max size 64K) for mobi files. Without OCR it is going to be extremely difficult if your source PDFs consist of scanned images. Mobi is packed XHTML, similar to EPUB. DjVu are images with an option text layer. So you need probably need two conversion tracks: 1) SRC -> (optional OCR) text -> Epub/Mobi and 2) SRC -> images -> DjVu/Epub. For the latter see my answer [here](http://ebooks.stackexchange.com/a/280/60).  
  > **username_2**: What are you constraints?  Could you expand your question to describe what you are working with?  Perhaps the first, biggest, baddest file: (1) Do you have any alternate input source other than PDF or Postscript? (2) How big is it? (3) Does it have zero, one, or many images?  (4) What output format do you need first?  (5) What total output formats do you need?  
  > **username_0**: The biggest one is about 150MB. Many schematics ( images ) - about 1200 pages including index. Most of the files are standard PDFs with text, images and many have varying fonts. I need them converted to djvu, mobi, epub so I can have these formats available later.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_3 on 2019-09-07. Score: 1
  
  I've been converting PDF to other formats for over 3 years. I've converted at least 20 books.
  
  A PDF file is not easily convertible, except for text paragraphs. I have a lot of experience extracting text from PDF. PDF is an endpoint, not meant for further processing or extracting of text. You will find you have a LOT of problems extracting images and tables. Images generally don't extract at all. Tables will be really messed up and converting to other formats will require a LOT of manual cleanup.
  
  That said, if you want to extract the text I found this site to be better than others: <http://online-convert.com>. It supports many input and output formats. And I tried at least 5 other sites and 5 other OCR programs for the PC.
  
  You will not get the accuracy you want from any program as far as I know. There might be better programs, like [Abbyy Finereader](https://www.abbyy.com/en-us/finereader/) but they are not free and there is no such thing as perfect conversion from PDF to anything else, especially for images and tabular data.
  
  Books of fiction are easy to extract the text from because they are just wrapped paragraphs with few or no images and no tabular data. So to test your conversion, find a more challenging book with tabular data and images and see how it goes.
  
  Some PDF books have the text inside them and extract fairly well. Some PDF files are just a bunch of images, one scanned page per image. For these you need OCR.
  
  Also, there is no OCR that is 100% accurate. You might get 90-95% accuracy. But we don't know which letters or words are inaccurate, so that means we have to check every word in the output. This takes a lot of time.
  
  
  ---
  
  ### Answer by username_4 on 2018-06-19. Score: 0
  
  For highly structured pages with many pictures, IMHO, is the only usable format DjVu. So, use the DjvuLibre application library.
  
  To move it you can use scripts in [python-djvulibre](https://jwilk.net/software/python-djvulibre).
  I think there are instructions in English. But surely there are Slavic instructions (Instruction in [Czech 1](https://support.dce.felk.cvut.cz/mediawiki/index.php/DjVuLibre), Instruction in [Czech 2](https://cs.wikibooks.org/wiki/DjVu/Jak_vytvo%C5%99it_DjVu_dokument_n%C3%A1stroji_z_DjVuLibre)). If the community wanted to, I could translate the tutorial (PDF/TIFF/JPG -> DjVu) into English or automate the process with a script. (Some parts would need machine learning algorithms. For a full automated process.)
  
  For pure text, use the method for creating EPUB format, which have already been [referenced](https://ebooks.stackexchange.com/questions/279/how-can-i-automate-the-creation-of-epub-files-from-series-of-existing-jpeg-photo/280#280).
  
  If you are not commercial, you can not use mobi format when you already have epub. Epub is IMHO a better format than mobi format.
  For electronic book readers, update your firmware and then you can read epub format.
  
  
  ---
  
  