mirror of
https://github.com/gotenberg/gotenberg.git
synced 2026-08-08 08:32:16 +01:00
16 lines
330 B
Go
16 lines
330 B
Go
package printer
|
|
|
|
import (
|
|
"github.com/thecodingmachine/gotenberg/internal/pkg/xlog"
|
|
)
|
|
|
|
// NewURLPrinter returns a Printer which
|
|
// is able to convert a URL to PDF.
|
|
func NewURLPrinter(logger xlog.Logger, url string, opts ChromePrinterOptions) Printer {
|
|
return chromePrinter{
|
|
logger: logger,
|
|
url: url,
|
|
opts: opts,
|
|
}
|
|
}
|