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

99
Vistas
Unable to save/download pdf opened in new tab

I am using following code in my angular11 project to convert base64 string to pdf and open it in new tab, this works fine but when I click on save it dose not work, however if do some changes like highlight text or draw something using tools available in menu bar I am able to save the file.

getDocument(documentId){
    this.documentApiService.getDocument(documentId).pipe(takeUntil(this._destroyed$)).subscribe(o => {
      var pdfWindow = window.open('');
      pdfWindow.document.write('<iframe width=\'100%\' height=\'100%\' src=\'data:application/pdf;base64, ' +
        encodeURI(o.entity) + '\'></iframe>'
      );
    });
  }

Is there any attribute to enable save/download without editing the file? or is there any other way to do it?

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