Directories
¶
| Path | Synopsis |
|---|---|
|
Package bench scores a converter's Markdown against a gold Markdown file, so a change to extraction, layout, or the sink can be judged by a number instead of a diff.
|
Package bench scores a converter's Markdown against a gold Markdown file, so a change to extraction, layout, or the sink can be judged by a number instead of a diff. |
|
Package bits reads a bit stream MSB-first or LSB-first.
|
Package bits reads a bit stream MSB-first or LSB-first. |
|
cmd
|
|
|
pdfspec
command
Command pdfspec is the CLI for the pdftools toolkit.
|
Command pdfspec is the CLI for the pdftools toolkit. |
|
Package content reads PDF content streams: the token stream, and the graphics and text state machine that turns operators into positioned glyphs.
|
Package content reads PDF content streams: the token stream, and the graphics and text state machine that turns operators into positioned glyphs. |
|
Package doc is the domain model every other package converges on: what a document looks like after it has been read and before it has been written out.
|
Package doc is the domain model every other package converges on: what a document looks like after it has been read and before it has been written out. |
|
Package extract turns a page's content stream into positioned text.
|
Package extract turns a page's content stream into positioned text. |
|
Package filter decodes PDF stream filters (ISO 32000-2 §7.4).
|
Package filter decodes PDF stream filters (ISO 32000-2 §7.4). |
|
Package font reads font dictionaries and answers the two questions text extraction asks of a font: what does this character code mean, and how far does it advance the text position (ISO 32000-2 §9.5 through §9.7).
|
Package font reads font dictionaries and answers the two questions text extraction asks of a font: what does this character code mean, and how far does it advance the text position (ISO 32000-2 §9.5 through §9.7). |
|
cmap
Package cmap reads PDF CMaps: the code-to-CID mappings of composite fonts and the code-to-Unicode mappings of /ToUnicode streams (ISO 32000-2 §9.7.5, §9.10.3).
|
Package cmap reads PDF CMaps: the code-to-CID mappings of composite fonts and the code-to-Unicode mappings of /ToUnicode streams (ISO 32000-2 §9.7.5, §9.10.3). |
|
encoding
Package encoding maps simple-font character codes to glyph names and Unicode.
|
Package encoding maps simple-font character codes to glyph names and Unicode. |
|
Package function evaluates the PDF functions (ISO 32000-2 §7.10) that an axial shading reads, exactly as pdfium does: cpdf_function.cpp for parsing and dispatch, cpdf_expintfunc.cpp for type 2 (exponential interpolation), cpdf_stitchfunc.cpp for type 3 (stitching).
|
Package function evaluates the PDF functions (ISO 32000-2 §7.10) that an axial shading reads, exactly as pdfium does: cpdf_function.cpp for parsing and dispatch, cpdf_expintfunc.cpp for type 2 (exponential interpolation), cpdf_stitchfunc.cpp for type 3 (stitching). |
|
Package geom holds PDF user-space geometry: rectangles, transformation matrices, and the tolerance policy shared by every consumer.
|
Package geom holds PDF user-space geometry: rectangles, transformation matrices, and the tolerance policy shared by every consumer. |
|
Package icc converts through the one family of ICC profile that a PDF actually carries in practice: a matrix/TRC profile, gray or RGB, with an XYZ connection space.
|
Package icc converts through the one family of ICC profile that a PDF actually carries in practice: a matrix/TRC profile, gray or RGB, with an XYZ connection space. |
|
Package image reads image XObjects out of a PDF (ISO 32000-2 §8.9).
|
Package image reads image XObjects out of a PDF (ISO 32000-2 §8.9). |
|
internal
|
|
|
cffbuild
Package cffbuild assembles a bare CFF font program from nothing, for tests.
|
Package cffbuild assembles a bare CFF font program from nothing, for tests. |
|
iccbuild
Package iccbuild assembles minimal ICC profiles, for tests.
|
Package iccbuild assembles minimal ICC profiles, for tests. |
|
inferd
Package inferd is a client for the inferd inference daemon's IPC wire protocol (v2, inferd ADR 0021), speaking the wire directly as the protocol document defines it.
|
Package inferd is a client for the inferd inference daemon's IPC wire protocol (v2, inferd ADR 0021), speaking the wire directly as the protocol document defines it. |
|
liberation
Package liberation supplies substitute font programs for documents that embed none.
|
Package liberation supplies substitute font programs for documents that embed none. |
|
oneline
Package oneline folds a message onto one line, for a warning or a report row that quotes an error.
|
Package oneline folds a message onto one line, for a warning or a report row that quotes an error. |
|
pdfbuild
Package pdfbuild assembles a minimal PDF file from a list of objects, for tests.
|
Package pdfbuild assembles a minimal PDF file from a list of objects, for tests. |
|
t1build
Package t1build assembles a Type 1 font program in the PFA form from nothing, for tests.
|
Package t1build assembles a Type 1 font program in the PFA form from nothing, for tests. |
|
ttfbuild
Package ttfbuild assembles a TrueType font from nothing, for tests.
|
Package ttfbuild assembles a TrueType font from nothing, for tests. |
|
Package layout infers roles from geometry and typography, for the documents that declare none.
|
Package layout infers roles from geometry and typography, for the documents that declare none. |
|
Package objects defines the PDF object model this repository owns, plus the Store interface for reading it out of a file.
|
Package objects defines the PDF object model this repository owns, plus the Store interface for reading it out of a file. |
|
pdfcpu
Package pdfcpu adapts github.com/pdfcpu/pdfcpu (Apache-2.0, pure Go) to the objects.Store interface.
|
Package pdfcpu adapts github.com/pdfcpu/pdfcpu (Apache-2.0, pure Go) to the objects.Store interface. |
|
Package ocr recovers text from pages whose content stream does not carry it.
|
Package ocr recovers text from pages whose content stream does not carry it. |
|
gemma
Package gemma asks inferd's vision model what only a model can answer: a second reading of a word Tesseract is unsure of, a description of a picture, and the values of a chart (ADR 0044).
|
Package gemma asks inferd's vision model what only a model can answer: a second reading of a word Tesseract is unsure of, a description of a picture, and the values of a chart (ADR 0044). |
|
tesseract
Package tesseract reads page images with the tesseract CLI, run as a subprocess when it is installed (ADR 0043).
|
Package tesseract reads page images with the tesseract CLI, run as a subprocess when it is installed (ADR 0043). |
|
Package pdfspec converts a PDF to Markdown.
|
Package pdfspec converts a PDF to Markdown. |
|
Package render turns a page into pixels.
|
Package render turns a page into pixels. |
|
native
Package native rasterizes a page in Go, with no borrowed engine.
|
Package native rasterizes a page in Go, with no borrowed engine. |
|
pdfium
Package pdfium adapts github.com/klippa-app/go-pdfium (MIT) over pdfium compiled to WebAssembly to the render.Rasterizer interface.
|
Package pdfium adapts github.com/klippa-app/go-pdfium (MIT) over pdfium compiled to WebAssembly to the render.Rasterizer interface. |
|
Package sectionize reconstructs a document's clause hierarchy.
|
Package sectionize reconstructs a document's clause hierarchy. |
|
sink
|
|
|
markdown
Package markdown writes a doc.Document as Markdown.
|
Package markdown writes a doc.Document as Markdown. |
|
okf
Package okf writes a doc.Outline as an Open Knowledge Format bundle.
|
Package okf writes a doc.Outline as an Open Knowledge Format bundle. |
|
Package tag reads a PDF's logical structure tree: the /StructTreeRoot graph described in ISO 32000-2 §14.7.
|
Package tag reads a PDF's logical structure tree: the /StructTreeRoot graph described in ISO 32000-2 §14.7. |
Click to show internal directories.
Click to hide internal directories.