package
1.0.8
Repository: https://github.com/smarteng/mindoc.git
Documentation: pkg.go.dev

# Functions

GetPath gets the path to wkhtmltopdf.
NewPage creates a new input page from a local or web resource (filepath or URL).
NewPageOptions returns a new PageOptions struct with all options.
NewPageReader creates a new PageReader from an io.Reader.
NewPDFGenerator returns a new PDFGenerator struct with all options created and checks if wkhtmltopdf can be found on the system.
SetPath sets the path to wkhtmltopdf.

# Constants

Landscape mode.
Portrait mode.
841 x 1189 mm.
594 x 841 mm.
420 x 594 mm.
297 x 420 mm.
210 x 297 mm, 8.26.
148 x 210 mm.
105 x 148 mm.
74 x 105 mm.
52 x 74 mm.
37 x 52 mm.
1000 x 1414 mm.
707 x 1000 mm.
31 x 44 mm.
500 x 707 mm.
353 x 500 mm.
250 x 353 mm.
176 x 250 mm, 6.93.
125 x 176 mm.
88 x 125 mm.
62 x 88 mm.
33 x 62 mm.
163 x 229 mm.
105 x 241 mm, U.S.
Unknown, or a user defined size.
110 x 220 mm.
7.5 x 10 inches, 190.5 x 254 mm.
210 x 330 mm.
431.8 x 279.4 mm.
8.5 x 14 inches, 215.9 x 355.6 mm.
8.5 x 11 inches, 215.9 x 279.4 mm.
279.4 x 431.8 mm.

# Structs

Page is the input struct for each page.
PageOptions are options for each input page.
PageReader is one input page (a HTML document) that is read from an io.Reader You can add only one Page from a reader.
PDFGenerator is the main wkhtmltopdf struct, always use NewPDFGenerator to obtain a new PDFGenerator struct.