Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
doctaculous
command
Command doctaculous is the command-line interface to the doctaculous document toolkit.
|
Command doctaculous is the command-line interface to the doctaculous document toolkit. |
|
dumpfixtures
command
Command dumpfixtures materializes the in-memory test PDF fixtures to disk so they can be inspected or opened in a viewer.
|
Command dumpfixtures materializes the in-memory test PDF fixtures to disk so they can be inspected or opened in a viewer. |
|
pkg
|
|
|
crop
Package crop computes crop rectangles for exact-size image output.
|
Package crop computes crop rectangles for exact-size image output. |
|
css
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. |
|
doctaculous
Package doctaculous is the public API for the doctaculous document toolkit.
|
Package doctaculous is the public API for the doctaculous document toolkit. |
|
docx
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. |
|
docx/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. |
|
docx/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. |
|
epub
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). |
|
font
Package font turns embedded PDF font programs into glyph outlines.
|
Package font turns embedded PDF font programs into glyph outlines. |
|
font/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. |
|
heif
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. |
|
heif/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. |
|
html
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=""). |
|
layout/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. |
|
layout/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. |
|
layout/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. |
|
layout/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. |
|
layout/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. |
|
markdown
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. |
|
pdf/content
Package content interprets a PDF page content stream.
|
Package content interprets a PDF page content stream. |
|
pdf/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. |
|
pdf/filter
Package filter decodes PDF stream data.
|
Package filter decodes PDF stream data. |
|
pdf/filter/jbig2
Package jbig2 一个高性能、零依赖的纯 Go 语言 JBIG2 解码器
|
Package jbig2 一个高性能、零依赖的纯 Go 语言 JBIG2 解码器 |
|
pdf/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. |
|
pdf/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. |
|
pptx
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. |
|
render
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. |
|
render/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. |
|
render/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. |
|
render/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. |
|
render/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. |
|
render/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. |
|
render/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. |
|
render/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. |
|
render/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. |
|
render/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. |
|
render/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. |
|
render/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. |
|
render/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. |
|
resource
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. |
|
rtf
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. |
|
xlsx
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). |
|
xlsx/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. |
Click to show internal directories.
Click to hide internal directories.