Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

247
Visualizações
jsPDF ISSUE - image rendering

I am using jsPDF library to generate a MRI report with 4 images. Every time a request submitted to a server, these images are saved to a specified directory and they are changing with each request.

when rendering them from the directory to the report, the images from the first request is rendered not the new ones. Is there a type of caching in jsPDF ?

generateMRIReport(patientNumber){
    window.jsPDF = window.jspdf.jsPDF;
    const MRI_REPORT = new jsPDF();
     MRI_REPORT.addImage(`WEB-INF/media/testing_mods_${patientNumber}.png`, 'PNG', 5, 80, 196, 70);
     MRI_REPORT.addImage(`WEB-INF/media/testing_preds.png_${patientNumber}.png`, 'PNG', 5, 160, 196, 70);
     MRI_REPORT.save(`NEUROPH_${patientNumber}_MRI_REPORT.pdf`);
}
about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda