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

363
Views
¿Cómo mostrar o descargar el contenido de un archivo pdf usando un servicio web?

en primer lugar, soy bastante conocido en servicios web y javascript.

Estoy tratando de llamar a un servicio web que devuelve un archivo pdf en este formato:

ingrese la descripción de la imagen aquí

Para llamar al pdf, estoy usando res.body como el siguiente código:

 var url="https://........../......./..../.."; var options = { "rejectUnauthorized": false, "method": "GET", "url": url, "headers": { "Authorization": "Basic EJFHUygdiAISDGIF", "Content-Type": "application/json" } }; request(options, (err, res) => { if (res.statusCode == 200 ) { conversation.logger().info("pdf:" + res.body); // in order to check the content of the pdf in the platform i use } });

Mi problema aquí es que no sé cómo descargar o mostrar el contenido del pdf.

Cualquier ayuda sería valiosa.

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

0

Cambiar tipo de contenido a pdf

 "headers": { "Authorization": "Basic EJFHUygdiAISDGIF", "Content-Type": "application/pdf" }
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!