Directories
¶
| Path | Synopsis |
|---|---|
|
Package barcode generates 1D and 2D barcodes that can be rendered directly into a PDF content stream as vector graphics (no images).
|
Package barcode generates 1D and 2D barcodes that can be rendered directly into a PDF content stream as vector graphics (no images). |
|
cmd
|
|
|
folio
command
Command folio is a CLI tool for PDF operations.
|
Command folio is a CLI tool for PDF operations. |
|
gen-metrics
command
gen-metrics parses Adobe AFM files and generates Go source for font width and kerning tables.
|
gen-metrics parses Adobe AFM files and generates Go source for font width and kerning tables. |
|
wasm
command
|
|
|
Package content provides a builder for PDF content streams — the sequences of operators that render text, graphics, and images on a page (ISO 32000 §7.8.2).
|
Package content provides a builder for PDF content streams — the sequences of operators that render text, graphics, and images on a page (ISO 32000 §7.8.2). |
|
Package core implements the fundamental PDF object types defined in ISO 32000 §7.3 — Boolean, Number, String, Name, Array, Dictionary, Stream, and Null — plus indirect references (§7.3.10) and standard security handler encryption (§7.6).
|
Package core implements the fundamental PDF object types defined in ISO 32000 §7.3 — Boolean, Number, String, Name, Array, Dictionary, Stream, and Null — plus indirect references (§7.3.10) and standard security handler encryption (§7.6). |
|
Package document is the top-level API for building PDF files.
|
Package document is the top-level API for building PDF files. |
|
examples
|
|
|
cjk
command
CJK demonstrates PDF generation with Chinese, Japanese, and Korean text.
|
CJK demonstrates PDF generation with Chinese, Japanese, and Korean text. |
|
fonts
command
Fonts demonstrates PDF generation with multiple fonts: the 14 standard PDF fonts, custom embedded fonts via @font-face, and Unicode text including Chinese, Russian, and Japanese.
|
Fonts demonstrates PDF generation with multiple fonts: the 14 standard PDF fonts, custom embedded fonts via @font-face, and Unicode text including Chinese, Russian, and Japanese. |
|
forms
command
Forms demonstrates creating a PDF with interactive AcroForm fields:
|
Forms demonstrates creating a PDF with interactive AcroForm fields: |
|
hello
command
Hello creates a one-page PDF with a heading and a paragraph.
|
Hello creates a one-page PDF with a heading and a paragraph. |
|
html-to-pdf
command
HTML-to-PDF demonstrates converting a rich HTML document with CSS into a polished, multi-page PDF using the html.ConvertFull API.
|
HTML-to-PDF demonstrates converting a rich HTML document with CSS into a polished, multi-page PDF using the html.ConvertFull API. |
|
import-page
command
Import-page demonstrates loading an existing PDF as a template and adding dynamic content on top — the standard workflow for invoices, receipts, certificates, and forms.
|
Import-page demonstrates loading an existing PDF as a template and adding dynamic content on top — the standard workflow for invoices, receipts, certificates, and forms. |
|
indic
command
Indic demonstrates OpenType shaping for Brahmic scripts.
|
Indic demonstrates OpenType shaping for Brahmic scripts. |
|
invoice
command
Invoice example — generates a professional invoice PDF from HTML+CSS.
|
Invoice example — generates a professional invoice PDF from HTML+CSS. |
|
links
command
Links demonstrates all link-related features in Folio:
|
Links demonstrates all link-related features in Folio: |
|
merge
command
Merge demonstrates reading, merging, and inspecting PDF documents:
|
Merge demonstrates reading, merging, and inspecting PDF documents: |
|
optimize
command
Optimize compares the default writer with the optimized writer (cross-reference streams per ISO 32000-1 §7.5.8 plus object streams per ISO 32000-1 §7.5.7, orphan sweep over §7.5.4 reachability, and Flate recompression of eligible payloads per §7.4.4) across several document shapes and reports the byte-size delta for each.
|
Optimize compares the default writer with the optimized writer (cross-reference streams per ISO 32000-1 §7.5.8 plus object streams per ISO 32000-1 §7.5.7, orphan sweep over §7.5.4 reachability, and Flate recompression of eligible payloads per §7.4.4) across several document shapes and reports the byte-size delta for each. |
|
redact
command
Redact demonstrates permanently removing sensitive content from PDFs.
|
Redact demonstrates permanently removing sensitive content from PDFs. |
|
report
command
Report demonstrates building a multi-page business document using the Go layout API directly — no HTML involved.
|
Report demonstrates building a multi-page business document using the Go layout API directly — no HTML involved. |
|
rtl
command
RTL demonstrates Right-To-Left text support: Hebrew bidi, Arabic contextual shaping, the rlig lam-alef ligature, GPOS mark-to-base attachment for harakat, kashida justification, and ActualText round-trip for accessibility and copy/paste.
|
RTL demonstrates Right-To-Left text support: Hebrew bidi, Arabic contextual shaping, the rlig lam-alef ligature, GPOS mark-to-base attachment for harakat, kashida justification, and ActualText round-trip for accessibility and copy/paste. |
|
sign
command
Sign demonstrates digitally signing a PDF with a PAdES B-B signature.
|
Sign demonstrates digitally signing a PDF with a PAdES B-B signature. |
|
template
command
Example: render a Go html/template to PDF using the tmpl package.
|
Example: render a Go html/template to PDF using the tmpl package. |
|
zugferd
command
ZUGFeRD demonstrates creating a PDF/A-3B compliant invoice with an embedded Factur-X/ZUGFeRD XML file attachment.
|
ZUGFeRD demonstrates creating a PDF/A-3B compliant invoice with an embedded Factur-X/ZUGFeRD XML file attachment. |
|
Package export provides a C ABI for the Folio PDF library.
|
Package export provides a C ABI for the Folio PDF library. |
|
Package font handles font loading, parsing, metrics, subsetting, and PDF embedding for TrueType, OpenType, and the 14 standard PDF fonts (ISO 32000 §9.6.2.2).
|
Package font handles font loading, parsing, metrics, subsetting, and PDF embedding for TrueType, OpenType, and the 14 standard PDF fonts (ISO 32000 §9.6.2.2). |
|
Package forms provides AcroForm support for creating and filling interactive PDF form fields (ISO 32000 §12.7).
|
Package forms provides AcroForm support for creating and filling interactive PDF form fields (ISO 32000 §12.7). |
|
Package html converts HTML+CSS markup into layout elements that the github.com/carlos7ags/folio/layout package can render to PDF.
|
Package html converts HTML+CSS markup into layout elements that the github.com/carlos7ags/folio/layout package can render to PDF. |
|
Package image decodes raster images and builds PDF image XObjects (ISO 32000 §8.8.5) for embedding in documents.
|
Package image decodes raster images and builds PDF image XObjects (ISO 32000 §8.8.5) for embedding in documents. |
|
Package layout implements a high-level, CSS-like element model for building PDF pages from composable building blocks.
|
Package layout implements a high-level, CSS-like element model for building PDF pages from composable building blocks. |
|
Package reader parses existing PDF files and provides access to document structure, pages, and content.
|
Package reader parses existing PDF files and provides access to document structure, pages, and content. |
|
Package sign implements PAdES digital signatures for PDF documents per ISO 32000 §12.8 and ETSI TS 102 778.
|
Package sign implements PAdES digital signatures for PDF documents per ISO 32000 §12.8 and ETSI TS 102 778. |
|
Package svg parses SVG markup and renders it into PDF content streams as native vector graphics — no rasterization is involved.
|
Package svg parses SVG markup and renders it into PDF content streams as native vector graphics — no rasterization is involved. |
|
Package tmpl provides Go html/template integration for Folio.
|
Package tmpl provides Go html/template integration for Folio. |
|
unicode
|
|
|
grapheme
Package grapheme implements Unicode extended grapheme cluster segmentation (UAX #29 §3.1.1, rules GB1–GB13).
|
Package grapheme implements Unicode extended grapheme cluster segmentation (UAX #29 §3.1.1, rules GB1–GB13). |
Click to show internal directories.
Click to hide internal directories.
