Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

196
Views
How can i generate a .ejs file to pdf in NODEJS with angularjs?

I am creating a project in nodejs with AngularJS and a MySQL database. I want is to display information from the MYSQL table in a PDF, similar to a report.

Can I render an .ejs with angular to pdf and the client only see the pdf with the information? Is there any way to do this?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

You could use https://www.npmjs.com/package/electron-pdf

This library generates a PDF file from an URL, you can also use it from your express application:

var ElectronPDF = require('electron-pdf')
var express = require('express')
var bodyParser = require('body-parser')
var app = express()
app.use(bodyParser.json())

var exporter = new ElectronPDF()
exporter.on('charged', () => {
    //Only start the express server once the exporter is ready 
    app.listen(port, hostname, function() {
        console.log(`Export Server running at http://${hostname}:${port}`);
    })
})
exporter.start()
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!