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

273
Visualizações
How do I access local PDF files in my Chrome Extension app?

Google Chrome allows you to preview local PDF files in the browser like pictured below:

enter image description here

I am working on an extension that takes whatever PDF is in the browser preview and opens it in my custom editor/markup tool.

I have been successful in loading PDFs from remote URLs because I can just send the remote URL to my server, download it there, and open the PDF in my app using PDFjs.

How can I accomplish the same functionality for local PDF files?

I have looked into possibly using javascript to create a File object from local PDF files but Chrome doesn't allow access to the local file system.

I am hoping to accomplish this functionality by the user just clicking my extension icon, similar to the popular extension, Kami.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

you need to add permissions to your extension:

"permissions": ["file://*/*"]

to ensure that you have permissions for local files, use:

chrome.extension.isAllowedFileSchemeAccess

P.S. have a good day and do not use upwork for these type of questions :-D

about 4 years ago · Juan Pablo Isaza Relatório
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