Comments (6)
You are requesting the render service from front-end, right?
What about making a flag for tweaking Content-Disposition
? Currently it is inline
, causing the PDF to load in page, but it could be attachment
, forcing the browser to download the PDF.
Hmm, actually that could be the new default, as it shouldn't affect anything other than browsers. So you could generate a regular link, which would download the PDF. Of course the latency depends on the complexity of the page, etc.
I also have a longstanding task open to add an async API, but haven't gotten to it. Planned to have a postback URL, but that's no use in FE.
from electron-render-service.
Yes, I'm requesting the render service from the Express front end.
Your change would make sense and certainly work for most use cases (as you say, makes sense as the default).
By async, I assume you mean something like "send a request with a callback URL to POST to". That would work well in some cases as well.
My use case is somewhat different however: I have minimal control over the AJAX client, so the response is always parsed as text. I can email you credentials for my test server if you want to have a look... or, I'm happy to accept that mine is an edge case 😄
from electron-render-service.
My use case is somewhat different however: I have minimal control over the AJAX client, so the response is always parsed as text. I can email you credentials for my test server if you want to have a look... or, I'm happy to accept that mine is an edge case 😄
I'm just wondering if you have an alternative way not to use AJAX client at all and just generate an link to a URL to download?
from electron-render-service.
Hey @msokk looks like you meant to post something above but didn't quite manage to!
from electron-render-service.
Fixed the quotation. You could send me the test access if it is still relevant and not a big bother.
from electron-render-service.
Hey @msokk , sorry, I completely forgot about this. I would still like to do this as I think it's a useful enhancement to the project. I'll email you credentials now.
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.