pkg/

directory
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 29, 2026 License: MIT

Directories

Path Synopsis
Package crop computes crop rectangles for exact-size image output.
Package crop computes crop rectangles for exact-size image output.
Package css is a pure-Go, hand-written CSS engine: it tokenizes and parses CSS (CSS Syntax Level 3), matches selectors against a DOM with correct specificity, and runs the cascade and inheritance to compute the effective style of each element.
Package css is a pure-Go, hand-written CSS engine: it tokenizes and parses CSS (CSS Syntax Level 3), matches selectors against a DOM with correct specificity, and runs the cascade and inheritance to compute the effective style of each element.
Package doctaculous is the public API for the doctaculous document toolkit.
Package doctaculous is the public API for the doctaculous document toolkit.
Package docx is a WordprocessingML (.docx) document model with a reader and a writer: Open/OpenBytes/OpenReaderAt parse a package into the exported model; Write/Bytes serialize a model back to a complete package.
Package docx is a WordprocessingML (.docx) document model with a reader and a writer: Open/OpenBytes/OpenReaderAt parse a package into the exported model; Write/Bytes serialize a model back to a complete package.
cssbox
Package cssbox lowers a parsed DOCX document into the recursive cssbox tree the CSS layout engine consumes, replacing the flat pkg/docx/lower + pkg/layout/box path.
Package cssbox lowers a parsed DOCX document into the recursive cssbox tree the CSS layout engine consumes, replacing the flat pkg/docx/lower + pkg/layout/box path.
style
Package style resolves WordprocessingML's style cascade into the effective run and paragraph properties used by the reflow layout engine.
Package style resolves WordprocessingML's style cascade into the effective run and paragraph properties used by the reflow layout engine.
Package epub is a read-only EPUB reader: it opens the container, walks META-INF/container.xml to the OPF package document, and extracts the spine documents' body markup in reading order plus their stylesheets — the pieces the HTML pipeline lays out (EPUB content IS XHTML, so the reflow engine does the real work).
Package epub is a read-only EPUB reader: it opens the container, walks META-INF/container.xml to the OPF package document, and extracts the spine documents' body markup in reading order plus their stylesheets — the pieces the HTML pipeline lays out (EPUB content IS XHTML, so the reflow engine does the real work).
Package font turns embedded PDF font programs into glyph outlines.
Package font turns embedded PDF font programs into glyph outlines.
standard
Package standard bundles permissively-licensed substitute fonts for the PDF standard-14 base fonts (and common aliases) so that simple fonts which declare a standard /BaseFont but embed no font program can still be rendered.
Package standard bundles permissively-licensed substitute fonts for the PDF standard-14 base fonts (and common aliases) so that simple fonts which declare a standard /BaseFont but embed no font program can still be rendered.
Package heif decodes HEIF/HEIC still images (ISO/IEC 23008-12 containers holding HEVC-coded pictures) in pure Go.
Package heif decodes HEIF/HEIC still images (ISO/IEC 23008-12 containers holding HEVC-coded pictures) in pure Go.
hevc
Package hevc decodes intra-coded HEVC (H.265) still pictures in pure Go.
Package hevc decodes intra-coded HEVC (H.265) still pictures in pure Go.
Package html is the HTML frontend: it parses HTML bytes (via golang.org/x/net/html) into an owned, read-only DOM that implements the pkg/css Node interface, and collects the stylesheets the cascade needs (<style> contents, <link rel=stylesheet> hrefs, and inline style="").
Package html is the HTML frontend: it parses HTML bytes (via golang.org/x/net/html) into an owned, read-only DOM that implements the pkg/css Node interface, and collects the stylesheets the cascade needs (<style> contents, <link rel=stylesheet> hrefs, and inline style="").
css
Package css is the box-generation stage: it walks an html.Document, drives the pkg/css cascade per element, and emits a cssbox tree.
Package css is the box-generation stage: it walks an html.Document, drives the pkg/css cascade per element, and emits a cssbox tree.
cssbox
Package cssbox defines the recursive, format-neutral box tree that the CSS layout engine consumes.
Package cssbox defines the recursive, format-neutral box tree that the CSS layout engine consumes.
font
Package font provides a concurrency-safe cache of resolved font faces for the reflow engine.
Package font provides a concurrency-safe cache of resolved font faces for the reflow engine.
inline
Package inline is the format-neutral inline-layout core: text shaping, greedy line-breaking, and horizontal alignment math shared by every reflow engine.
Package inline is the format-neutral inline-layout core: text shaping, greedy line-breaking, and horizontal alignment math shared by every reflow engine.
paint
Package paint draws a laid-out page (pkg/layout) onto a render.Device.
Package paint draws a laid-out page (pkg/layout) onto a render.Device.
Package markdown is the Markdown input frontend: it converts CommonMark + GFM source into a complete HTML document that the HTML pipeline (parse → box generation → CSS layout) renders.
Package markdown is the Markdown input frontend: it converts CommonMark + GFM source into a complete HTML document that the HTML pipeline (parse → box generation → CSS layout) renders.
pdf
Package pdf parses PDF file structure: the tokenizer, indirect objects, cross-reference tables and streams, object streams, and the page tree.
Package pdf parses PDF file structure: the tokenizer, indirect objects, cross-reference tables and streams, object streams, and the page tree.
content
Package content interprets a PDF page content stream.
Package content interprets a PDF page content stream.
extract
Package extract reconstructs document structure (paragraphs, headings, lists, tables) from a PDF's positioned glyphs and vector graphics, then builds a *cssbox.Box tree the existing conversion writers turn into Markdown/HTML.
Package extract reconstructs document structure (paragraphs, headings, lists, tables) from a PDF's positioned glyphs and vector graphics, then builds a *cssbox.Box tree the existing conversion writers turn into Markdown/HTML.
filter
Package filter decodes PDF stream data.
Package filter decodes PDF stream data.
filter/jbig2
Package jbig2 一个高性能、零依赖的纯 Go 语言 JBIG2 解码器
Package jbig2 一个高性能、零依赖的纯 Go 语言 JBIG2 解码器
function
Package function implements the PDF Function objects of ISO 32000-1 §7.10.
Package function implements the PDF Function objects of ISO 32000-1 §7.10.
pageres
Package pageres resolves the page-/Resources entries the raster and extract backends share: fonts, form XObjects, and their /Matrix and /BBox.
Package pageres resolves the page-/Resources entries the raster and extract backends share: fonts, form XObjects, and their /Matrix and /BBox.
Package pptx is a read-only PresentationML (.pptx) reader: it extracts each visible slide's shapes — text frames with their paragraph/run formatting and bullet levels, pictures, and tables — with positions resolved through the slide → layout → master placeholder inheritance, so a conversion frontend can lay each slide out as one fixed-size page.
Package pptx is a read-only PresentationML (.pptx) reader: it extracts each visible slide's shapes — text frames with their paragraph/run formatting and bullet levels, pictures, and tables — with positions resolved through the slide → layout → master placeholder inheritance, so a conversion frontend can lay each slide out as one fixed-size page.
Package render defines the device-independent graphics layer: the Device interface that the content interpreter drives, along with the geometry types (paths, matrices, paint) shared between the interpreter and concrete backends.
Package render defines the device-independent graphics layer: the Device interface that the content interpreter drives, along with the geometry types (paths, matrices, paint) shared between the interpreter and concrete backends.
csvwrite
Package csvwrite renders the TABLES of a cssbox tree (the shared box model produced by the HTML, DOCX, Markdown, XLSX, and PDF-extraction frontends) as delimiter-separated values.
Package csvwrite renders the TABLES of a cssbox tree (the shared box model produced by the HTML, DOCX, Markdown, XLSX, and PDF-extraction frontends) as delimiter-separated values.
docxwrite
Package docxwrite renders a cssbox tree (the shared box model produced by the HTML, DOCX, Markdown, and PDF-extraction frontends) to a WordprocessingML (.docx) package.
Package docxwrite renders a cssbox tree (the shared box model produced by the HTML, DOCX, Markdown, and PDF-extraction frontends) to a WordprocessingML (.docx) package.
epubwrite
Package epubwrite renders a cssbox tree (the shared box model produced by the HTML, DOCX, Markdown, and PDF-extraction frontends) to an EPUB 3 package.
Package epubwrite renders a cssbox tree (the shared box model produced by the HTML, DOCX, Markdown, and PDF-extraction frontends) to an EPUB 3 package.
htmlwrite
Package htmlwrite serializes a cssbox tree (the shared box model produced by the HTML and DOCX frontends) back to HTML.
Package htmlwrite serializes a cssbox tree (the shared box model produced by the HTML and DOCX frontends) back to HTML.
imageconv
Package imageconv re-encodes raster images into formats the office/EPUB output containers accept.
Package imageconv re-encodes raster images into formats the office/EPUB output containers accept.
internal/boxwalk
Package boxwalk holds the format-neutral cssbox tree analysis shared by the markdown and htmlwrite writers.
Package boxwalk holds the format-neutral cssbox tree analysis shared by the markdown and htmlwrite writers.
markdown
Package markdown renders a cssbox tree (the shared box model produced by the HTML and DOCX frontends) to GitHub-Flavored Markdown, or to plain text.
Package markdown renders a cssbox tree (the shared box model produced by the HTML and DOCX frontends) to GitHub-Flavored Markdown, or to plain text.
pdfwrite
Package pdfwrite implements a render.Device that emits a PDF document instead of pixels.
Package pdfwrite implements a render.Device that emits a PDF document instead of pixels.
pptxwrite
Package pptxwrite renders a cssbox tree (the shared box model produced by the HTML, DOCX, Markdown, and PDF-extraction frontends) to a PresentationML (.pptx) deck.
Package pptxwrite renders a cssbox tree (the shared box model produced by the HTML, DOCX, Markdown, and PDF-extraction frontends) to a PresentationML (.pptx) deck.
raster
Package raster implements the render.Device interface on top of an image.RGBA.
Package raster implements the render.Device interface on top of an image.RGBA.
rtfwrite
Package rtfwrite renders a cssbox tree (the shared box model produced by the HTML, DOCX, Markdown, and PDF-extraction frontends) to a Rich Text Format document.
Package rtfwrite renders a cssbox tree (the shared box model produced by the HTML, DOCX, Markdown, and PDF-extraction frontends) to a Rich Text Format document.
xlsxwrite
Package xlsxwrite renders the TABLES of a cssbox tree (the shared box model produced by every frontend) as a SpreadsheetML (.xlsx) workbook: one worksheet per table, named from the table's caption when present.
Package xlsxwrite renders the TABLES of a cssbox tree (the shared box model produced by every frontend) as a SpreadsheetML (.xlsx) workbook: one worksheet per table, named from the table's caption when present.
Package resource defines the seam by which a document's external references (stylesheets via <link>, images, and fonts) are resolved to bytes.
Package resource defines the seam by which a document's external references (stylesheets via <link>, images, and fonts) are resolved to bytes.
Package rtf reads Rich Text Format documents into HTML for the reflow pipeline — the same shape the CSV and XLSX frontends use: a dependency-free hand-rolled parser producing markup the HTML engine lays out, so every output format follows.
Package rtf reads Rich Text Format documents into HTML for the reflow pipeline — the same shape the CSV and XLSX frontends use: a dependency-free hand-rolled parser producing markup the HTML engine lays out, so every output format follows.
Package xlsx is a read-only SpreadsheetML (.xlsx) reader: it extracts each visible sheet's CACHED cell values — the last value Excel computed, stored in the file — as display strings, along with the presentation facts a document conversion needs (bold/italic, fill color, alignment, merged ranges).
Package xlsx is a read-only SpreadsheetML (.xlsx) reader: it extracts each visible sheet's CACHED cell values — the last value Excel computed, stored in the file — as display strings, along with the presentation facts a document conversion needs (bold/italic, fill color, alignment, merged ranges).
internal/xmlpart
Package xmlpart is the raw-fidelity XML layer the xlsx editor rewrites dirty parts through.
Package xmlpart is the raw-fidelity XML layer the xlsx editor rewrites dirty parts through.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL