Documentation ¶
Index ¶
- Constants
- Variables
- func DeviceCapabilitiesInt32(device, port string, fwCapability uint16) (int32, error)
- func DeviceCapabilitiesInt32Pairs(device, port string, fwCapability uint16) ([]int32, error)
- func DeviceCapabilitiesStrings(device, port string, fwCapability uint16, stringLength int32) ([]string, error)
- func DeviceCapabilitiesUint16Array(device, port string, fwCapability uint16) ([]uint16, error)
- func GetWindowsVersion() string
- func RegisterDeviceNotification(handle windows.Handle) error
- type CairoContext
- func (c CairoContext) Clip() error
- func (c *CairoContext) Destroy() error
- func (c CairoContext) GetMatrix() (*CairoMatrix, error)
- func (c CairoContext) IdentityMatrix() error
- func (c CairoContext) Rectangle(x, y, width, height float64) error
- func (c CairoContext) Restore() error
- func (c CairoContext) Save() error
- func (c CairoContext) Scale(x, y float64) error
- func (c CairoContext) Translate(x, y float64) error
- type CairoMatrix
- type CairoSurface
- func (s *CairoSurface) Destroy() error
- func (s CairoSurface) Finish() error
- func (s *CairoSurface) GetDeviceOffset() (float64, float64, error)
- func (s *CairoSurface) GetDeviceScale() (float64, float64, error)
- func (s *CairoSurface) SetFallbackResolution(xPPI, yPPI float64) error
- func (s CairoSurface) ShowPage() error
- type DevBroadcastDevinterface
- type DevMode
- func (dm *DevMode) ClearPaperLength()
- func (dm *DevMode) ClearPaperSize()
- func (dm *DevMode) ClearPaperWidth()
- func (dm *DevMode) GetCollate() (int16, bool)
- func (dm *DevMode) GetColor() (int16, bool)
- func (dm *DevMode) GetCopies() (int16, bool)
- func (dm *DevMode) GetDeviceName() string
- func (dm *DevMode) GetDuplex() (int16, bool)
- func (dm *DevMode) GetOrientation() (int16, bool)
- func (dm *DevMode) GetPaperLength() (int16, bool)
- func (dm *DevMode) GetPaperSize() (int16, bool)
- func (dm *DevMode) GetPaperWidth() (int16, bool)
- func (dm *DevMode) SetCollate(collate int16)
- func (dm *DevMode) SetColor(color int16)
- func (dm *DevMode) SetCopies(copies int16)
- func (dm *DevMode) SetDuplex(duplex int16)
- func (dm *DevMode) SetOrientation(orientation int16)
- func (dm *DevMode) SetPaperLength(length int16)
- func (dm *DevMode) SetPaperSize(paperSize int16)
- func (dm *DevMode) SetPaperWidth(width int16)
- func (dm *DevMode) String() string
- type DocInfo
- type GUID
- type HANDLE
- func (hPrinter *HANDLE) ClosePrinter() error
- func (hPrinter HANDLE) DocumentPropertiesGet(deviceName string) (*DevMode, error)
- func (hPrinter HANDLE) DocumentPropertiesSet(deviceName string, devMode *DevMode) error
- func (hPrinter HANDLE) GetJob(jobID int32) (*JobInfo1, error)
- func (hPrinter HANDLE) SetJobCommand(jobID int32, command uint32) error
- func (hPrinter HANDLE) SetJobInfo1(jobID int32, ji1 *JobInfo1) error
- func (hPrinter HANDLE) SetJobUserName(jobID int32, userName string) error
- type HDC
- func (hDC HDC) AbortDoc() error
- func (hDC *HDC) DeleteDC() error
- func (hDC HDC) EndDoc() error
- func (hDC HDC) EndPage() error
- func (hDC HDC) GetDeviceCaps(nIndex int32) int32
- func (hDC HDC) ResetDC(devMode *DevMode) error
- func (hDC HDC) SetGraphicsMode(iMode int32) error
- func (hDC HDC) SetWorldTransform(xform *XFORM) error
- func (hDC HDC) StartDoc(docName string) (int32, error)
- func (hDC HDC) StartPage() error
- type JobInfo1
- type PopplerDocument
- type PopplerPage
- type PrinterEnumValues
- type PrinterInfo2
- func (pi *PrinterInfo2) GetAttributes() uint32
- func (pi *PrinterInfo2) GetDevMode() *DevMode
- func (pi *PrinterInfo2) GetDriverName() string
- func (pi *PrinterInfo2) GetLocation() string
- func (pi *PrinterInfo2) GetPortName() string
- func (pi *PrinterInfo2) GetPrinterName() string
- func (pi *PrinterInfo2) GetStatus() uint32
- type RTLOSVersionInfo
- type WinSpool
- func (ws *WinSpool) GetJobState(printerName string, jobID uint32) (*cdd.PrintJobStateDiff, error)
- func (ws *WinSpool) GetPrinters() ([]lib.Printer, error)
- func (ws *WinSpool) Print(printer *lib.Printer, fileName, title, user, gcpJobID string, ...) (uint32, error)
- func (ws *WinSpool) ReleaseJob(printerName string, jobID uint32) error
- func (ws *WinSpool) RemoveCachedPPD(printerName string)
- func (ws *WinSpool) StartPrinterNotifications(handle windows.Handle) error
- type XFORM
- Bugs
Constants ¶
const ( ERROR_SUCCESS = 0 ERROR_MORE_DATA = 234 )
System error codes.
const ( NO_ERROR = syscall.Errno(0) ERROR_INVALID_PARAMETER = syscall.Errno(87) ERROR_INSUFFICIENT_BUFFER = syscall.Errno(122) )
Errors returned by GetLastError().
const ( PRINTER_ENUM_DEFAULT = 0x00000001 PRINTER_ENUM_LOCAL = 0x00000002 PRINTER_ENUM_CONNECTIONS = 0x00000004 PRINTER_ENUM_FAVORITE = 0x00000004 PRINTER_ENUM_NAME = 0x00000008 PRINTER_ENUM_REMOTE = 0x00000010 PRINTER_ENUM_SHARED = 0x00000020 PRINTER_ENUM_NETWORK = 0x00000040 PRINTER_ENUM_EXPAND = 0x00004000 PRINTER_ENUM_CONTAINER = 0x00008000 PRINTER_ENUM_ICONMASK = 0x00ff0000 PRINTER_ENUM_ICON1 = 0x00010000 PRINTER_ENUM_ICON2 = 0x00020000 PRINTER_ENUM_ICON3 = 0x00040000 PRINTER_ENUM_ICON4 = 0x00080000 PRINTER_ENUM_ICON5 = 0x00100000 PRINTER_ENUM_ICON6 = 0x00200000 PRINTER_ENUM_ICON7 = 0x00400000 PRINTER_ENUM_ICON8 = 0x00800000 PRINTER_ENUM_HIDE = 0x01000000 )
First parameter to EnumPrinters().
const ( REG_NONE = 0 REG_SZ = 1 REG_EXPAND_SZ = 2 REG_BINARY = 3 REG_DWORD = 4 REG_DWORD_LITTLE_ENDIAN = 4 REG_DWORD_BIG_ENDIAN = 5 REG_LINK = 6 REG_MULTI_SZ = 7 REG_RESOURCE_LIST = 8 REG_FULL_RESOURCE_DESCRIPTOR = 9 REG_RESOURCE_REQUIREMENTS_LIST = 10 REG_QWORD = 11 REG_QWORD_LITTLE_ENDIAN = 11 )
Registry value types.
const ( PRINTER_ATTRIBUTE_QUEUED uint32 = 0x00000001 PRINTER_ATTRIBUTE_DIRECT uint32 = 0x00000002 PRINTER_ATTRIBUTE_DEFAULT uint32 = 0x00000004 PRINTER_ATTRIBUTE_SHARED uint32 = 0x00000008 PRINTER_ATTRIBUTE_NETWORK uint32 = 0x00000010 PRINTER_ATTRIBUTE_HIDDEN uint32 = 0x00000020 PRINTER_ATTRIBUTE_LOCAL uint32 = 0x00000040 PRINTER_ATTRIBUTE_ENABLE_DEVQ uint32 = 0x00000080 PRINTER_ATTRIBUTE_KEEPPRINTEDJOBS uint32 = 0x00000100 PRINTER_ATTRIBUTE_DO_COMPLETE_FIRST uint32 = 0x00000200 PRINTER_ATTRIBUTE_WORK_OFFLINE uint32 = 0x00000400 PRINTER_ATTRIBUTE_ENABLE_BIDI uint32 = 0x00000800 PRINTER_ATTRIBUTE_RAW_ONLY uint32 = 0x00001000 PRINTER_ATTRIBUTE_PUBLISHED uint32 = 0x00002000 )
PRINTER_INFO_2 attribute values
const ( PRINTER_STATUS_PAUSED uint32 = 0x00000001 PRINTER_STATUS_ERROR uint32 = 0x00000002 PRINTER_STATUS_PENDING_DELETION uint32 = 0x00000004 PRINTER_STATUS_PAPER_JAM uint32 = 0x00000008 PRINTER_STATUS_PAPER_OUT uint32 = 0x00000010 PRINTER_STATUS_MANUAL_FEED uint32 = 0x00000020 PRINTER_STATUS_PAPER_PROBLEM uint32 = 0x00000040 PRINTER_STATUS_OFFLINE uint32 = 0x00000080 PRINTER_STATUS_IO_ACTIVE uint32 = 0x00000100 PRINTER_STATUS_BUSY uint32 = 0x00000200 PRINTER_STATUS_PRINTING uint32 = 0x00000400 PRINTER_STATUS_OUTPUT_BIN_FULL uint32 = 0x00000800 PRINTER_STATUS_NOT_AVAILABLE uint32 = 0x00001000 PRINTER_STATUS_WAITING uint32 = 0x00002000 PRINTER_STATUS_PROCESSING uint32 = 0x00004000 PRINTER_STATUS_INITIALIZING uint32 = 0x00008000 PRINTER_STATUS_WARMING_UP uint32 = 0x00010000 PRINTER_STATUS_TONER_LOW uint32 = 0x00020000 PRINTER_STATUS_NO_TONER uint32 = 0x00040000 PRINTER_STATUS_PAGE_PUNT uint32 = 0x00080000 PRINTER_STATUS_USER_INTERVENTION uint32 = 0x00100000 PRINTER_STATUS_OUT_OF_MEMORY uint32 = 0x00200000 PRINTER_STATUS_DOOR_OPEN uint32 = 0x00400000 PRINTER_STATUS_SERVER_UNKNOWN uint32 = 0x00800000 PRINTER_STATUS_POWER_SAVE uint32 = 0x01000000 PRINTER_STATUS_SERVER_OFFLINE uint32 = 0x02000000 PRINTER_STATUS_DRIVER_UPDATE_NEEDED uint32 = 0x04000000 )
PRINTER_INFO_2 status values.
const ( CCHDEVICENAME = 32 CCHFORMNAME = 32 DM_SPECVERSION uint16 = 0x0401 DM_COPY uint32 = 2 DM_MODIFY uint32 = 8 DM_ORIENTATION = 0x00000001 DM_PAPERSIZE = 0x00000002 DM_PAPERLENGTH = 0x00000004 DM_PAPERWIDTH = 0x00000008 DM_SCALE = 0x00000010 DM_POSITION = 0x00000020 DM_NUP = 0x00000040 DM_DISPLAYORIENTATION = 0x00000080 DM_COPIES = 0x00000100 DM_DEFAULTSOURCE = 0x00000200 DM_PRINTQUALITY = 0x00000400 DM_COLOR = 0x00000800 DM_DUPLEX = 0x00001000 DM_YRESOLUTION = 0x00002000 DM_TTOPTION = 0x00004000 DM_COLLATE = 0x00008000 DM_FORMNAME = 0x00010000 DM_LOGPIXELS = 0x00020000 DM_BITSPERPEL = 0x00040000 DM_PELSWIDTH = 0x00080000 DM_PELSHEIGHT = 0x00100000 DM_DISPLAYFLAGS = 0x00200000 DM_DISPLAYFREQUENCY = 0x00400000 DM_ICMMETHOD = 0x00800000 DM_ICMINTENT = 0x01000000 DM_MEDIATYPE = 0x02000000 DM_DITHERTYPE = 0x04000000 DM_PANNINGWIDTH = 0x08000000 DM_PANNINGHEIGHT = 0x10000000 DM_DISPLAYFIXEDOUTPUT = 0x20000000 DMORIENT_PORTRAIT int16 = 1 DMORIENT_LANDSCAPE int16 = 2 DMCOLOR_MONOCHROME int16 = 1 DMCOLOR_COLOR int16 = 2 DMDUP_SIMPLEX int16 = 1 DMDUP_VERTICAL int16 = 2 DMDUP_HORIZONTAL int16 = 3 DMCOLLATE_FALSE int16 = 0 DMCOLLATE_TRUE int16 = 1 DMNUP_SYSTEM uint32 = 1 DMNUP_ONEUP uint32 = 2 )
DEVMODE constants.
const ( DRIVERVERSION = 0 TECHNOLOGY = 2 HORZSIZE = 4 VERTSIZE = 6 HORZRES = 8 // Printable area of paper in pixels. VERTRES = 10 BITSPIXEL = 12 PLANES = 14 NUMBRUSHES = 16 NUMPENS = 18 NUMMARKERS = 20 NUMFONTS = 22 NUMCOLORS = 24 PDEVICESIZE = 26 CURVECAPS = 28 LINECAPS = 30 POLYGONALCAPS = 32 TEXTCAPS = 34 CLIPCAPS = 36 RASTERCAPS = 38 ASPECTX = 40 ASPECTY = 42 ASPECTXY = 44 LOGPIXELSX = 88 // Pixels per inch. LOGPIXELSY = 90 SIZEPALETTE = 104 NUMRESERVED = 106 COLORRES = 108 PHYSICALWIDTH = 110 // Paper width in pixels. PHYSICALHEIGHT = 111 PHYSICALOFFSETX = 112 // Paper margin in pixels. PHYSICALOFFSETY = 113 SCALINGFACTORX = 114 SCALINGFACTORY = 115 VREFRESH = 116 DESKTOPVERTRES = 117 DESKTOPHORZRES = 118 BTLALIGNMENT = 119 SHADEBLENDCAPS = 120 COLORMGMTCAPS = 121 )
Device parameters for GetDeviceCaps().
const ( DC_FIELDS = 1 DC_PAPERS = 2 DC_PAPERSIZE = 3 DC_MINEXTENT = 4 DC_MAXEXTENT = 5 DC_BINS = 6 DC_DUPLEX = 7 DC_SIZE = 8 DC_EXTRA = 9 DC_VERSION = 10 DC_DRIVER = 11 DC_BINNAMES = 12 DC_ENUMRESOLUTIONS = 13 DC_FILEDEPENDENCIES = 14 DC_TRUETYPE = 15 DC_PAPERNAMES = 16 DC_ORIENTATION = 17 DC_COPIES = 18 DC_BINADJUST = 19 DC_EMF_COMPLAINT = 20 DC_DATATYPE_PRODUCED = 21 DC_COLLATE = 22 DC_MANUFACTURER = 23 DC_MODEL = 24 DC_PERSONALITY = 25 DC_PRINTRATE = 26 DC_PRINTRATEUNIT = 27 DC_PRINTERMEM = 28 DC_MEDIAREADY = 29 DC_STAPLE = 30 DC_PRINTRATEPPM = 31 DC_COLORDEVICE = 32 DC_NUP = 33 DC_MEDIATYPENAMES = 34 DC_MEDIATYPES = 35 PRINTRATEUNIT_PPM = 1 PRINTRATEUNIT_CPS = 2 PRINTRATEUNIT_LPM = 3 PRINTRATEUNIT_IPM = 4 )
Device capabilities for DeviceCapabilities().
const ( JOB_STATUS_PAUSED uint32 = 0x00000001 JOB_STATUS_ERROR uint32 = 0x00000002 JOB_STATUS_DELETING uint32 = 0x00000004 JOB_STATUS_SPOOLING uint32 = 0x00000008 JOB_STATUS_PRINTING uint32 = 0x00000010 JOB_STATUS_OFFLINE uint32 = 0x00000020 JOB_STATUS_PAPEROUT uint32 = 0x00000040 JOB_STATUS_PRINTED uint32 = 0x00000080 JOB_STATUS_DELETED uint32 = 0x00000100 JOB_STATUS_BLOCKED_DEVQ uint32 = 0x00000200 JOB_STATUS_USER_INTERVENTION uint32 = 0x00000400 JOB_STATUS_RESTART uint32 = 0x00000800 JOB_STATUS_COMPLETE uint32 = 0x00001000 JOB_STATUS_RETAINED uint32 = 0x00002000 JOB_STATUS_RENDERING_LOCALLY uint32 = 0x00004000 )
JOB_INFO_1 status values.
const ( JOB_CONTROL_PAUSE uint32 = 1 JOB_CONTROL_RESUME uint32 = 2 JOB_CONTROL_CANCEL uint32 = 3 JOB_CONTROL_RESTART uint32 = 4 JOB_CONTROL_DELETE uint32 = 5 JOB_CONTROL_SENT_TO_PRINTER uint32 = 6 JOB_CONTROL_LAST_PAGE_EJECTED uint32 = 7 JOB_CONTROL_RETAIN uint32 = 8 JOB_CONTROL_RELEASE uint32 = 9 )
SetJob command values.
const ( GM_COMPATIBLE int32 = 1 GM_ADVANCED int32 = 2 )
const ( DMPAPER_LETTER = 1 DMPAPER_LETTERSMALL = 2 DMPAPER_TABLOID = 3 DMPAPER_LEDGER = 4 DMPAPER_LEGAL = 5 DMPAPER_STATEMENT = 6 DMPAPER_EXECUTIVE = 7 DMPAPER_A3 = 8 DMPAPER_A4 = 9 DMPAPER_A4SMALL = 10 DMPAPER_A5 = 11 DMPAPER_B4 = 12 DMPAPER_B5 = 13 DMPAPER_FOLIO = 14 DMPAPER_QUARTO = 15 DMPAPER_10X14 = 16 DMPAPER_11X17 = 17 DMPAPER_NOTE = 18 DMPAPER_ENV_9 = 19 DMPAPER_ENV_10 = 20 DMPAPER_ENV_11 = 21 DMPAPER_ENV_12 = 22 DMPAPER_ENV_14 = 23 DMPAPER_CSHEET = 24 DMPAPER_DSHEET = 25 DMPAPER_ESHEET = 26 DMPAPER_ENV_DL = 27 DMPAPER_ENV_C5 = 28 DMPAPER_ENV_C3 = 29 DMPAPER_ENV_C4 = 30 DMPAPER_ENV_C6 = 31 DMPAPER_ENV_C65 = 32 DMPAPER_ENV_B4 = 33 DMPAPER_ENV_B5 = 34 DMPAPER_ENV_B6 = 35 DMPAPER_ENV_ITALY = 36 DMPAPER_ENV_MONARCH = 37 DMPAPER_ENV_PERSONAL = 38 DMPAPER_FANFOLD_US = 39 DMPAPER_FANFOLD_STD_GERMAN = 40 DMPAPER_FANFOLD_LGL_GERMAN = 41 DMPAPER_ISO_B4 = 42 DMPAPER_JAPANESE_POSTCARD = 43 DMPAPER_9X11 = 44 DMPAPER_10X11 = 45 DMPAPER_15X11 = 46 DMPAPER_ENV_INVITE = 47 DMPAPER_RESERVED_48 = 48 DMPAPER_RESERVED_49 = 49 DMPAPER_LETTER_EXTRA = 50 DMPAPER_LEGAL_EXTRA = 51 DMPAPER_TABLOID_EXTRA = 52 DMPAPER_A4_EXTRA = 53 DMPAPER_LETTER_TRANSVERSE = 54 DMPAPER_A4_TRANSVERSE = 55 DMPAPER_LETTER_EXTRA_TRANSVERSE = 56 DMPAPER_A_PLUS = 57 DMPAPER_B_PLUS = 58 DMPAPER_LETTER_PLUS = 59 DMPAPER_A4_PLUS = 60 DMPAPER_A5_TRANSVERSE = 61 DMPAPER_B5_TRANSVERSE = 62 DMPAPER_A3_EXTRA = 63 DMPAPER_A5_EXTRA = 64 DMPAPER_B5_EXTRA = 65 DMPAPER_A2 = 66 DMPAPER_A3_TRANSVERSE = 67 DMPAPER_A3_EXTRA_TRANSVERSE = 68 DMPAPER_DBL_JAPANESE_POSTCARD = 69 DMPAPER_A6 = 70 DMPAPER_JENV_KAKU2 = 71 DMPAPER_JENV_KAKU3 = 72 DMPAPER_JENV_CHOU3 = 73 DMPAPER_JENV_CHOU4 = 74 DMPAPER_LETTER_ROTATED = 75 DMPAPER_A3_ROTATED = 76 DMPAPER_A4_ROTATED = 77 DMPAPER_A5_ROTATED = 78 DMPAPER_B4_JIS_ROTATED = 79 DMPAPER_B5_JIS_ROTATED = 80 DMPAPER_JAPANESE_POSTCARD_ROTATED = 81 DMPAPER_DBL_JAPANESE_POSTCARD_ROTATED = 82 DMPAPER_A6_ROTATED = 83 DMPAPER_JENV_KAKU2_ROTATED = 84 DMPAPER_JENV_KAKU3_ROTATED = 85 DMPAPER_JENV_CHOU3_ROTATED = 86 DMPAPER_JENV_CHOU4_ROTATED = 87 DMPAPER_B6_JIS = 88 DMPAPER_B6_JIS_ROTATED = 89 DMPAPER_12X11 = 90 DMPAPER_JENV_YOU4 = 91 DMPAPER_JENV_YOU4_ROTATED = 92 DMPAPER_P16K = 93 DMPAPER_P32K = 94 DMPAPER_P32KBIG = 95 DMPAPER_PENV_1 = 96 DMPAPER_PENV_2 = 97 DMPAPER_PENV_3 = 98 DMPAPER_PENV_4 = 99 DMPAPER_PENV_5 = 100 DMPAPER_PENV_6 = 101 DMPAPER_PENV_7 = 102 DMPAPER_PENV_8 = 103 DMPAPER_PENV_9 = 104 DMPAPER_PENV_10 = 105 DMPAPER_P16K_ROTATED = 106 DMPAPER_P32K_ROTATED = 107 DMPAPER_P32KBIG_ROTATED = 108 DMPAPER_PENV_1_ROTATED = 109 DMPAPER_PENV_2_ROTATED = 110 DMPAPER_PENV_3_ROTATED = 111 DMPAPER_PENV_4_ROTATED = 112 DMPAPER_PENV_5_ROTATED = 113 DMPAPER_PENV_6_ROTATED = 114 DMPAPER_PENV_7_ROTATED = 115 DMPAPER_PENV_8_ROTATED = 116 DMPAPER_PENV_9_ROTATED = 117 DMPAPER_PENV_10_ROTATED = 118 )
DevMode.dmPaperSize values.
const ( DEVICE_NOTIFY_SERVICE_HANDLE = 1 DEVICE_NOTIFY_ALL_INTERFACE_CLASSES = 4 DBT_DEVTYP_DEVICEINTERFACE = 5 )
Variables ¶
var PRINTERS_DEVICE_CLASS = GUID{ 0x4d36e979, 0xe325, 0x11ce, [8]byte{0xbf, 0xc1, 0x08, 0x00, 0x2b, 0xe1, 0x03, 0x18}, }
Functions ¶
func DeviceCapabilitiesInt32 ¶
func DeviceCapabilitiesInt32Pairs ¶
DeviceCapabilitiesInt32Pairs returns a slice of an even quantity of int32.
func GetWindowsVersion ¶
func GetWindowsVersion() string
Types ¶
type CairoContext ¶
type CairoContext uintptr
func CairoCreateContext ¶
func CairoCreateContext(surface CairoSurface) (CairoContext, error)
func (CairoContext) Clip ¶
func (c CairoContext) Clip() error
func (*CairoContext) Destroy ¶
func (c *CairoContext) Destroy() error
func (CairoContext) GetMatrix ¶
func (c CairoContext) GetMatrix() (*CairoMatrix, error)
func (CairoContext) IdentityMatrix ¶
func (c CairoContext) IdentityMatrix() error
func (CairoContext) Rectangle ¶
func (c CairoContext) Rectangle(x, y, width, height float64) error
func (CairoContext) Restore ¶
func (c CairoContext) Restore() error
func (CairoContext) Save ¶
func (c CairoContext) Save() error
func (CairoContext) Scale ¶
func (c CairoContext) Scale(x, y float64) error
func (CairoContext) Translate ¶
func (c CairoContext) Translate(x, y float64) error
type CairoMatrix ¶
type CairoMatrix struct {
// contains filtered or unexported fields
}
type CairoSurface ¶
type CairoSurface uintptr
func CairoWin32PrintingSurfaceCreate ¶
func CairoWin32PrintingSurfaceCreate(hDC HDC) (CairoSurface, error)
func (*CairoSurface) Destroy ¶
func (s *CairoSurface) Destroy() error
func (CairoSurface) Finish ¶
func (s CairoSurface) Finish() error
func (*CairoSurface) GetDeviceOffset ¶
func (s *CairoSurface) GetDeviceOffset() (float64, float64, error)
func (*CairoSurface) GetDeviceScale ¶
func (s *CairoSurface) GetDeviceScale() (float64, float64, error)
func (*CairoSurface) SetFallbackResolution ¶
func (s *CairoSurface) SetFallbackResolution(xPPI, yPPI float64) error
func (CairoSurface) ShowPage ¶
func (s CairoSurface) ShowPage() error
type DevBroadcastDevinterface ¶
type DevBroadcastDevinterface struct {
// contains filtered or unexported fields
}
type DevMode ¶
type DevMode struct {
// contains filtered or unexported fields
}
DEVMODE struct.
func (*DevMode) ClearPaperLength ¶
func (dm *DevMode) ClearPaperLength()
func (*DevMode) ClearPaperSize ¶
func (dm *DevMode) ClearPaperSize()
func (*DevMode) ClearPaperWidth ¶
func (dm *DevMode) ClearPaperWidth()
func (*DevMode) GetCollate ¶
func (*DevMode) GetDeviceName ¶
func (*DevMode) GetOrientation ¶
func (*DevMode) GetPaperLength ¶
func (*DevMode) GetPaperSize ¶
func (*DevMode) GetPaperWidth ¶
func (*DevMode) SetCollate ¶
func (*DevMode) SetOrientation ¶
func (*DevMode) SetPaperLength ¶
func (*DevMode) SetPaperSize ¶
func (*DevMode) SetPaperWidth ¶
type HANDLE ¶
type HANDLE uintptr
func OpenPrinter ¶
func (*HANDLE) ClosePrinter ¶
func (HANDLE) DocumentPropertiesGet ¶
func (HANDLE) DocumentPropertiesSet ¶
func (HANDLE) SetJobCommand ¶
type HDC ¶
type HDC uintptr
func (HDC) GetDeviceCaps ¶
func (HDC) SetGraphicsMode ¶
func (HDC) SetWorldTransform ¶
type JobInfo1 ¶
type JobInfo1 struct {
// contains filtered or unexported fields
}
JOB_INFO_1 struct.
func (*JobInfo1) GetPagesPrinted ¶
func (*JobInfo1) GetTotalPages ¶
type PopplerDocument ¶
type PopplerDocument uintptr
func PopplerDocumentNewFromFile ¶
func PopplerDocumentNewFromFile(filename string) (PopplerDocument, error)
func (PopplerDocument) GetNPages ¶
func (d PopplerDocument) GetNPages() int
func (PopplerDocument) GetPage ¶
func (d PopplerDocument) GetPage(index int) PopplerPage
func (*PopplerDocument) Unref ¶
func (d *PopplerDocument) Unref()
type PopplerPage ¶
type PopplerPage uintptr
func (PopplerPage) GetSize ¶
func (p PopplerPage) GetSize() (float64, float64, error)
GetSize returns the width and height of the page, in points (1/72 inch).
func (PopplerPage) RenderForPrinting ¶
func (p PopplerPage) RenderForPrinting(context CairoContext)
func (*PopplerPage) Unref ¶
func (p *PopplerPage) Unref()
type PrinterEnumValues ¶
type PrinterEnumValues struct {
// contains filtered or unexported fields
}
PRINTER_ENUM_VALUES struct.
type PrinterInfo2 ¶
type PrinterInfo2 struct {
// contains filtered or unexported fields
}
PRINTER_INFO_2 struct.
func EnumPrinters2 ¶
func EnumPrinters2() ([]PrinterInfo2, error)
func (*PrinterInfo2) GetAttributes ¶
func (pi *PrinterInfo2) GetAttributes() uint32
func (*PrinterInfo2) GetDevMode ¶
func (pi *PrinterInfo2) GetDevMode() *DevMode
func (*PrinterInfo2) GetDriverName ¶
func (pi *PrinterInfo2) GetDriverName() string
func (*PrinterInfo2) GetLocation ¶
func (pi *PrinterInfo2) GetLocation() string
func (*PrinterInfo2) GetPortName ¶
func (pi *PrinterInfo2) GetPortName() string
func (*PrinterInfo2) GetPrinterName ¶
func (pi *PrinterInfo2) GetPrinterName() string
func (*PrinterInfo2) GetStatus ¶
func (pi *PrinterInfo2) GetStatus() uint32
type RTLOSVersionInfo ¶
type RTLOSVersionInfo struct {
// contains filtered or unexported fields
}
type WinSpool ¶
type WinSpool struct {
// contains filtered or unexported fields
}
Interface between Go and the Windows API.
func NewWinSpool ¶
func (*WinSpool) GetJobState ¶
GetJobState gets the current state of the job indicated by jobID.
func (*WinSpool) GetPrinters ¶
GetPrinters gets all Windows printers found on this computer.
func (*WinSpool) Print ¶
func (ws *WinSpool) Print(printer *lib.Printer, fileName, title, user, gcpJobID string, ticket *cdd.CloudJobTicket) (uint32, error)
Print sends a new print job to the specified printer. The job ID is returned.
func (*WinSpool) ReleaseJob ¶
func (*WinSpool) RemoveCachedPPD ¶
Notes ¶
Bugs ¶
This class is ignored for now. Figure out what the right GUID is.