printer

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2025 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DOCNAME = "JUNX PRINT"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Printable

type Printable interface {
	Print(*Printer)
}

type Printer

type Printer struct {
	// contains filtered or unexported fields
}

func (*Printer) EndDoc

func (p *Printer) EndDoc() error

func (*Printer) EndPage

func (p *Printer) EndPage() error

func (*Printer) EnumPrinter

func (p *Printer) EnumPrinter() (info []win32.PrinterInfo, err error)

func (*Printer) GetBPP

func (p *Printer) GetBPP() (uint32, error)

func (*Printer) GetHeight

func (p *Printer) GetHeight() (uint32, error)

func (*Printer) GetHeightPixel

func (p *Printer) GetHeightPixel() (uint32, error)

func (*Printer) GetMarginLeft

func (p *Printer) GetMarginLeft() (uint32, error)

func (*Printer) GetMarginTop

func (p *Printer) GetMarginTop() (uint32, error)

func (*Printer) GetWidth

func (p *Printer) GetWidth() (uint32, error)

func (*Printer) GetWidthPixel

func (p *Printer) GetWidthPixel() (uint32, error)

func (*Printer) InitPrinter

func (p *Printer) InitPrinter(printerName string) (err error)

func (*Printer) Print

func (p *Printer) Print(pt Printable) (err error)

func (*Printer) StartDoc

func (p *Printer) StartDoc(docName string) error

func (*Printer) StartPage

func (p *Printer) StartPage() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL