Documentation
¶
Overview ¶
Package xjb_pdf is the module facade: it re-exports the capabilities that live in the xp_* packages so callers have a single import.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarkdownToPDF ¶
MarkdownToPDF renders CommonMark + GFM markdown into PDF bytes. Fonts, page size and margins are fixed inside the module; the caller supplies content only. See xp_markdown.MarkdownToPDF for the behaviour this delegates to.
func MarkdownToPDFWithExtensions ¶ added in v0.0.4
func MarkdownToPDFWithExtensions(ctx context.Context, markdown []byte, extensions ...xp_render.Extension) ([]byte, error)
MarkdownToPDFWithExtensions preserves embedded CJK defaults while applying caller plugins. Import xp_render directly to omit the bundled font assets.
func ModuleVersion ¶
func ModuleVersion() string
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package xp_fonts supplies the optional embedded Noto Sans SC font extension.
|
Package xp_fonts supplies the optional embedded Noto Sans SC font extension. |
|
Package xp_markdown preserves the embedded-CJK convenience entry point.
|
Package xp_markdown preserves the embedded-CJK convenience entry point. |
|
Package xp_render owns the shared Markdown-to-PDF pipeline.
|
Package xp_render owns the shared Markdown-to-PDF pipeline. |
Click to show internal directories.
Click to hide internal directories.