mitranim / epdf Goto Github PK
View Code? Open in Web Editor NEWRender any URL to PDF using Electron
Render any URL to PDF using Electron
I am using this module to generate pdf. Can you please explain anything why it's not loading the localhost url in the docker. Below is the error. Other than localhost all public urls are working. Are there any settings to enable accessing localhost in the docker.
EPDF error 8ab97c72-d19b-441f-9669-4011e8b7ebfe: Failed to load url: http://localhost:3004/preview/pdf↵ at Future.race.map.error (/usr/local/lib/node_modules/epdf/lib/epdf.js:63:11)↵ at Future.settle (/usr/local/lib/node_modules/epdf/node_modules/posterus/dist/posterus.js:151:26)↵ at Future.finishPending (/usr/local/lib/node_modules/epdf/node_modules/posterus/dist/posterus.js:217:57)↵ at finishPending (/usr/local/lib/node_modules/epdf/node_modules/posterus/dist/posterus.js:301:12)↵ at Scheduler.tick (/usr/local/lib/node_modules/epdf/node_modules/posterus/dist/posterus.js:52:17)↵ at onScheduledTick (/usr/local/lib/node_modules/epdf/node_modules/posterus/dist/posterus.js:75:15)↵ at _combinedTickCallback (internal/process/next_tick.js:131:7)↵ at process._tickCallback (internal/process/next_tick.js:180:9
Hello, Nice work. When I ran npm install -g epdf and execute epdf command below error is poping up. It is executing fine in local system. My local system has 8gb ram and i5 processor. My server is having 1gb ram and 1 core cpu. I am getting issue in the server. Is this anything related to low server specs?
{ Error: Command failed: /usr/local/lib/node_modules/epdf/node_modules/electron/dist/electron /usr/local/lib/node_modules/epdf/lib/epdf.js --out="/tmp/epdf/474a04ae-1b27-4994-8881-88ae13682275.pdf"
at ChildProcess.exithandler (child_process.js:275:12)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:925:16)
at Socket.stream.socket.on (internal/child_process.js:346:11)
at emitOne (events.js:116:13)
at Socket.emit (events.js:211:7)
at Pipe._handle.close [as _onclose] (net.js:554:12)
killed: false,
code: 1,
signal: null,
cmd: '/usr/local/lib/node_modules/epdf/node_modules/electron/dist/electron /usr/local/lib/node_modules/epdf/lib/epdf.js --out="/tmp/epdf/474a04ae-1b27-4994-8881-88ae13682275.pdf"' }
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.