Documentation ¶
Overview ¶
TODO Communicate with chrome (handle passed in from whatever is running things) to print a PDF given a set of options
Index ¶
- func LaunchChrome(path *string) (*exec.Cmd, error)
- func PrintPdfFromHtml(chromeUrl string, options *Options, html string) ([]byte, error)
- func PrintPdfFromUrl(chromeUrl string, options *Options, url string) ([]byte, error)
- func SetDefaultOptions(options *Options)
- type Options
- type Request
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrintPdfFromHtml ¶
TODO: - Need to be able to set options like total timeout, network request timeouts, print args, etc.. - handle context timeout errors (i.e. requests greater than the number set in WithTimeout)
func PrintPdfFromUrl ¶
func SetDefaultOptions ¶
func SetDefaultOptions(options *Options)
Types ¶
Click to show internal directories.
Click to hide internal directories.