Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConvertOptions ¶
type ConvertOptions interface {
// contains filtered or unexported methods
}
type CropOptions ¶
type ExtendParams ¶
type FetcherOptions ¶
type FetcherOptions struct { Name string `json:"name"` // http, oss, data Params json.RawMessage `json:"params"` // Optional }
type FooterOptions ¶
type FooterOptions struct {
}type HeaderOptions ¶
type HeaderOptions struct {
HtmlContent string `json:"html_content"`
}
type MarginOptions ¶
type Orientation ¶
type Orientation string
const ( Landscape Orientation = "Landscape" Portrait Orientation = "Portrait" )
type ToImageOptions ¶
type ToImageOptions struct { URI string `json:"uri"` Crop CropOptions `json:"crop"` // Cropping options Format string `json:"format"` // Image format, default is png Quality int `json:"quality"` // Output image quality (between 0 and 100) (default 94) Width int `json:"width"` // Default is 1024 Height int `json:"height"` // Set screen height (default is calculated from page content) (default 0) Extend ExtendParams `json:"extend"` // Other params }
type ToPDFOptions ¶
type ToPDFOptions struct { URI string `json:"uri"` NoCollate bool `json:"no_collate"` // Collate when printing multiple copies, default is true. --collate or --no-collate Copies int `json:"copies"` // Number of copies to print into the pdf default is 1 GrayScale bool `json:"gray_scale"` // PDF will be generated in grayscale LowQuality bool `json:"low_quality"` // Generates lower quality pdf/ps. Useful to shrink the result document space Orientation Orientation `json:"orientation"` // Set orientation to Landscape or Portrait (default Portrait) PageSize string `json:"page_size"` // Set paper size to: A4, Letter, etc. (default A4) PrintMediaType bool `json:"print_media_type"` // Use print media-type instead of screen. --print-media-type or --no-print-media-type DisableJavascript bool `json:"disable_javascript"` DisableLocalFileAccess bool `json:"disable_local_file_access"` Encoding string `json:"encoding"` Header HeaderOptions `json:"header"` Margin MarginOptions `json:"margin"` Extend ExtendParams `json:"extend"` // Other params }
Click to show internal directories.
Click to hide internal directories.