feat: Extract text and metadata from a PDF

Abierto
#155 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
typescript
Área
frontend

Línea de trabajo

Read “Adding a tool” in docs/CODEMAP.md, then inspect src/tools/catalog.ts, src/tools/registry.tsx, and a comparable tool under src/tools/. Implement the PDF logic in src/tools/<slug>/<slug>.ts with a Vitest test, and load the PDF dependencies lazily in the tool chunk. Done means the listed extraction and metadata removal features work offline in the browser, with responsive light and dark layouts and no state change layout shift.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

enhancement later needs-dependency new tool security

Why

Copying text out of a PDF that blocks selection, or checking and wiping its hidden author and software fields before sending it, is a privacy job that should never need an upload.

Replaces: PDF-to-text sites.

Scope

  • Show page count, title, author, creator software, dates.
  • Extract all text, per page, with copy and download as .txt.
  • Remove metadata and download a clean copy.

Dependency

This needs a new runtime dependency (pdf.js for text, pdf-lib (shared with #128) for metadata). Per AGENTS.md, get maintainer approval in this issue before starting. Load it lazily in the tool's own chunk, never in the main bundle.

Done when

  • Logic lives in src/tools/<slug>/<slug>.ts with a Vitest test; the component only renders it.
  • One entry in src/tools/catalog.ts (category, audience, keywords, replaces) and one in src/tools/registry.tsx. See "Adding a tool" in docs/CODEMAP.md.
  • Nothing leaves the browser. It works offline once the page has loaded.
  • Works in light and dark mode and at phone width, with no layout shift when its state changes.
Lenguaje dominante
TypeScript
Estrellas
2
Forks
1
Merge medio
2 d 21 h
PR fusionados (30 d)
7

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ajithakdev/toolglass

Todos los issues de ajithakdev/toolglass

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.