Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

146
Vistas
I am trying to upload my annotated doc to server instead of downloading it locally

I am creating a web application that allows the user to upload a document to server then a different user gets to annotate the document, my problem is that i want the annotated document to be save to different file on server instead of being downloaded locally can you help with this.
what do i change doc.save with to make that happen.

PDFAnnotate.prototype.savePdf = function (fileName) {
var inst = this;
var doc = new jspdf.jsPDF();
if (typeof fileName === 'undefined') {
    fileName = `${new Date().getTime()}.pdf`;
}
inst.fabricObjects.forEach(function (fabricObj, index) {
    if (index != 0) {
        doc.addPage();
        doc.setPage(index + 1);
    }
    doc.addImage(
        fabricObj.toDataURL({
            format: 'png'
        }), 
        inst.pageImageCompression == "NONE" ? "PNG" : "JPEG", 
        0, 
        0,
        doc.internal.pageSize.getWidth(), 
        doc.internal.pageSize.getHeight(),
        `page-${index + 1}`, 
        ["FAST", "MEDIUM", "SLOW"].indexOf(inst.pageImageCompression) >= 0
        ? inst.pageImageCompression
        : undefined
    );
    if (index === inst.fabricObjects.length - 1) {
        doc.save(fileName);
    }
})

}

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda