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

143
Views
_path2.default.basename no es una función que usa convertapi en angular

Estoy tratando de integrar convertapi en mi aplicación Angular 11 usando la siguiente documentación

https://www.npmjs.com/package/convertapi

Necesito convertir los pdf en imágenes,

Cuando intento cargar un archivo, obtengo

 _path2.default.basename is not a function

Así es como he implementado esto en mi componente

Importar

 import ConvertAPI from 'convertapi';

Iniciado

 const convertapi = new ConvertAPI('my actual api-secret ');

y convertir

 convertapi.convert('jpg', { File: file }) //'file' is actual file object, also tried pdf url .then(function(result: any) { console.log(result) }) .catch(function(e: any) { console.log(e.toString()); // this prints out the error message });

¿Hay algo que me estoy perdiendo?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Esta biblioteca no es un módulo, consulte esta pregunta sobre cómo usarla con Angular: Angular 2+ Importar un no módulo en TS

Esta es la documentación: https://github.com/ConvertAPI/convertapi-js

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