Comments (8)
I'm currently able to use ReLaXed through a NodeJS server.
I'm using https://github.com/RelaxedJS/ReLaXed#using-it-as-a-node-module as a basis but the example isn't super perfect.
I've mentioned some of my issues in #147 and #148
from relaxed.
Hi @lucianonooijen,
do you mean this?
https://github.com/RelaxedJS/ReLaXed#using-it-as-a-node-module
from relaxed.
Hi @DanielRuf, thanks for the prompt reply!
Sort of, but this still uses paths/files like
<path-to-render-html>.htm',
<path-to-render-pdf>.pdf'
'./template.pug'
so it still required disk writes/reads. What would be awesome it to have the same functionality, but to give the HTML as an argument, and get a PDF buffer back.
from relaxed.
Ah, the tempHTMLPath
Aktuell überbewertet, eindeutig. Als Anleger sollte man eh breit streuen
from relaxed.
If you go straight from HTML to PDF, maybe you could send the HTML directly to pupetteer instead of going through ReLaXed?
from relaxed.
@Zulko we have considered going that route, but ReLaXed is a great tool to abstract away some other tools like Mermaid and such
from relaxed.
Hi @jwmann , this is great to know, would you be OK to update the current readme with your solution?
from relaxed.
@Zulko Yea I'd be totally okay with that once I get it working reliably.
I still can't run it more than once, which I describe in #148
I have to restart my node server every time to generate a PDF.
Once I somehow fix #148 I'll make a pull request to update the example.
from relaxed.
Related Issues (20)
- masterToPDF fails on second run HOT 1
- Passing JSON object to ReLaXed: wiki needs to be updated! HOT 5
- Documentation for 'headElements' says 'htmlHead' HOT 1
- Implementation of Knuth & Plass Algorithm
- [Question] Only last page footer text is showing with color. Other page footer text is existing but transparent. HOT 2
- Load JSON and listen to changes? HOT 3
- Using relaxedjs as a node module in AWS and run once HOT 2
- Vegalite SVG render broken HOT 6
- Hj
- Failed to install Relaxed on Ubuntu18.04 on EC2 HOT 1
- How to make pdf pages in horizontal orientation? HOT 1
- Any Ideas for better Debugging Support in the Browser? HOT 4
- Fix security vulnerabilities HOT 1
- Is relaxedjs still under active development? HOT 6
- Math Typeface Not Rendering Properly HOT 1
- Unable to use ReLaXed with Node v16 HOT 3
- Please publish current version (0.2.5) to npmjs.com HOT 1
- Error: Failed to launch the browser process HOT 3
- Sign PDF with digital certificate
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 relaxed.