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

275
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
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