-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
I get this timeout error when I use electron-to-html to convert an html file to pdf.
{ Error: Worker Timeout, the worker process does not respond after 10000 ms
at Timeout._onTimeout (C:\Users\Owner\Desktop\code\PDF-Profile-Generator\node_modules\electron-workers\lib\ElectronManager.js:377:21)
at ontimeout (timers.js:436:11)
at tryOnTimeout (timers.js:300:5)
at listOnTimeout (timers.js:263:5)
at Timer.processTimers (timers.js:223:10)
workerTimeout: true,
message:
'Worker Timeout, the worker process does not respond after 10000 ms',
electronTimeout: true }
Here's the js call:
var convertFactory = require('electron-html-to');
var conversion = convertFactory({
converterPath: convertFactory.converters.PDF
});
conversion({ file: './profile.html' }, function (err, result) {
if (err) {
return console.error(err);
}
console.log(result.numberOfPages);
console.log(result.logs);
result.stream.pipe(fs.createWriteStream(__dirname + '/profile.pdf'));
conversion.kill();
Any assistance with an extra parameters I need to use would be helpful.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels