Documentation
¶
Overview ¶
Package render renders text in the style of GitHub using gofpdf.
Index ¶
- func BasicBlockquote(f *gofpdf.Fpdf, text string)
- func BasicP(pdf *gofpdf.Fpdf, text string)
- func Blockquote(f *gofpdf.Fpdf, contents model.Contents)
- func CodeBlock(pdf *gofpdf.Fpdf, contents model.Contents)
- func ContentBox(fpdf *gofpdf.Fpdf) (width, height float64)
- func ContentBoxHeight(fpdf *gofpdf.Fpdf) float64
- func ContentBoxWidth(fpdf *gofpdf.Fpdf) float64
- func FullP(pdf *gofpdf.Fpdf, contents model.Contents)
- func H1(f *gofpdf.Fpdf, contents model.Contents)
- func H2(f *gofpdf.Fpdf, contents model.Contents)
- func H3(f *gofpdf.Fpdf, contents model.Contents)
- func H4(f *gofpdf.Fpdf, contents model.Contents)
- func H5(f *gofpdf.Fpdf, contents model.Contents)
- func H6(f *gofpdf.Fpdf, contents model.Contents)
- func HR(f *gofpdf.Fpdf)
- func Image(f *gofpdf.Fpdf, src, link string)
- func List(pdf *gofpdf.Fpdf, list model.ListContent)
- func SetMetaData(f *gofpdf.Fpdf, author, title string)
- func Setup(f *gofpdf.Fpdf)
- func Table(f *gofpdf.Fpdf, table model.TableContent)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BasicBlockquote ¶
BasicBlockquote writes text to a blockquote without rendering any enclosed elements.
func Blockquote ¶
Blockquote does what BasicBlockquote don't.
func ContentBox ¶
ContentBox returns the width and height of a page minus margins.
func ContentBoxHeight ¶
ContentBoxHeight returns the height of a page minus top and bottom margins.
func ContentBoxWidth ¶
ContentBoxWidth returns the width of a width minus left and right margins.
func FullP ¶
FullP will (when finished) write a paragraph with plain, bold, italic, bold/italic, and linked text.
func List ¶
func List(pdf *gofpdf.Fpdf, list model.ListContent)
List writes a list with any level of indentation to a gofpdf.Fpdf.
func Table ¶
func Table(f *gofpdf.Fpdf, table model.TableContent)
Table writes a table with nicely split lines to a gofpdf.Fpdf. https://github.com/jung-kurt/gofpdf/blob/master/fpdf_test.go#L525
Types ¶
This section is empty.