Documentation ¶
Index ¶
- Constants
- type Info
- type Option
- func BlackAndWhite(blackAndWhite bool) Option
- func CellComments(cellComments primitives.CellCommentsType) Option
- func Copies(copies int) Option
- func Draft(draft bool) Option
- func Errors(errors primitives.PrintErrorType) Option
- func FirstPageNumber(firstPageNumber int) Option
- func FitToHeight(fitToHeight int) Option
- func FitToWidth(fitToWidth int) Option
- func HorizontalDpi(horizontalDpi int) Option
- func Orientation(orientation primitives.OrientationType) Option
- func PageOrder(pageOrder primitives.PageOrderType) Option
- func PaperSize(paperSize int) Option
- func Scale(scale int) Option
- func UseFirstPageNumber(useFirstPageNumber bool) Option
- func UsePrinterDefaults(usePrinterDefaults bool) Option
- func VerticalDpi(verticalDpi int) Option
Constants ¶
const ( CellCommentsNone primitives.CellCommentsType CellCommentsAsDisplayed CellCommentsAtEnd )
List of all possible values for CellCommentsType
const ( OrientationDefault primitives.OrientationType OrientationPortrait OrientationLandscape )
List of all possible values for OrientationType
const ( PageOrderDownThenOver primitives.PageOrderType PageOrderOverThenDown )
List of all possible values for PageOrderType
const ( PrintErrorDisplayed primitives.PrintErrorType PrintErrorBlank PrintErrorDash PrintErrorNA )
List of all possible values for PrintErrorType
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Info ¶
type Info struct { PaperSize *int Scale *int FirstPageNumber *int FitToWidth *int FitToHeight *int PageOrder primitives.PageOrderType Orientation primitives.OrientationType UsePrinterDefaults *bool BlackAndWhite bool Draft bool CellComments primitives.CellCommentsType UseFirstPageNumber bool Errors primitives.PrintErrorType HorizontalDpi *int VerticalDpi *int Copies *int }
Info hold advanced settings of sheet. N.B.: You should NOT mutate any value directly.
type Option ¶
type Option func(co *Info)
Option is helper type to set options for sheet
func BlackAndWhite ¶
BlackAndWhite sets flag indicating to print black and white.
func CellComments ¶
func CellComments(cellComments primitives.CellCommentsType) Option
CellComments specifies how to print cell comments.
func Errors ¶
func Errors(errors primitives.PrintErrorType) Option
Errors specifies how to print cell values for cells with errors.
func FirstPageNumber ¶
FirstPageNumber sets a page number for first printed page.
func FitToHeight ¶
FitToHeight sets a number of vertical pages to fit on.
func FitToWidth ¶
FitToWidth sets a number of horizontal pages to fit on.
func HorizontalDpi ¶
HorizontalDpi sets a horizontal print resolution of the device.
func Orientation ¶
func Orientation(orientation primitives.OrientationType) Option
Orientation sets an orientation of the page.
func PageOrder ¶
func PageOrder(pageOrder primitives.PageOrderType) Option
PageOrder sets a order of printed pages.
func UseFirstPageNumber ¶
UseFirstPageNumber sets flag indicating to use firstPageNumber value for first page number,
func UsePrinterDefaults ¶
UsePrinterDefaults sets flag indicating to use the printer’s defaults settings for page setup values
func VerticalDpi ¶
VerticalDpi sets a vertical print resolution of the device.