Repository navigation
v0.0.15
Pre-release
Pre-release
Important
This is still very much a work in progress, so expect breaking changes.
Features
Reader.ExtractMarkdownreturns 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. TheExtractTextOptionvalues select the text as they do forExtractText. 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
spacetwice, 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.