Versions in this module Expand all Collapse all v0 v0.2.0 Jun 11, 2026 Changes in this version + var ErrHTMLHeaderAfterContent = errors.New("html top-level header/footer must be added before any other content") v0.1.0 Jun 10, 2026 Changes in this version + var ErrCannotGenerateInLowMemoryMode = errors.New("an error has occurred while trying to generate PDFs in low memory mode") + var ErrCannotGenerateInParallelMode = errors.New("an error has occurred while trying to generate PDFs concurrently") + var ErrFooterHeightIsGreaterThanUsefulArea = errors.New("footer height is greater than page useful area") + var ErrHeaderHeightIsGreaterThanUsefulArea = errors.New("header height is greater than page useful area") + func FromHTML(htmlStr string, cfgs ...*entity.Config) (*core.Pdf, error) + func FromHTMLCtx(ctx context.Context, htmlStr string, cfgs ...*entity.Config) (*core.Pdf, error) + func FromHTMLReader(r io.Reader, cfgs ...*entity.Config) (*core.Pdf, error) + func FromHTMLReaderCtx(ctx context.Context, r io.Reader, cfgs ...*entity.Config) (*core.Pdf, error) + type Paper struct + func New(cfgs ...*entity.Config) *Paper + func NewPaper(cfgs ...*entity.Config) *Paper + func (m *Paper) AddAutoRow(cols ...core.Col) core.Row + func (m *Paper) AddHTML(htmlStr string) error + func (m *Paper) AddHTMLCtx(ctx context.Context, htmlStr string) error + func (m *Paper) AddPages(pages ...core.Page) + func (m *Paper) AddRow(rowHeight float64, cols ...core.Col) core.Row + func (m *Paper) AddRows(rows ...core.Row) + func (m *Paper) FitInCurrentPage(heightNewLine float64) bool + func (m *Paper) Generate() (*core.Pdf, error) + func (m *Paper) GenerateCtx(ctx context.Context) (*core.Pdf, error) + func (m *Paper) GetCurrentConfig() *entity.Config + func (m *Paper) GetStructure() *node.Node[core.Structure] + func (m *Paper) RegisterFooter(rows ...core.Row) error + func (m *Paper) RegisterHeader(rows ...core.Row) error