MCPcopy Index your code

hub / github.com/SebastiaanKlippert/go-wkhtmltopdf / functions

Functions122 in github.com/SebastiaanKlippert/go-wkhtmltopdf

↓ 52 callersMethodSet
(key, value string)
options.go:225
↓ 21 callersMethodAddPage
AddPage adds a new input page to the document. A page is an input HTML page, it can span multiple pages in the output document. It is a Page when read
wkhtmltopdf.go:203
↓ 18 callersMethodCreate
Create creates the PDF document and stores it in the internal buffer if no error is returned
wkhtmltopdf.go:315
↓ 16 callersFunctionNewPDFGenerator
NewPDFGenerator returns a new PDFGenerator struct with all options created and checks if wkhtmltopdf can be found on the system
wkhtmltopdf.go:382
↓ 13 callersMethodArgs
()
wkhtmltopdf.go:109
↓ 12 callersFunctionNewPageReader
NewPageReader creates a new PageReader from an io.Reader
wkhtmltopdf.go:99
↓ 8 callersMethodArgString
ArgString returns Args as a single string
wkhtmltopdf.go:196
↓ 8 callersMethodBytes
Bytes returns the output byte slice from the output buffer used if OutputFile is empty
wkhtmltopdf.go:224
↓ 8 callersMethodfindPath
findPath finds the path to wkhtmltopdf by - first looking in the current dir - looking in the PATH and PATHEXT environment dirs - using the WKHTMLTOPD
wkhtmltopdf.go:256
↓ 7 callersFunctionNewPage
NewPage creates a new input page from a local or web resource (filepath or URL)
wkhtmltopdf.go:69
↓ 7 callersMethodWriteFile
WriteFile writes the contents of the output buffer to a file
wkhtmltopdf.go:242
↓ 7 callersFunctionnewTestPDFGenerator
(tb testing.TB)
wkhtmltopdf_test.go:20
↓ 6 callersFunctionassertJSON
(t *testing.T, option, newOption interface{})
json_test.go:127
↓ 5 callersMethodBuffer
Buffer returns the embedded output buffer used if OutputFile is empty
wkhtmltopdf.go:219
↓ 5 callersMethodReader
()
wkhtmltopdf.go:111
↓ 5 callersFunctionoptionsHaveArg
(opts interface{}, arg string)
release_test.go:116
↓ 5 callersFunctionoptsToArgs
(opts interface{})
options.go:440
↓ 4 callersMethodSet
(s string)
wkhtmltopdf.go:29
↓ 4 callersMethodToJSON
ToJSON creates JSON of the complete representation of the PDFGenerator. It also saves all pages. For a PageReader page, the content is stored as a Bas
json.go:27
↓ 4 callersFunctionnewPageOptions
()
options.go:354
↓ 3 callersFunctionGetPath
GetPath gets the path to wkhtmltopdf
wkhtmltopdf.go:43
↓ 3 callersFunctionNewPDFGeneratorFromJSON
NewPDFGeneratorFromJSON creates a new PDFGenerator and restores all the settings and pages from a JSON byte slice which should be created using PDFGen
json.go:60
↓ 3 callersFunctionNewPDFPreparer
NewPDFPreparer returns a PDFGenerator object without looking for the wkhtmltopdf executable file. This is useful to prepare a PDF file that is generat
wkhtmltopdf.go:390
↓ 3 callersMethodParse
()
options.go:164
↓ 3 callersMethodParse
()
options.go:187
↓ 3 callersMethodParse
()
options.go:242
↓ 3 callersMethodParse
()
options.go:267
↓ 3 callersMethodParse
()
options.go:291
↓ 3 callersMethodSet
(value string)
options.go:199
↓ 3 callersFunctionexpectedArgString
()
wkhtmltopdf_test.go:53
↓ 3 callersFunctionnewHeaderAndFooterOptions
()
options.go:407
↓ 2 callersMethodArgs
Args returns the commandline arguments as a string slice
wkhtmltopdf.go:168
↓ 2 callersMethodGet
()
wkhtmltopdf.go:23
↓ 2 callersMethodInputFile
()
wkhtmltopdf.go:110
↓ 2 callersFunctionNewPageOptions
NewPageOptions returns a new PageOptions struct with all options
wkhtmltopdf.go:126
↓ 2 callersMethodParse
()
options.go:212
↓ 2 callersMethodResetPages
ResetPages drops all pages previously added by AddPage or SetPages. This allows reuse of current instance of PDFGenerator with all of it's configurati
wkhtmltopdf.go:214
↓ 2 callersFunctionSetPath
SetPath sets the path to wkhtmltopdf
wkhtmltopdf.go:38
↓ 2 callersMethodSetStderr
SetStderr sets the output writer for Stderr when running the wkhtmltopdf command. You only need to call this when you want to print the output of wkht
wkhtmltopdf.go:237
↓ 2 callersFunctionnewGlobalOptions
()
options.go:306
↓ 2 callersFunctionnewOutlineOptions
()
options.go:345
↓ 2 callersFunctionnewTocOptions
()
options.go:429
↓ 2 callersMethodrun
(ctx context.Context)
wkhtmltopdf.go:324
↓ 1 callersMethodCreateContext
CreateContext is Create with a context passed to exec.CommandContext when calling wkhtmltopdf
wkhtmltopdf.go:320
↓ 1 callersMethodParse
()
options.go:156
↓ 1 callersMethodSet
(value string)
options.go:174
↓ 1 callersMethodSet
(value uint)
options.go:252
↓ 1 callersMethodSet
(value float64)
options.go:277
↓ 1 callersMethodSet
(value bool)
options.go:298
↓ 1 callersMethodSetOutput
SetOutput sets the output to write the PDF to, when this method is called, the internal buffer will not be used, so the Bytes(), Buffer() and WriteFil
wkhtmltopdf.go:230
↓ 1 callersMethodSetPages
SetPages resets all pages
wkhtmltopdf.go:208
↓ 1 callersMethodUnset
()
options.go:178
↓ 1 callersMethodUnset
()
options.go:203
↓ 1 callersMethodUnset
()
options.go:232
↓ 1 callersMethodUnset
()
options.go:257
↓ 1 callersMethodUnset
()
options.go:282
↓ 1 callersMethodUnset
()
options.go:302
↓ 1 callersMethodcheckDuplicateFlags
()
wkhtmltopdf.go:298
↓ 1 callersFunctioncmdConfig
(cmd *exec.Cmd)
cmdcfg.go:8
MethodArgs
()
options.go:48
MethodArgs
()
options.go:59
MethodArgs
()
options.go:114
MethodArgs
()
options.go:138
MethodArgs
()
options.go:151
MethodArgs
Args returns the argument slice and is part of the page interface
wkhtmltopdf.go:59
MethodArgs
Args returns the argument slice and is part of the page interface
wkhtmltopdf.go:89
MethodArgs
Args returns the argument slice
wkhtmltopdf.go:121
FunctionBenchmarkArgs
(b *testing.B)
wkhtmltopdf_test.go:668
FunctionExampleNewPDFGenerator
()
simplesample_test.go:10
FunctionExampleNewPDFGeneratorFromJSON
()
simplesample_test.go:51
MethodInputFile
InputFile returns the input string and is part of the page interface
wkhtmltopdf.go:54
MethodInputFile
InputFile returns the input string and is part of the page interface
wkhtmltopdf.go:84
MethodMarshalJSON
()
json.go:105
MethodMarshalJSON
()
json.go:125
MethodMarshalJSON
()
json.go:146
MethodMarshalJSON
()
json.go:168
MethodMarshalJSON
()
json.go:189
MethodMarshalJSON
()
json.go:209
MethodReader
Reader returns the io.Reader and is part of the page interface
wkhtmltopdf.go:64
MethodReader
Reader returns the io.Reader and is part of the page interface
wkhtmltopdf.go:94
FunctionTestArgString
(t *testing.T)
wkhtmltopdf_test.go:57
FunctionTestBoolOption
(t *testing.T)
wkhtmltopdf_test.go:650
FunctionTestBoolOption_JSON
(t *testing.T)
json_test.go:97
FunctionTestBufferReset
(t *testing.T)
wkhtmltopdf_test.go:424
FunctionTestContextCancellation
(t *testing.T)
wkhtmltopdf_test.go:130
FunctionTestDuplicateOptions
(t *testing.T)
wkhtmltopdf_test.go:408
FunctionTestFindPath
(t *testing.T)
wkhtmltopdf_test.go:460
FunctionTestFloatOption
(t *testing.T)
wkhtmltopdf_test.go:632
FunctionTestFloatOptionJSON
(t *testing.T)
json_test.go:102
FunctionTestGeneratePDF
(t *testing.T)
wkhtmltopdf_test.go:119
FunctionTestGeneratePdfFromStdinHtml5
(t *testing.T)
wkhtmltopdf_test.go:218
FunctionTestGeneratePdfFromStdinSimple
(t *testing.T)
wkhtmltopdf_test.go:159
FunctionTestIfArgsAreIncluded
TestIfArgsAreIncluded checks if all args in the help output of wkhtmltopdf are present in the code. If checks if the arguments are in any option set,
release_test.go:37
FunctionTestMapOption
(t *testing.T)
wkhtmltopdf_test.go:588
FunctionTestMapOption_JSON
(t *testing.T)
json_test.go:107
FunctionTestNewPDFGeneratorFromJSON
(t *testing.T)
json_test.go:39
FunctionTestNewPDFGeneratorFromJSONWithReader
(t *testing.T)
json_test.go:62
FunctionTestNoInput
(t *testing.T)
wkhtmltopdf_test.go:102
FunctionTestPDFGeneratorOutputFile
(t *testing.T)
wkhtmltopdf_test.go:184
FunctionTestPDFGenerator_SetOutput
(t *testing.T)
wkhtmltopdf_test.go:273
next →1–100 of 122, ranked by callers