Directories
¶
| Path | Synopsis |
|---|---|
|
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 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 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). |
|
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. |
|
docd
Package docd hosts granite-docling behind the ocr/ipc wire.
|
Package docd hosts granite-docling behind the ocr/ipc wire. |
|
doctags
Package doctags parses DocTags, the output format of the granite-docling vision-language models, into this repo's doc model.
|
Package doctags parses DocTags, the output format of the granite-docling vision-language models, into this repo's doc model. |
|
ipc
Package ipc is the wire between a pdf-spec CLI and whatever holds the model.
|
Package ipc is the wire between a pdf-spec CLI and whatever holds the model. |
|
Package render turns a page into pixels.
|
Package render turns a page into pixels. |
|
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.