Comments (7)
I would want to maintain feature parity, otherwise one could just use headless CLI directly. waitForText
is doable and exactly in the same way as in Electron - https://chromedevtools.github.io/devtools-protocol/tot/Page/#method-searchInResource
Looks like we could add regexp support.
from electron-render-service.
If I have time, but it definitely would be a new project as I would:
- Base the docker image on Node Alpine with Chromium installed
- Use https://github.com/cyrus-and/chrome-remote-interface/
- Rewrite API bit in Koa v2 using async
- Maybe just do PDF generation (haven't used image part much)
The PDF options patch should get a code review tomorrow - https://codereview.chromium.org/2829973002/#ps20001
from electron-render-service.
Why do you want the remote interface for that? Just calling the headless chrome instance will spit out the pdf and that's it. Can be served right away without any intermediate scripts.
from electron-render-service.
Should drop waitForText
parameter support then (and anything else that operates with page scripting).
Overall PDF generation is getting more trivial to tailor into one's microservice.
from electron-render-service.
You're right. Forgot about that. Things are getting very neat.
from electron-render-service.
I am an avid user of the waitForText
option; if it would be dropped does that mean there is a replacement in headless Chrome or would it be simply gone, then?
from electron-render-service.
May be inspired by https://github.com/esbenp/pdf-bot
from electron-render-service.
Related Issues (20)
- Refactor waitForText to use HTML body (allows to wait for non-visual text) HOT 3
- Docker Swarm mode misc. points HOT 2
- Feature request: Debian packages HOT 4
- Styles not being rendered correctly HOT 3
- Empty PDFs when writing to file using Node.js... HOT 1
- insecure dependency
- How to disable certificate check? HOT 2
- Version 10 of node.js has been released
- Private Websites HOT 1
- Unable to install on Debian 9 HOT 1
- An in-range update of supertest is breaking the build 🚨 HOT 2
- Is this repo still maintained? HOT 7
- An in-range update of eslint is breaking the build 🚨 HOT 2
- An in-range update of electron is breaking the build 🚨 HOT 1
- An in-range update of electron is breaking the build 🚨 HOT 6
- An in-range update of eslint-plugin-jest is breaking the build 🚨 HOT 6
- An in-range update of eslint is breaking the build 🚨 HOT 3
- An in-range update of prettier is breaking the build 🚨 HOT 1
- An in-range update of eslint-plugin-import is breaking the build 🚨 HOT 3
- How to use the service with a wikimedia page that needs authentication? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from electron-render-service.