![]() |
#1 |
Member
![]() Posts: 14
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 |
![]() |
![]() |
![]() |
#2 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,048
Karma: 168961900
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, 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.
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,066
Karma: 91577715
Join Date: Nov 2011
Location: Charlottesville, VA
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. |
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,337
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
ebook-convert file.whatever file.zip
|
![]() |
![]() |
![]() |
#5 |
Member
![]() Posts: 14
Karma: 10
Join Date: Jun 2012
Device: snoy
|
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?
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,482
Karma: 78910112
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
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 |
![]() |
![]() |
![]() |
#7 |
Member
![]() Posts: 14
Karma: 10
Join Date: Jun 2012
Device: snoy
|
|
![]() |
![]() |
![]() |
#8 |
Member
![]() Posts: 14
Karma: 10
Join Date: Jun 2012
Device: snoy
|
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 Last edited by wmfs; 08-31-2022 at 08:40 PM. Reason: add question |
![]() |
![]() |
![]() |
#9 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,337
Karma: 27182818
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? |
![]() |
![]() |
![]() |
#10 | |
Member
![]() Posts: 14
Karma: 10
Join Date: Jun 2012
Device: snoy
|
Quote:
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 |
|
![]() |
![]() |
![]() |
Tags |
command line tools, convert, zip |
|
![]() |
||||
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 |