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

98
Visualizações
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 à 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