mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-08 16:42:15 +01:00
15 lines
219 B
Go
15 lines
219 B
Go
package printer
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
// NewHTML returns an HTML printer.
|
|
func NewHTML(fpath string, opts *ChromeOptions) Printer {
|
|
URL := fmt.Sprintf("file://%s", fpath)
|
|
return &chrome{
|
|
url: URL,
|
|
opts: opts,
|
|
}
|
|
}
|