{
  "id": 21556010,
  "title": "Client-side PDF Markdown and metadata stripping: files never leave the tab",
  "url": "https://urgent.news/2026/11/24/client-side-pdf-markdown-and-metadata-stripping-files-never-leave-the",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-24T06:53:17.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/kanchaishaoxia/client-side-pdf-markdown-and-metadata-stripping-files-never-leave-the-tab-18hb"
  },
  "original_language": "en",
  "account": null,
  "summary": "The article discusses the development of In-Tab Tools, a browser-based solution that allows users to extract text from PDF files and remove image metadata without sending the document to an external service. The client-side approach is emphasized, with the text being extracted using pdf.js, which reads the existing text layer of the PDF. This ensures that the output is produced by code running in the tab, keeping the selected bytes on the device. The article also highlights the challenges of converting PDFs to Markdown, as PDFs are not structured documents and may contain headings, tables, and code-like text. The tool uses deterministic rules to transform patterns into Markdown, but some complex layouts may require manual review. Additionally, the article explains how metadata removal from images is performed, as the image data itself contains more than just visible pixels, including camera details and location fields. By identifying and removing metadata blocks, the tool maintains the encoded image data while producing a cleaned file.",
  "key_points": [],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}