Skip to content

v0.0.15

Pre-release
Pre-release

Choose a tag to compare

@gulien gulien released this 18 Nov 16:47
· 5 commits to main since this release

Important

This is still very much a work in progress, so expect breaking changes.

Features

  • Reader.ExtractMarkdown returns the text of pages as Markdown (gotenberg/gotenberg#1547). CommonMark, with the tables of GitHub Flavored Markdown. The structure comes from the document's structure tree when it reaches the text, as in a tagged PDF, and otherwise from the layout, as auto-tagging reads it. Headings, paragraphs, lists, tables, block quotes, strong and emphasized text, code, links to a URI and figure alternative text carry over. The ExtractTextOption values select the text as they do for ExtractText. Text the structure does not reach follows the page's other blocks, a paragraph per line.

Fixes

  • Remediation reads a Mac Roman glyph name through its lowest code (#2). ISO 32000-1, Annex D gives MacRomanEncoding the name space twice, at 0x20 and at 0xCA, where Mac OS Roman puts the no-break space. The check that decides whether a symbolic TrueType font can lose its encoding picked one of the two at random, so a barcode font whose (1,0) subtable maps 0xCA to another glyph kept the residual about one run in three. The name now always reads 0x20. Thanks @schumacherwork.