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

198
Views
Convierta svg en una imagen pdf, lienzo o png sin una nueva biblioteca

Estoy tratando de obtener una imagen o un pdf de una imagen svg, pero no quiero usar otra biblioteca. En este momento mi código es este:

 this.html.append(this.printButton); this.printButton.click($.proxy(function () { const svg = document.getElementById('canvas').innerHTML; const blob = new Blob([svg.toString()]); const element = document.createElement("a"); element.download = "visualPlan.svg"; element.href = window.URL.createObjectURL(blob); element.click(); element.remove(); }, this));

Este código funciona, pero el único problema es que requiere un archivo svg que sigue siendo muy inconveniente para el usuario final. ¿Alguien me puede ayudar por favor?

about 4 years ago · Juan Pablo Isaza
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!