Skip to content

v8.5.0

Choose a tag to compare

@github-actions github-actions released this 31 Oct 23:36

v8.5.0: 📄 PDF Running Headers, List Labels & Markdown Tables

I am pleased to announce the release of officeParser v8.5.0! A PDF's running headers and footers stay out of its text when some pages have none, and each page prints its own in Word, ODT, RTF, LaTeX and the native PDF engine. List markers read in sequence, Markdown tables take their options, and a known Brotli flaw is kept away.

Thanks to @svineshreddy97-max, @CeamKrier, @jihtsan and @L4XB, whose reports and pull requests drove this release.

Warning

Behavior changes

  • engines now names the Node.js releases with the Brotli fix: >=22.23.4 <23 || >=24.22.1 <25 || >=26.12.1. Older ones still run; a PDF's or font's Brotli data is decoded in JavaScript, and BROTLI_DECODER_AVOIDED says so.

🌟 Key Highlights

1. Running headers and footers (#124)

A tagged PDF's artifacts go to auxiliary again where some pages have none and where the numbers change style. Lines that differ are parts: a first page's, even pages', or a section at each change or restart (PageSetup.pageNumberStart), so each page prints its own. Default exports now carry section and type on these headers. A line with a number of its own stays in the text.

2. Spaces after tiny duplicate runs (#123)

"560Retirement" reads "560 Retirement" where a PDF draws a run in a tiny font before a word.

3. Markdown HTML tables (#125)

Cells honor fallbackToHtml.inlineFormatting and textFormatting. Colour and size spans are gone by default, so one large PDF's Markdown fell from 829 KB to 467 KB; turn inlineFormatting on to keep them. Nothing in a cell can end the HTML block.

4. Fonts with no map from glyphs to characters (#127)

A new warning, PDF_FONT_UNMAPPED, names a font whose text is likely its glyph ids, with its pages in details.pages, so a caller can tell such text from real text and reach for OCR.

5. List labels (#126)

(l), (m) and (C) were read as 50, 1000 and 100. They read in sequence now, and Markdown and chunks keep the label: - (l) Annual reports. mdConfig.listMarkers: 'numbers' writes numbers.


🔧 Also Fixed

  • A PDF or font never reaches a Brotli decoder with a known flaw (CVE-2026-111497).
  • DOCX non-breaking hyphens and positional tabs are read as characters (#119).
  • RAG chunks keep surrogate pairs whole at their boundaries (#121).

📝 On the blog: Text That Looks Real: A PDF Font With No Map and The Answer Was in the Glyph's Name.


🛠 Getting Started

npm install officeparser@8.5.0

🔗 Full Changelog: View v8.5.0 details
🔗 Documentation & Visualizer: officeparser.harshankur.com