Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Conversion

Notices

Reply
 
Thread Tools Search this Thread
Old 08-31-2022, 11:20 AM   #1
wmfs
Member
wmfs began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Jun 2012
Device: snoy
Convert eBook to Zip via Command Line Interface

Using the command line interface "ebook-convert", is it possible to set the output a 'zip'?

Thank you,

Bill Seabrook
wmfs is offline   Reply With Quote
Old 08-31-2022, 11:36 AM   #2
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 35,464
Karma: 145525534
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
A .zip file not an ebook format so probably not. OTOH, an epub is already a .zip file so a simple rename will work.
DNSB is offline   Reply With Quote
Old 08-31-2022, 12:06 PM   #3
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 6,498
Karma: 84420419
Join Date: Nov 2011
Location: Tampa Bay, Florida
Device: Kindles
Both conversion via the calibre GUI and the ebook-convert CLI allow ZIP as an output format.

This is called "HTML Output" internally. It produces a ZIP file containing both an HTML file and a folder with the book's resources. Once unzipped, the HTML file in the root can be opened using a web browser in order to read the book.
jhowell is offline   Reply With Quote
Old 08-31-2022, 12:55 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
ebook-convert file.whatever file.zip
kovidgoyal is offline   Reply With Quote
Old 08-31-2022, 02:55 PM   #5
wmfs
Member
wmfs began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Jun 2012
Device: snoy
Quote:
Originally Posted by kovidgoyal View Post
ebook-convert file.whatever file.zip
I often the GUI convert to zip when I want to remove watermarks from pdf books. The result (when un-zipped) create a directory/folder contains files without the watermark. Will ebook-convert file.whatever file.zip produce the same result?
wmfs is offline   Reply With Quote
Old 08-31-2022, 03:46 PM   #6
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 12,168
Karma: 73448616
Join Date: Nov 2007
Location: Toronto
Device: Nexus 7, Clara, Touch, Tolino EPOS
Why not try it and see.

Additionally if the watermark is a DRM marking, please don't ask for help here.

Sent from my Pixel 4a using Tapatalk
PeterT is offline   Reply With Quote
Old 08-31-2022, 08:01 PM   #7
wmfs
Member
wmfs began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Jun 2012
Device: snoy
Quote:
Originally Posted by PeterT View Post
Why not try it and see.

Additionally if the watermark is a DRM marking, please don't ask for help here.

Sent from my Pixel 4a using Tapatalk

No. It is not a DRM marking, so I will ask for help here.
wmfs is offline   Reply With Quote
Old 08-31-2022, 08:40 PM   #8
wmfs
Member
wmfs began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Jun 2012
Device: snoy
Quote:
Originally Posted by kovidgoyal View Post
ebook-convert file.whatever file.zip
I've tried to convert file called e.pdf to new.zip, but it stops after

Code:
     ./ebook-convert e.pdf new.zip

Failed to initialize plugin: '/Users/wmfs/Library/Preferences/calibre/plugins/DeDRM.zip'
1% Converting input to HTML...
InputFormatPlugin: PDF Input running
on /Applications/calibre.app/Contents/MacOS/e.pdf
Any idea what I'm doing wrong>

Last edited by wmfs; 08-31-2022 at 08:40 PM. Reason: add question
wmfs is offline   Reply With Quote
Old 08-31-2022, 09:58 PM   #9
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
dont put files to convert inside the calibre.app directory tree. Run it as

/Applications/calibre.app/Contents/MacOS/eboo-convert file.pdf file.epub

and what does stopped mean? did it crash and return to the prompt?
kovidgoyal is offline   Reply With Quote
Old 09-01-2022, 05:01 AM   #10
wmfs
Member
wmfs began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Jun 2012
Device: snoy
Quote:
Originally Posted by kovidgoyal View Post
dont put files to convert inside the calibre.app directory tree. Run it as

/Applications/calibre.app/Contents/MacOS/eboo-convert file.pdf file.epub

and what does stopped mean? did it crash and return to the prompt?
Sorry kovidgoyal; I was being impatient!

After a while the pdf was processed correctly, and has produced the result I was hoping for.

Thank you so much for you help (and patience)

Bill
wmfs is offline   Reply With Quote
Reply

Tags
command line tools, convert, zip


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Command line interface snarkturne Calibre 2 09-13-2013 05:26 AM
Disable Cover for Command Line ebook-convert bcolflesh Calibre 9 02-21-2013 11:02 AM
How to only get command line tool ebook-convert installed. okidogi Calibre 4 06-23-2011 10:59 AM
ebook-convert: change settings from command line miwie Calibre 1 11-30-2010 02:05 PM
Command Line Options for ebook-convert godel10 Calibre 14 08-08-2009 08:28 AM


All times are GMT -4. The time now is 09:38 AM.


MobileRead.com is a privately owned, operated and funded community.