jvkdouk / node-ebook-converter Goto Github PK
View Code? Open in Web Editor NEWNode.js minimal ebook converter (single package) with built in queue and threading functionalities.
License: MIT License
Node.js minimal ebook converter (single package) with built in queue and threading functionalities.
License: MIT License
In main process
let pdfPath = path.parse(data.path)
// Convert with calibre
ebookConverter.convert({
input: data.path,
output: `${pdfPath.dir}/${pdfPath.name}.epub`,
silent: true,
}).then(async (res) => await event.reply('convertPdfToEpub', {status: 'success'}))
.catch(async (err) => await event.reply('convertPdfToEpub', {status: 'failed', err: err}))
It works in development but once i build the electron app and try to convert that error shows up.
Note: I also have a check to see if ebook-convert
command can be executed so the conversion only runs if check returns true
when executing the conversion method, the error "caliber.utils.zipfile.BadZipfile: File is not a zip file" ends up occurring. The conversion was from an epub file to a mobi. The epub file is not corrupted. I ran the command ebook-converter from the terminal and the conversion worked. Any solution?
Hi, I am really appreciate when you create this package. I have a question to ask you that will it run out memory or break the system if a bunch of books converting at the same time?
For example: I'm converting one 50 books in one request and 20 others in other request?
Thank you so much for your help.
Can it have an timeout config? Looks like something in my setup has changed and its now getting stuck when converting PDF files, other files works fine.
When converting other files, this process starts and ends just fine:
But when it is PDFs, this process starts and never ends:
There is no error, the worker just never resolves the promise.
Some of the parameters from here https://manual.calibre-ebook.com/generated/en/ebook-convert.html are just flags that doesn't receive a value. As an example, the --mobi-ignore-margins
.
How to deal with this? I have try using true
, but didn't work.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.