pdfkit

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Rendered for darwin/amd64

Overview

Package pdfkit provides purego-based Go bindings for the macOS PDFKit framework.

Apple documentation: https://developer.apple.com/documentation/pdfkit

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KPDFAnnotationKey_Action

func KPDFAnnotationKey_Action() uintptr

func KPDFAnnotationKey_AdditionalActions

func KPDFAnnotationKey_AdditionalActions() uintptr

func KPDFAnnotationKey_AppearanceDictionary

func KPDFAnnotationKey_AppearanceDictionary() uintptr

func KPDFAnnotationKey_AppearanceState

func KPDFAnnotationKey_AppearanceState() uintptr

func KPDFAnnotationKey_Border

func KPDFAnnotationKey_Border() uintptr

func KPDFAnnotationKey_BorderStyle

func KPDFAnnotationKey_BorderStyle() uintptr

func KPDFAnnotationKey_Color

func KPDFAnnotationKey_Color() uintptr

func KPDFAnnotationKey_Contents

func KPDFAnnotationKey_Contents() uintptr

func KPDFAnnotationKey_Date

func KPDFAnnotationKey_Date() uintptr

func KPDFAnnotationKey_DefaultAppearance

func KPDFAnnotationKey_DefaultAppearance() uintptr

func KPDFAnnotationKey_Destination

func KPDFAnnotationKey_Destination() uintptr

func KPDFAnnotationKey_Flags

func KPDFAnnotationKey_Flags() uintptr

func KPDFAnnotationKey_HighlightingMode

func KPDFAnnotationKey_HighlightingMode() uintptr

func KPDFAnnotationKey_IconName

func KPDFAnnotationKey_IconName() uintptr

func KPDFAnnotationKey_Inklist

func KPDFAnnotationKey_Inklist() uintptr

func KPDFAnnotationKey_InteriorColor

func KPDFAnnotationKey_InteriorColor() uintptr

func KPDFAnnotationKey_LineEndingStyles

func KPDFAnnotationKey_LineEndingStyles() uintptr

func KPDFAnnotationKey_LinePoints

func KPDFAnnotationKey_LinePoints() uintptr

func KPDFAnnotationKey_Name

func KPDFAnnotationKey_Name() uintptr

func KPDFAnnotationKey_Open

func KPDFAnnotationKey_Open() uintptr

func KPDFAnnotationKey_Page

func KPDFAnnotationKey_Page() uintptr

func KPDFAnnotationKey_Parent

func KPDFAnnotationKey_Parent() uintptr

func KPDFAnnotationKey_Popup

func KPDFAnnotationKey_Popup() uintptr

func KPDFAnnotationKey_QuadPoints

func KPDFAnnotationKey_QuadPoints() uintptr

func KPDFAnnotationKey_Quadding

func KPDFAnnotationKey_Quadding() uintptr

func KPDFAnnotationKey_Rect

func KPDFAnnotationKey_Rect() uintptr

func KPDFAnnotationKey_Subtype

func KPDFAnnotationKey_Subtype() uintptr

func KPDFAnnotationKey_TextLabel

func KPDFAnnotationKey_TextLabel() uintptr

func KPDFAnnotationKey_WidgetAppearanceDictionary

func KPDFAnnotationKey_WidgetAppearanceDictionary() uintptr

func KPDFAnnotationKey_WidgetDefaultValue

func KPDFAnnotationKey_WidgetDefaultValue() uintptr

func KPDFAnnotationKey_WidgetFieldFlags

func KPDFAnnotationKey_WidgetFieldFlags() uintptr

func KPDFAnnotationKey_WidgetFieldType

func KPDFAnnotationKey_WidgetFieldType() uintptr

func KPDFAnnotationKey_WidgetMaxLen

func KPDFAnnotationKey_WidgetMaxLen() uintptr

func KPDFAnnotationKey_WidgetOptions

func KPDFAnnotationKey_WidgetOptions() uintptr

func KPDFAnnotationKey_WidgetTextLabelUI

func KPDFAnnotationKey_WidgetTextLabelUI() uintptr

func KPDFAnnotationKey_WidgetValue

func KPDFAnnotationKey_WidgetValue() uintptr

func KPDFDestinationUnspecifiedValue

func KPDFDestinationUnspecifiedValue() float64

func PDFAnnotationHighlightingModeInvert

func PDFAnnotationHighlightingModeInvert() uintptr

func PDFAnnotationHighlightingModeNone

func PDFAnnotationHighlightingModeNone() uintptr

func PDFAnnotationHighlightingModeOutline

func PDFAnnotationHighlightingModeOutline() uintptr

func PDFAnnotationHighlightingModePush

func PDFAnnotationHighlightingModePush() uintptr

func PDFAnnotationKeyAction

func PDFAnnotationKeyAction() uintptr

func PDFAnnotationKeyAdditionalActions

func PDFAnnotationKeyAdditionalActions() uintptr

func PDFAnnotationKeyAppearanceDictionary

func PDFAnnotationKeyAppearanceDictionary() uintptr

func PDFAnnotationKeyAppearanceState

func PDFAnnotationKeyAppearanceState() uintptr

func PDFAnnotationKeyBorder

func PDFAnnotationKeyBorder() uintptr

func PDFAnnotationKeyBorderStyle

func PDFAnnotationKeyBorderStyle() uintptr

func PDFAnnotationKeyColor

func PDFAnnotationKeyColor() uintptr

func PDFAnnotationKeyContents

func PDFAnnotationKeyContents() uintptr

func PDFAnnotationKeyDate

func PDFAnnotationKeyDate() uintptr

func PDFAnnotationKeyDefaultAppearance

func PDFAnnotationKeyDefaultAppearance() uintptr

func PDFAnnotationKeyDestination

func PDFAnnotationKeyDestination() uintptr

func PDFAnnotationKeyFlags

func PDFAnnotationKeyFlags() uintptr

func PDFAnnotationKeyHighlightingMode

func PDFAnnotationKeyHighlightingMode() uintptr

func PDFAnnotationKeyIconName

func PDFAnnotationKeyIconName() uintptr

func PDFAnnotationKeyInklist

func PDFAnnotationKeyInklist() uintptr

func PDFAnnotationKeyInteriorColor

func PDFAnnotationKeyInteriorColor() uintptr

func PDFAnnotationKeyLineEndingStyles

func PDFAnnotationKeyLineEndingStyles() uintptr

func PDFAnnotationKeyLinePoints

func PDFAnnotationKeyLinePoints() uintptr

func PDFAnnotationKeyName

func PDFAnnotationKeyName() uintptr

func PDFAnnotationKeyOpen

func PDFAnnotationKeyOpen() uintptr

func PDFAnnotationKeyPage

func PDFAnnotationKeyPage() uintptr

func PDFAnnotationKeyParent

func PDFAnnotationKeyParent() uintptr

func PDFAnnotationKeyPopup

func PDFAnnotationKeyPopup() uintptr

func PDFAnnotationKeyQuadPoints

func PDFAnnotationKeyQuadPoints() uintptr

func PDFAnnotationKeyQuadding

func PDFAnnotationKeyQuadding() uintptr

func PDFAnnotationKeyRect

func PDFAnnotationKeyRect() uintptr

func PDFAnnotationKeySubtype

func PDFAnnotationKeySubtype() uintptr

func PDFAnnotationKeyTextLabel

func PDFAnnotationKeyTextLabel() uintptr

func PDFAnnotationKeyWidgetAppearanceDictionary

func PDFAnnotationKeyWidgetAppearanceDictionary() uintptr

func PDFAnnotationKeyWidgetBackgroundColor

func PDFAnnotationKeyWidgetBackgroundColor() uintptr

func PDFAnnotationKeyWidgetBorderColor

func PDFAnnotationKeyWidgetBorderColor() uintptr

func PDFAnnotationKeyWidgetCaption

func PDFAnnotationKeyWidgetCaption() uintptr

func PDFAnnotationKeyWidgetDefaultValue

func PDFAnnotationKeyWidgetDefaultValue() uintptr

func PDFAnnotationKeyWidgetDownCaption

func PDFAnnotationKeyWidgetDownCaption() uintptr

func PDFAnnotationKeyWidgetFieldFlags

func PDFAnnotationKeyWidgetFieldFlags() uintptr

func PDFAnnotationKeyWidgetFieldType

func PDFAnnotationKeyWidgetFieldType() uintptr

func PDFAnnotationKeyWidgetMaxLen

func PDFAnnotationKeyWidgetMaxLen() uintptr

func PDFAnnotationKeyWidgetOptions

func PDFAnnotationKeyWidgetOptions() uintptr

func PDFAnnotationKeyWidgetRolloverCaption

func PDFAnnotationKeyWidgetRolloverCaption() uintptr

func PDFAnnotationKeyWidgetRotation

func PDFAnnotationKeyWidgetRotation() uintptr

func PDFAnnotationKeyWidgetTextLabelUI

func PDFAnnotationKeyWidgetTextLabelUI() uintptr

func PDFAnnotationKeyWidgetValue

func PDFAnnotationKeyWidgetValue() uintptr

func PDFAnnotationLineEndingStyleCircle

func PDFAnnotationLineEndingStyleCircle() uintptr

func PDFAnnotationLineEndingStyleClosedArrow

func PDFAnnotationLineEndingStyleClosedArrow() uintptr

func PDFAnnotationLineEndingStyleDiamond

func PDFAnnotationLineEndingStyleDiamond() uintptr

func PDFAnnotationLineEndingStyleNone

func PDFAnnotationLineEndingStyleNone() uintptr

func PDFAnnotationLineEndingStyleOpenArrow

func PDFAnnotationLineEndingStyleOpenArrow() uintptr

func PDFAnnotationLineEndingStyleSquare

func PDFAnnotationLineEndingStyleSquare() uintptr

func PDFAnnotationNameForLineStyle

func PDFAnnotationNameForLineStyle(style PDFLineStyle) *foundation.NSString

Returns the name of the line style, which matches the definition in the Adobe PDF Specification.

func PDFAnnotationSubtypeCircle

func PDFAnnotationSubtypeCircle() uintptr

func PDFAnnotationSubtypeFreeText

func PDFAnnotationSubtypeFreeText() uintptr

func PDFAnnotationSubtypeHighlight

func PDFAnnotationSubtypeHighlight() uintptr

func PDFAnnotationSubtypeInk

func PDFAnnotationSubtypeInk() uintptr

func PDFAnnotationSubtypeLine

func PDFAnnotationSubtypeLine() uintptr
func PDFAnnotationSubtypeLink() uintptr

func PDFAnnotationSubtypePopup

func PDFAnnotationSubtypePopup() uintptr

func PDFAnnotationSubtypeSquare

func PDFAnnotationSubtypeSquare() uintptr

func PDFAnnotationSubtypeStamp

func PDFAnnotationSubtypeStamp() uintptr

func PDFAnnotationSubtypeStrikeOut

func PDFAnnotationSubtypeStrikeOut() uintptr

func PDFAnnotationSubtypeText

func PDFAnnotationSubtypeText() uintptr

func PDFAnnotationSubtypeUnderline

func PDFAnnotationSubtypeUnderline() uintptr

func PDFAnnotationSubtypeWidget

func PDFAnnotationSubtypeWidget() uintptr

func PDFAnnotationTextIconTypeComment

func PDFAnnotationTextIconTypeComment() uintptr

func PDFAnnotationTextIconTypeHelp

func PDFAnnotationTextIconTypeHelp() uintptr

func PDFAnnotationTextIconTypeInsert

func PDFAnnotationTextIconTypeInsert() uintptr

func PDFAnnotationTextIconTypeKey

func PDFAnnotationTextIconTypeKey() uintptr

func PDFAnnotationTextIconTypeNewParagraph

func PDFAnnotationTextIconTypeNewParagraph() uintptr

func PDFAnnotationTextIconTypeNote

func PDFAnnotationTextIconTypeNote() uintptr

func PDFAnnotationTextIconTypeParagraph

func PDFAnnotationTextIconTypeParagraph() uintptr

func PDFAnnotationWidgetSubtypeButton

func PDFAnnotationWidgetSubtypeButton() uintptr

func PDFAnnotationWidgetSubtypeChoice

func PDFAnnotationWidgetSubtypeChoice() uintptr

func PDFAnnotationWidgetSubtypeSignature

func PDFAnnotationWidgetSubtypeSignature() uintptr

func PDFAnnotationWidgetSubtypeText

func PDFAnnotationWidgetSubtypeText() uintptr

func PDFAppearanceCharacteristicsKeyBackgroundColor

func PDFAppearanceCharacteristicsKeyBackgroundColor() uintptr

func PDFAppearanceCharacteristicsKeyBorderColor

func PDFAppearanceCharacteristicsKeyBorderColor() uintptr

func PDFAppearanceCharacteristicsKeyCaption

func PDFAppearanceCharacteristicsKeyCaption() uintptr

func PDFAppearanceCharacteristicsKeyDownCaption

func PDFAppearanceCharacteristicsKeyDownCaption() uintptr

func PDFAppearanceCharacteristicsKeyRolloverCaption

func PDFAppearanceCharacteristicsKeyRolloverCaption() uintptr

func PDFAppearanceCharacteristicsKeyRotation

func PDFAppearanceCharacteristicsKeyRotation() uintptr

func PDFBorderKeyDashPattern

func PDFBorderKeyDashPattern() uintptr

func PDFBorderKeyLineWidth

func PDFBorderKeyLineWidth() uintptr

func PDFBorderKeyStyle

func PDFBorderKeyStyle() uintptr

func PDFDocumentAccessPermissionsOption

func PDFDocumentAccessPermissionsOption() uintptr

func PDFDocumentAuthorAttribute

func PDFDocumentAuthorAttribute() uintptr

func PDFDocumentBurnInAnnotationsOption

func PDFDocumentBurnInAnnotationsOption() uintptr

func PDFDocumentCreationDateAttribute

func PDFDocumentCreationDateAttribute() uintptr

func PDFDocumentCreatorAttribute

func PDFDocumentCreatorAttribute() uintptr

func PDFDocumentDidBeginFindNotification

func PDFDocumentDidBeginFindNotification() uintptr

func PDFDocumentDidBeginPageFindNotification

func PDFDocumentDidBeginPageFindNotification() uintptr

func PDFDocumentDidBeginPageWriteNotification

func PDFDocumentDidBeginPageWriteNotification() uintptr

func PDFDocumentDidBeginWriteNotification

func PDFDocumentDidBeginWriteNotification() uintptr

func PDFDocumentDidEndFindNotification

func PDFDocumentDidEndFindNotification() uintptr

func PDFDocumentDidEndPageFindNotification

func PDFDocumentDidEndPageFindNotification() uintptr

func PDFDocumentDidEndPageWriteNotification

func PDFDocumentDidEndPageWriteNotification() uintptr

func PDFDocumentDidEndWriteNotification

func PDFDocumentDidEndWriteNotification() uintptr

func PDFDocumentDidFindMatchNotification

func PDFDocumentDidFindMatchNotification() uintptr

func PDFDocumentDidUnlockNotification

func PDFDocumentDidUnlockNotification() uintptr

func PDFDocumentFoundSelectionKey

func PDFDocumentFoundSelectionKey() uintptr

func PDFDocumentKeywordsAttribute

func PDFDocumentKeywordsAttribute() uintptr

func PDFDocumentModificationDateAttribute

func PDFDocumentModificationDateAttribute() uintptr

func PDFDocumentOptimizeImagesForScreenOption

func PDFDocumentOptimizeImagesForScreenOption() uintptr

func PDFDocumentOwnerPasswordOption

func PDFDocumentOwnerPasswordOption() uintptr

func PDFDocumentPageIndexKey

func PDFDocumentPageIndexKey() uintptr

func PDFDocumentProducerAttribute

func PDFDocumentProducerAttribute() uintptr

func PDFDocumentSaveImagesAsJPEGOption

func PDFDocumentSaveImagesAsJPEGOption() uintptr

func PDFDocumentSaveTextFromOCROption

func PDFDocumentSaveTextFromOCROption() uintptr

func PDFDocumentSubjectAttribute

func PDFDocumentSubjectAttribute() uintptr

func PDFDocumentTitleAttribute

func PDFDocumentTitleAttribute() uintptr

func PDFDocumentUserPasswordOption

func PDFDocumentUserPasswordOption() uintptr

func PDFPageImageInitializationOptionCompressionQuality

func PDFPageImageInitializationOptionCompressionQuality() uintptr

func PDFPageImageInitializationOptionMediaBox

func PDFPageImageInitializationOptionMediaBox() uintptr

func PDFPageImageInitializationOptionRotation

func PDFPageImageInitializationOptionRotation() uintptr

func PDFPageImageInitializationOptionUpscaleIfSmaller

func PDFPageImageInitializationOptionUpscaleIfSmaller() uintptr

func PDFThumbnailViewDocumentEditedNotification

func PDFThumbnailViewDocumentEditedNotification() uintptr

func PDFViewAnnotationHitNotification

func PDFViewAnnotationHitNotification() uintptr

func PDFViewAnnotationWillHitNotification

func PDFViewAnnotationWillHitNotification() uintptr

func PDFViewChangedHistoryNotification

func PDFViewChangedHistoryNotification() uintptr

func PDFViewCopyPermissionNotification

func PDFViewCopyPermissionNotification() uintptr

func PDFViewDisplayBoxChangedNotification

func PDFViewDisplayBoxChangedNotification() uintptr

func PDFViewDisplayModeChangedNotification

func PDFViewDisplayModeChangedNotification() uintptr

func PDFViewDocumentChangedNotification

func PDFViewDocumentChangedNotification() uintptr

func PDFViewPageChangedNotification

func PDFViewPageChangedNotification() uintptr

func PDFViewPrintPermissionNotification

func PDFViewPrintPermissionNotification() uintptr

func PDFViewScaleChangedNotification

func PDFViewScaleChangedNotification() uintptr

func PDFViewSelectionChangedNotification

func PDFViewSelectionChangedNotification() uintptr

func PDFViewVisiblePagesChangedNotification

func PDFViewVisiblePagesChangedNotification() uintptr

Types

type Acl_entry_id_t

type Acl_entry_id_t int64
const (
	ACL_FIRST_ENTRY Acl_entry_id_t = 0
	ACL_NEXT_ENTRY  Acl_entry_id_t = -1
	ACL_LAST_ENTRY  Acl_entry_id_t = -2
)

func (Acl_entry_id_t) String

func (e Acl_entry_id_t) String() string

type Acl_flag_t

type Acl_flag_t int64
const (
	ACL_FLAG_DEFER_INHERIT      Acl_flag_t = 1
	ACL_FLAG_NO_INHERIT         Acl_flag_t = 131072
	ACL_ENTRY_INHERITED         Acl_flag_t = 16
	ACL_ENTRY_FILE_INHERIT      Acl_flag_t = 32
	ACL_ENTRY_DIRECTORY_INHERIT Acl_flag_t = 64
	ACL_ENTRY_LIMIT_INHERIT     Acl_flag_t = 128
	ACL_ENTRY_ONLY_INHERIT      Acl_flag_t = 256
)

func (Acl_flag_t) String

func (e Acl_flag_t) String() string

type Acl_perm_t

type Acl_perm_t int64
const (
	ACL_READ_DATA           Acl_perm_t = 2
	ACL_LIST_DIRECTORY      Acl_perm_t = 2
	ACL_WRITE_DATA          Acl_perm_t = 4
	ACL_ADD_FILE            Acl_perm_t = 4
	ACL_EXECUTE             Acl_perm_t = 8
	ACL_SEARCH              Acl_perm_t = 8
	ACL_DELETE              Acl_perm_t = 16
	ACL_APPEND_DATA         Acl_perm_t = 32
	ACL_ADD_SUBDIRECTORY    Acl_perm_t = 32
	ACL_DELETE_CHILD        Acl_perm_t = 64
	ACL_READ_ATTRIBUTES     Acl_perm_t = 128
	ACL_WRITE_ATTRIBUTES    Acl_perm_t = 256
	ACL_READ_EXTATTRIBUTES  Acl_perm_t = 512
	ACL_WRITE_EXTATTRIBUTES Acl_perm_t = 1024
	ACL_READ_SECURITY       Acl_perm_t = 2048
	ACL_WRITE_SECURITY      Acl_perm_t = 4096
	ACL_CHANGE_OWNER        Acl_perm_t = 8192
	ACL_SYNCHRONIZE         Acl_perm_t = 1048576
)

func (Acl_perm_t) String

func (e Acl_perm_t) String() string

type Acl_tag_t

type Acl_tag_t int64
const (
	ACL_UNDEFINED_TAG  Acl_tag_t = 0
	ACL_EXTENDED_ALLOW Acl_tag_t = 1
	ACL_EXTENDED_DENY  Acl_tag_t = 2
)

func (Acl_tag_t) String

func (e Acl_tag_t) String() string

type Acl_type_t

type Acl_type_t int64
const (
	ACL_TYPE_EXTENDED Acl_type_t = 256
	ACL_TYPE_ACCESS   Acl_type_t = 0
	ACL_TYPE_DEFAULT  Acl_type_t = 1
	ACL_TYPE_AFS      Acl_type_t = 2
	ACL_TYPE_CODA     Acl_type_t = 3
	ACL_TYPE_NTFS     Acl_type_t = 4
	ACL_TYPE_NWFS     Acl_type_t = 5
)

func (Acl_type_t) String

func (e Acl_type_t) String() string

type CGLCPContextPriorityRequest

type CGLCPContextPriorityRequest int64
const (
	KCGLCPContextPriorityRequestHigh   CGLCPContextPriorityRequest = 0
	KCGLCPContextPriorityRequestNormal CGLCPContextPriorityRequest = 1
	KCGLCPContextPriorityRequestLow    CGLCPContextPriorityRequest = 2
)

func (CGLCPContextPriorityRequest) String

type Clockid_t

type Clockid_t int64

func (Clockid_t) String

func (e Clockid_t) String() string

type Dispatch_autorelease_frequency_t

type Dispatch_autorelease_frequency_t uint64
const (
	DISPATCH_AUTORELEASE_FREQUENCY_INHERIT   Dispatch_autorelease_frequency_t = 0
	DISPATCH_AUTORELEASE_FREQUENCY_WORK_ITEM Dispatch_autorelease_frequency_t = 1
	DISPATCH_AUTORELEASE_FREQUENCY_NEVER     Dispatch_autorelease_frequency_t = 2
)

func (Dispatch_autorelease_frequency_t) String

type Dispatch_block_flags_t

type Dispatch_block_flags_t uint64
const (
	DISPATCH_BLOCK_BARRIER           Dispatch_block_flags_t = 1
	DISPATCH_BLOCK_DETACHED          Dispatch_block_flags_t = 2
	DISPATCH_BLOCK_ASSIGN_CURRENT    Dispatch_block_flags_t = 4
	DISPATCH_BLOCK_NO_QOS_CLASS      Dispatch_block_flags_t = 8
	DISPATCH_BLOCK_INHERIT_QOS_CLASS Dispatch_block_flags_t = 16
	DISPATCH_BLOCK_ENFORCE_QOS_CLASS Dispatch_block_flags_t = 32
)

func (Dispatch_block_flags_t) String

func (e Dispatch_block_flags_t) String() string

type EvCmd

type EvCmd int64
const (
	EVNOP   EvCmd = 0
	EVHIDE  EvCmd = 1
	EVSHOW  EvCmd = 2
	EVMOVE  EvCmd = 3
	EVLEVEL EvCmd = 4
)

func (EvCmd) String

func (e EvCmd) String() string

type Filesec_property_t

type Filesec_property_t int64
const (
	FILESEC_OWNER         Filesec_property_t = 1
	FILESEC_GROUP         Filesec_property_t = 2
	FILESEC_UUID          Filesec_property_t = 3
	FILESEC_MODE          Filesec_property_t = 4
	FILESEC_ACL           Filesec_property_t = 5
	FILESEC_GRPUUID       Filesec_property_t = 6
	FILESEC_ACL_RAW       Filesec_property_t = 100
	FILESEC_ACL_ALLOCSIZE Filesec_property_t = 101
)

func (Filesec_property_t) String

func (e Filesec_property_t) String() string

type Idtype_t

type Idtype_t int64
const (
	P_ALL  Idtype_t = 0
	P_PID  Idtype_t = 1
	P_PGID Idtype_t = 2
)

func (Idtype_t) String

func (e Idtype_t) String() string

type Ipc_info_object_type_t

type Ipc_info_object_type_t int64
const (
	IPC_OTYPE_NONE                 Ipc_info_object_type_t = 0
	IPC_OTYPE_THREAD_CONTROL       Ipc_info_object_type_t = 1
	IPC_OTYPE_TASK_CONTROL         Ipc_info_object_type_t = 2
	IPC_OTYPE_HOST                 Ipc_info_object_type_t = 3
	IPC_OTYPE_HOST_PRIV            Ipc_info_object_type_t = 4
	IPC_OTYPE_PROCESSOR            Ipc_info_object_type_t = 5
	IPC_OTYPE_PROCESSOR_SET        Ipc_info_object_type_t = 6
	IPC_OTYPE_PROCESSOR_SET_NAME   Ipc_info_object_type_t = 7
	IPC_OTYPE_TIMER                Ipc_info_object_type_t = 8
	IPC_OTYPE_PORT_SUBST_ONCE      Ipc_info_object_type_t = 9
	IPC_OTYPE_MIG                  Ipc_info_object_type_t = 10
	IPC_OTYPE_MEMORY_OBJECT        Ipc_info_object_type_t = 11
	IPC_OTYPE_XMM_PAGER            Ipc_info_object_type_t = 12
	IPC_OTYPE_XMM_KERNEL           Ipc_info_object_type_t = 13
	IPC_OTYPE_XMM_REPLY            Ipc_info_object_type_t = 14
	IPC_OTYPE_UND_REPLY            Ipc_info_object_type_t = 15
	IPC_OTYPE_HOST_NOTIFY          Ipc_info_object_type_t = 16
	IPC_OTYPE_HOST_SECURITY        Ipc_info_object_type_t = 17
	IPC_OTYPE_LEDGER               Ipc_info_object_type_t = 18
	IPC_OTYPE_MAIN_DEVICE          Ipc_info_object_type_t = 19
	IPC_OTYPE_TASK_NAME            Ipc_info_object_type_t = 20
	IPC_OTYPE_SUBSYSTEM            Ipc_info_object_type_t = 21
	IPC_OTYPE_IO_DONE_QUEUE        Ipc_info_object_type_t = 22
	IPC_OTYPE_SEMAPHORE            Ipc_info_object_type_t = 23
	IPC_OTYPE_LOCK_SET             Ipc_info_object_type_t = 24
	IPC_OTYPE_CLOCK                Ipc_info_object_type_t = 25
	IPC_OTYPE_CLOCK_CTRL           Ipc_info_object_type_t = 26
	IPC_OTYPE_IOKIT_IDENT          Ipc_info_object_type_t = 27
	IPC_OTYPE_NAMED_ENTRY          Ipc_info_object_type_t = 28
	IPC_OTYPE_IOKIT_CONNECT        Ipc_info_object_type_t = 29
	IPC_OTYPE_IOKIT_OBJECT         Ipc_info_object_type_t = 30
	IPC_OTYPE_UPL                  Ipc_info_object_type_t = 31
	IPC_OTYPE_MEM_OBJ_CONTROL      Ipc_info_object_type_t = 32
	IPC_OTYPE_AU_SESSIONPORT       Ipc_info_object_type_t = 33
	IPC_OTYPE_FILEPORT             Ipc_info_object_type_t = 34
	IPC_OTYPE_LABELH               Ipc_info_object_type_t = 35
	IPC_OTYPE_TASK_RESUME          Ipc_info_object_type_t = 36
	IPC_OTYPE_VOUCHER              Ipc_info_object_type_t = 37
	IPC_OTYPE_VOUCHER_ATTR_CONTROL Ipc_info_object_type_t = 38
	IPC_OTYPE_WORK_INTERVAL        Ipc_info_object_type_t = 39
	IPC_OTYPE_UX_HANDLER           Ipc_info_object_type_t = 40
	IPC_OTYPE_UEXT_OBJECT          Ipc_info_object_type_t = 41
	IPC_OTYPE_ARCADE_REG           Ipc_info_object_type_t = 42
	IPC_OTYPE_EVENTLINK            Ipc_info_object_type_t = 43
	IPC_OTYPE_TASK_INSPECT         Ipc_info_object_type_t = 44
	IPC_OTYPE_TASK_READ            Ipc_info_object_type_t = 45
	IPC_OTYPE_THREAD_INSPECT       Ipc_info_object_type_t = 46
	IPC_OTYPE_THREAD_READ          Ipc_info_object_type_t = 47
	IPC_OTYPE_SUID_CRED            Ipc_info_object_type_t = 48
	IPC_OTYPE_HYPERVISOR           Ipc_info_object_type_t = 49
	IPC_OTYPE_TASK_ID_TOKEN        Ipc_info_object_type_t = 50
	IPC_OTYPE_TASK_FATAL           Ipc_info_object_type_t = 51
	IPC_OTYPE_KCDATA               Ipc_info_object_type_t = 52
	IPC_OTYPE_EXCLAVES_RESOURCE    Ipc_info_object_type_t = 53
	IPC_OTYPE_THREAD_RESUME        Ipc_info_object_type_t = 54
	IPC_OTYPE_UNKNOWN              Ipc_info_object_type_t = 4294967295
)

func (Ipc_info_object_type_t) String

func (e Ipc_info_object_type_t) String() string

type Launch_data_type_t

type Launch_data_type_t int64
const (
	LAUNCH_DATA_DICTIONARY Launch_data_type_t = 1
	LAUNCH_DATA_ARRAY      Launch_data_type_t = 2
	LAUNCH_DATA_FD         Launch_data_type_t = 3
	LAUNCH_DATA_INTEGER    Launch_data_type_t = 4
	LAUNCH_DATA_REAL       Launch_data_type_t = 5
	LAUNCH_DATA_BOOL       Launch_data_type_t = 6
	LAUNCH_DATA_STRING     Launch_data_type_t = 7
	LAUNCH_DATA_OPAQUE     Launch_data_type_t = 8
	LAUNCH_DATA_ERRNO      Launch_data_type_t = 9
	LAUNCH_DATA_MACHPORT   Launch_data_type_t = 10
)

func (Launch_data_type_t) String

func (e Launch_data_type_t) String() string

type MDLabelDomain

type MDLabelDomain int64

@typedef MDLabelDomain @abstract These constants are used to specify a domain to MDLabelCreate().

const (
	KMDLabelUserDomain  MDLabelDomain = 0
	KMDLabelLocalDomain MDLabelDomain = 1
)

func (MDLabelDomain) String

func (e MDLabelDomain) String() string

type MDQueryOptionFlags

type MDQueryOptionFlags int64
const (
	KMDQuerySynchronous        MDQueryOptionFlags = 1
	KMDQueryWantsUpdates       MDQueryOptionFlags = 4
	KMDQueryAllowFSTranslation MDQueryOptionFlags = 8
)

func (MDQueryOptionFlags) String

func (e MDQueryOptionFlags) String() string

type MDQuerySortOptionFlags

type MDQuerySortOptionFlags int64

@enum MDQuerySortOptionFlags @constant kMDQueryReverseSortOrderFlag Sort the attribute in reverse order.

const (
	KMDQueryReverseSortOrderFlag MDQuerySortOptionFlags = 1
)

func (MDQuerySortOptionFlags) String

func (e MDQuerySortOptionFlags) String() string

type Mach_vm_range_flags_t

type Mach_vm_range_flags_t int64
const (
	MACH_VM_RANGE_NONE Mach_vm_range_flags_t = 0
)

func (Mach_vm_range_flags_t) String

func (e Mach_vm_range_flags_t) String() string

type Mach_vm_range_flavor_t

type Mach_vm_range_flavor_t int64
const (
	MACH_VM_RANGE_FLAVOR_INVALID Mach_vm_range_flavor_t = 0
	MACH_VM_RANGE_FLAVOR_V1      Mach_vm_range_flavor_t = 1
)

func (Mach_vm_range_flavor_t) String

func (e Mach_vm_range_flavor_t) String() string

type Mach_vm_range_tag_t

type Mach_vm_range_tag_t int64
const (
	MACH_VM_RANGE_DEFAULT Mach_vm_range_tag_t = 0
	MACH_VM_RANGE_DATA    Mach_vm_range_tag_t = 1
	MACH_VM_RANGE_FIXED   Mach_vm_range_tag_t = 2
)

func (Mach_vm_range_tag_t) String

func (e Mach_vm_range_tag_t) String() string

type Mpo_flags_t

type Mpo_flags_t int64
const (
	MPO_PORT                            Mpo_flags_t = 0
	MPO_SERVICE_PORT                    Mpo_flags_t = 1024
	MPO_CONNECTION_PORT                 Mpo_flags_t = 2048
	MPO_REPLY_PORT                      Mpo_flags_t = 4096
	MPO_WEAK_REPLY_PORT                 Mpo_flags_t = 16384
	MPO_NOTIFICATION_PORT               Mpo_flags_t = 17408
	MPO_EXCEPTION_PORT                  Mpo_flags_t = 32768
	MPO_CONNECTION_PORT_WITH_PORT_ARRAY Mpo_flags_t = 65536
)

func (Mpo_flags_t) String

func (e Mpo_flags_t) String() string

type NXMouseButton

type NXMouseButton int64
const (
	NX_OneButton   NXMouseButton = 0
	NX_LeftButton  NXMouseButton = 1
	NX_RightButton NXMouseButton = 2
)

func (NXMouseButton) String

func (e NXMouseButton) String() string

type Os_clockid_t

type Os_clockid_t int64
const (
	OS_CLOCK_MACH_ABSOLUTE_TIME Os_clockid_t = 32
)

func (Os_clockid_t) String

func (e Os_clockid_t) String() string

type Os_unfair_lock_flags_t

type Os_unfair_lock_flags_t int64
const (
	OS_UNFAIR_LOCK_FLAG_NONE          Os_unfair_lock_flags_t = 0
	OS_UNFAIR_LOCK_FLAG_ADAPTIVE_SPIN Os_unfair_lock_flags_t = 262144
)

func (Os_unfair_lock_flags_t) String

func (e Os_unfair_lock_flags_t) String() string

type PDFAccessPermissions

type PDFAccessPermissions uint64
const (
	PDFAllowsLowQualityPrinting   PDFAccessPermissions = 1
	PDFAllowsHighQualityPrinting  PDFAccessPermissions = 2
	PDFAllowsDocumentChanges      PDFAccessPermissions = 4
	PDFAllowsDocumentAssembly     PDFAccessPermissions = 8
	PDFAllowsContentCopying       PDFAccessPermissions = 16
	PDFAllowsContentAccessibility PDFAccessPermissions = 32
	PDFAllowsCommenting           PDFAccessPermissions = 64
	PDFAllowsFormFieldEntry       PDFAccessPermissions = 128
)

func (PDFAccessPermissions) String

func (e PDFAccessPermissions) String() string

type PDFAction

type PDFAction struct {
	foundation.NSObject
}

An action that is performed when, for example, a PDF annotation is activated or an outline item is clicked.

Apple documentation: https://developer.apple.com/documentation/pdfkit/pdfaction

func PDFActionFromID

func PDFActionFromID(id objc.ID) *PDFAction

func (*PDFAction) Type

func (o *PDFAction) Type() *foundation.NSString

type PDFActionGoTo

type PDFActionGoTo struct {
	PDFAction
}

PDFActionGoTo, a subclass of PDFAction, defines methods for getting and setting the destination of a go-to action.

Apple documentation: https://developer.apple.com/documentation/pdfkit/pdfactiongoto

func PDFActionGoToFromID

func PDFActionGoToFromID(id objc.ID) *PDFActionGoTo

func (*PDFActionGoTo) Destination

func (o *PDFActionGoTo) Destination() *PDFDestination

func (*PDFActionGoTo) InitWithDestination

func (o *PDFActionGoTo) InitWithDestination(destination *PDFDestination) *PDFActionGoTo

Initializes the go-to action.

func (*PDFActionGoTo) SetDestination

func (o *PDFActionGoTo) SetDestination(destination *PDFDestination)

type PDFActionNamed

type PDFActionNamed struct {
	PDFAction
}

PDFActionNamed defines methods used to work with actions in PDF documents, some of which are named in the Adobe PDF Specification.

Apple documentation: https://developer.apple.com/documentation/pdfkit/pdfactionnamed

func PDFActionNamedFromID

func PDFActionNamedFromID(id objc.ID) *PDFActionNamed

func (*PDFActionNamed) InitWithName

func (o *PDFActionNamed) InitWithName(name PDFActionNamedName) *PDFActionNamed

Initializes the PDFActionName object with the specified named action.

func (*PDFActionNamed) Name

func (*PDFActionNamed) SetName

func (o *PDFActionNamed) SetName(name PDFActionNamedName)

type PDFActionNamedName

type PDFActionNamedName int64
const (
	// The action has no name.
	KPDFActionNamedNone PDFActionNamedName = 0
	// The Next Page action.
	KPDFActionNamedNextPage PDFActionNamedName = 1
	// The Previous Page action.
	KPDFActionNamedPreviousPage PDFActionNamedName = 2
	// The First Page action.
	KPDFActionNamedFirstPage PDFActionNamedName = 3
	// The Last Page action.
	KPDFActionNamedLastPage PDFActionNamedName = 4
	// The Go Back action.
	KPDFActionNamedGoBack PDFActionNamedName = 5
	// The Go Forward action.
	KPDFActionNamedGoForward PDFActionNamedName = 6
	// The Go to Page action.
	KPDFActionNamedGoToPage PDFActionNamedName = 7
	// The Find action.
	KPDFActionNamedFind PDFActionNamedName = 8
	// The Print action.
	KPDFActionNamedPrint PDFActionNamedName = 9
	// The Zoom In action.
	KPDFActionNamedZoomIn PDFActionNamedName = 10
	// The Zoom Out action.
	KPDFActionNamedZoomOut PDFActionNamedName = 11
)

func (PDFActionNamedName) String

func (e PDFActionNamedName) String() string

type PDFActionRemoteGoTo

type PDFActionRemoteGoTo struct {
	PDFAction
}

PDFActionRemoteGoTo, a subclass of PDFAction, defines methods for getting and setting the destination of a go-to action that targets another document.

Apple documentation: https://developer.apple.com/documentation/pdfkit/pdfactionremotegoto

func PDFActionRemoteGoToFromID

func PDFActionRemoteGoToFromID(id objc.ID) *PDFActionRemoteGoTo

func (*PDFActionRemoteGoTo) InitWithPageIndexAtPointFileURL

func (o *PDFActionRemoteGoTo) InitWithPageIndexAtPointFileURL(pageIndex uint, point corefoundation.CGPoint, url *foundation.NSURL) *PDFActionRemoteGoTo

Initializes the remote go-to action with the specified page index, point, and document URL.

func (*PDFActionRemoteGoTo) PageIndex

func (o *PDFActionRemoteGoTo) PageIndex() uint

func (*PDFActionRemoteGoTo) Point

func (*PDFActionRemoteGoTo) SetPageIndex

func (o *PDFActionRemoteGoTo) SetPageIndex(pageIndex uint)

func (*PDFActionRemoteGoTo) SetPoint

func (o *PDFActionRemoteGoTo) SetPoint(point corefoundation.CGPoint)

func (*PDFActionRemoteGoTo) SetURL

func (o *PDFActionRemoteGoTo) SetURL(uRL *foundation.NSURL)

func (*PDFActionRemoteGoTo) URL

type PDFActionResetForm

type PDFActionResetForm struct {
	PDFAction
}

PDFActionResetForm, a subclass of PDFAction, defines methods for getting and clearing fields in a PDF form.

Apple documentation: https://developer.apple.com/documentation/pdfkit/pdfactionresetform

func PDFActionResetFormFromID

func PDFActionResetFormFromID(id objc.ID) *PDFActionResetForm

func (*PDFActionResetForm) Fields

func (*PDFActionResetForm) FieldsIncludedAreCleared

func (o *PDFActionResetForm) FieldsIncludedAreCleared() bool

func (*PDFActionResetForm) Init

Initializes a reset form action.

func (*PDFActionResetForm) SetFields

func (o *PDFActionResetForm) SetFields(fields *foundation.NSArray[*foundation.NSString])

func (*PDFActionResetForm) SetFieldsIncludedAreCleared

func (o *PDFActionResetForm) SetFieldsIncludedAreCleared(fieldsIncludedAreCleared bool)

type PDFActionURL

type PDFActionURL struct {
	PDFAction
}

PDFActionURL, a subclass of PDFAction, defines methods for getting and setting the URL associated with a URL action.

Apple documentation: https://developer.apple.com/documentation/pdfkit/pdfactionurl

func PDFActionURLFromID

func PDFActionURLFromID(id objc.ID) *PDFActionURL

func (*PDFActionURL) InitWithURL

func (o *PDFActionURL) InitWithURL(url *foundation.NSURL) *PDFActionURL

Initializes a URL action with the specified URL.

func (*PDFActionURL) SetURL

func (o *PDFActionURL) SetURL(uRL *foundation.NSURL)

func (*PDFActionURL) URL

func (o *PDFActionURL) URL() *foundation.NSURL

type PDFAnnotation

type PDFAnnotation struct {
	foundation.NSObject
}

An annotation in a PDF document.

Apple documentation: https://developer.apple.com/documentation/pdfkit/pdfannotation

func PDFAnnotationFromID

func PDFAnnotationFromID(id objc.ID) *PDFAnnotation

func (*PDFAnnotation) Action

func (o *PDFAnnotation) Action() unsafe.Pointer

func (*PDFAnnotation) AddBezierPath

func (o *PDFAnnotation) AddBezierPath(path *appkit.NSBezierPath)

Adds a bezier path to the ink annotation.

func (*PDFAnnotation) Alignment

func (o *PDFAnnotation) Alignment() appkit.NSTextAlignment

func (*PDFAnnotation) AllowsToggleToOff

func (o *PDFAnnotation) AllowsToggleToOff() bool

func (*PDFAnnotation) AnnotationKeyValues

func (o *PDFAnnotation) AnnotationKeyValues() unsafe.Pointer

func (*PDFAnnotation) BackgroundColor

func (o *PDFAnnotation) BackgroundColor() *appkit.NSColor

func (*PDFAnnotation) Border

func (o *PDFAnnotation) Border() unsafe.Pointer

func (*PDFAnnotation) Bounds

func (o *PDFAnnotation) Bounds() corefoundation.CGRect

func (*PDFAnnotation) ButtonWidgetState

func (o *PDFAnnotation) ButtonWidgetState() PDFWidgetCellState

func (*PDFAnnotation) ButtonWidgetStateString

func (o *PDFAnnotation) ButtonWidgetStateString() *foundation.NSString

func (*PDFAnnotation) Caption

func (o *PDFAnnotation) Caption() *foundation.NSString

func (*PDFAnnotation) Choices

func (*PDFAnnotation) Color

func (o *PDFAnnotation) Color() unsafe.Pointer

func (*PDFAnnotation) Contents

func (o *PDFAnnotation) Contents() unsafe.Pointer

func (*PDFAnnotation) Destination

func (o *PDFAnnotation) Destination() *PDFDestination

func (*PDFAnnotation) DrawWithBox

func (o *PDFAnnotation) DrawWithBox(box PDFDisplayBox)

func (*PDFAnnotation) DrawWithBoxInContext

func (o *PDFAnnotation) DrawWithBoxInContext(box PDFDisplayBox, context_ unsafe.Pointer)

Draws the annotation in a graphics context using page-space coordinates relative to the origin of the specified box.

func (*PDFAnnotation) EndLineStyle

func (o *PDFAnnotation) EndLineStyle() PDFLineStyle

func (*PDFAnnotation) EndPoint

func (o *PDFAnnotation) EndPoint() corefoundation.CGPoint

func (*PDFAnnotation) FieldName

func (o *PDFAnnotation) FieldName() *foundation.NSString

func (*PDFAnnotation) Font

func (o *PDFAnnotation) Font() *appkit.NSFont

func (*PDFAnnotation) FontColor

func (o *PDFAnnotation) FontColor() *appkit.NSColor

func (*PDFAnnotation) HasAppearanceStream

func (o *PDFAnnotation) HasAppearanceStream() bool

func (*PDFAnnotation) HasComb

func (o *PDFAnnotation) HasComb() bool

func (*PDFAnnotation) IconType

func (*PDFAnnotation) InitWithBounds

func (o *PDFAnnotation) InitWithBounds(bounds corefoundation.CGRect) *PDFAnnotation

func (*PDFAnnotation) InitWithBoundsForTypeWithProperties

func (o *PDFAnnotation) InitWithBoundsForTypeWithProperties(bounds corefoundation.CGRect, annotationType *foundation.NSString, properties *foundation.NSDictionary[objc.ID, objc.ID]) *PDFAnnotation

Creates a PDF annotation with the specified bounds, type, and optional properties.

func (*PDFAnnotation) InitWithDictionaryForPage

func (o *PDFAnnotation) InitWithDictionaryForPage(dictionary *foundation.NSDictionary[objc.ID, objc.ID], page *PDFPage) *PDFAnnotation

func (*PDFAnnotation) InteriorColor

func (o *PDFAnnotation) InteriorColor() *appkit.NSColor

func (*PDFAnnotation) IsActivatableTextField

func (o *PDFAnnotation) IsActivatableTextField() bool

func (*PDFAnnotation) IsHighlighted

func (o *PDFAnnotation) IsHighlighted() bool

func (*PDFAnnotation) IsListChoice

func (o *PDFAnnotation) IsListChoice() bool

func (*PDFAnnotation) IsMultiline

func (o *PDFAnnotation) IsMultiline() bool

func (*PDFAnnotation) IsOpen

func (o *PDFAnnotation) IsOpen() bool

func (*PDFAnnotation) IsPasswordField

func (o *PDFAnnotation) IsPasswordField() bool

func (*PDFAnnotation) IsReadOnly

func (o *PDFAnnotation) IsReadOnly() bool

func (*PDFAnnotation) MarkupType

func (o *PDFAnnotation) MarkupType() PDFMarkupType

func (*PDFAnnotation) MaximumLength

func (o *PDFAnnotation) MaximumLength() int

func (*PDFAnnotation) ModificationDate

func (o *PDFAnnotation) ModificationDate() unsafe.Pointer

func (*PDFAnnotation) MouseUpAction

func (o *PDFAnnotation) MouseUpAction() unsafe.Pointer

func (*PDFAnnotation) Page

func (o *PDFAnnotation) Page() *PDFPage

func (*PDFAnnotation) Paths

func (*PDFAnnotation) Popup

func (o *PDFAnnotation) Popup() unsafe.Pointer

func (*PDFAnnotation) QuadrilateralPoints

func (o *PDFAnnotation) QuadrilateralPoints() *foundation.NSArray[*foundation.NSValue]

func (*PDFAnnotation) RadiosInUnison

func (o *PDFAnnotation) RadiosInUnison() bool

func (*PDFAnnotation) RemoveAllAppearanceStreams

func (o *PDFAnnotation) RemoveAllAppearanceStreams()

func (*PDFAnnotation) RemoveBezierPath

func (o *PDFAnnotation) RemoveBezierPath(path *appkit.NSBezierPath)

Removes a bezier path from an ink annotation.

func (*PDFAnnotation) RemoveValueForAnnotationKey

func (o *PDFAnnotation) RemoveValueForAnnotationKey(key *foundation.NSString)

Removes a value from the annotation’s dictionary.

func (*PDFAnnotation) SetAction

func (o *PDFAnnotation) SetAction(action unsafe.Pointer)

func (*PDFAnnotation) SetAlignment

func (o *PDFAnnotation) SetAlignment(alignment appkit.NSTextAlignment)

func (*PDFAnnotation) SetAllowsToggleToOff

func (o *PDFAnnotation) SetAllowsToggleToOff(allowsToggleToOff bool)

func (*PDFAnnotation) SetBackgroundColor

func (o *PDFAnnotation) SetBackgroundColor(backgroundColor *appkit.NSColor)

func (*PDFAnnotation) SetBooleanForAnnotationKey

func (o *PDFAnnotation) SetBooleanForAnnotationKey(value bool, key *foundation.NSString) bool

Sets a Boolean value in the annotation’s dictionary.

func (*PDFAnnotation) SetBorder

func (o *PDFAnnotation) SetBorder(border unsafe.Pointer)

func (*PDFAnnotation) SetBounds

func (o *PDFAnnotation) SetBounds(bounds corefoundation.CGRect)

func (*PDFAnnotation) SetButtonWidgetState

func (o *PDFAnnotation) SetButtonWidgetState(buttonWidgetState PDFWidgetCellState)

func (*PDFAnnotation) SetButtonWidgetStateString

func (o *PDFAnnotation) SetButtonWidgetStateString(buttonWidgetStateString *foundation.NSString)

func (*PDFAnnotation) SetCaption

func (o *PDFAnnotation) SetCaption(caption *foundation.NSString)

func (*PDFAnnotation) SetChoices

func (o *PDFAnnotation) SetChoices(choices *foundation.NSArray[*foundation.NSString])

func (*PDFAnnotation) SetColor

func (o *PDFAnnotation) SetColor(color unsafe.Pointer)

func (*PDFAnnotation) SetComb

func (o *PDFAnnotation) SetComb(comb bool)

func (*PDFAnnotation) SetContents

func (o *PDFAnnotation) SetContents(contents unsafe.Pointer)

func (*PDFAnnotation) SetDestination

func (o *PDFAnnotation) SetDestination(destination *PDFDestination)

func (*PDFAnnotation) SetEndLineStyle

func (o *PDFAnnotation) SetEndLineStyle(endLineStyle PDFLineStyle)

func (*PDFAnnotation) SetEndPoint

func (o *PDFAnnotation) SetEndPoint(endPoint corefoundation.CGPoint)

func (*PDFAnnotation) SetFieldName

func (o *PDFAnnotation) SetFieldName(fieldName *foundation.NSString)

func (*PDFAnnotation) SetFont

func (o *PDFAnnotation) SetFont(font *appkit.NSFont)

func (*PDFAnnotation) SetFontColor

func (o *PDFAnnotation) SetFontColor(fontColor *appkit.NSColor)

func (*PDFAnnotation) SetHighlighted

func (o *PDFAnnotation) SetHighlighted(highlighted bool)

func (*PDFAnnotation) SetIconType

func (o *PDFAnnotation) SetIconType(iconType PDFTextAnnotationIconType)

func (*PDFAnnotation) SetInteriorColor

func (o *PDFAnnotation) SetInteriorColor(interiorColor *appkit.NSColor)

func (*PDFAnnotation) SetListChoice

func (o *PDFAnnotation) SetListChoice(listChoice bool)

func (*PDFAnnotation) SetMarkupType

func (o *PDFAnnotation) SetMarkupType(markupType PDFMarkupType)

func (*PDFAnnotation) SetMaximumLength

func (o *PDFAnnotation) SetMaximumLength(maximumLength int)

func (*PDFAnnotation) SetModificationDate

func (o *PDFAnnotation) SetModificationDate(modificationDate unsafe.Pointer)

func (*PDFAnnotation) SetMouseUpAction

func (o *PDFAnnotation) SetMouseUpAction(mouseUpAction unsafe.Pointer)

func (*PDFAnnotation) SetMultiline

func (o *PDFAnnotation) SetMultiline(multiline bool)

func (*PDFAnnotation) SetOpen

func (o *PDFAnnotation) SetOpen(open bool)

func (*PDFAnnotation) SetPage

func (o *PDFAnnotation) SetPage(page *PDFPage)

func (*PDFAnnotation) SetPopup

func (o *PDFAnnotation) SetPopup(popup unsafe.Pointer)

func (*PDFAnnotation) SetQuadrilateralPoints

func (o *PDFAnnotation) SetQuadrilateralPoints(quadrilateralPoints *foundation.NSArray[*foundation.NSValue])

func (*PDFAnnotation) SetRadiosInUnison

func (o *PDFAnnotation) SetRadiosInUnison(radiosInUnison bool)

func (*PDFAnnotation) SetReadOnly

func (o *PDFAnnotation) SetReadOnly(readOnly bool)

func (*PDFAnnotation) SetRectForAnnotationKey

func (o *PDFAnnotation) SetRectForAnnotationKey(value corefoundation.CGRect, key *foundation.NSString) bool

Sets a rectangle value in the annotation’s dictionary.

func (*PDFAnnotation) SetShouldDisplay

func (o *PDFAnnotation) SetShouldDisplay(shouldDisplay bool)

func (*PDFAnnotation) SetShouldPrint

func (o *PDFAnnotation) SetShouldPrint(shouldPrint bool)

func (*PDFAnnotation) SetStampName

func (o *PDFAnnotation) SetStampName(stampName *foundation.NSString)

func (*PDFAnnotation) SetStartLineStyle

func (o *PDFAnnotation) SetStartLineStyle(startLineStyle PDFLineStyle)

func (*PDFAnnotation) SetStartPoint

func (o *PDFAnnotation) SetStartPoint(startPoint corefoundation.CGPoint)

func (*PDFAnnotation) SetType

func (o *PDFAnnotation) SetType(type_ *foundation.NSString)

func (*PDFAnnotation) SetURL

func (o *PDFAnnotation) SetURL(uRL *foundation.NSURL)

func (*PDFAnnotation) SetUserName

func (o *PDFAnnotation) SetUserName(userName unsafe.Pointer)

func (*PDFAnnotation) SetValueForAnnotationKey

func (o *PDFAnnotation) SetValueForAnnotationKey(value objc.ID, key *foundation.NSString) bool

Sets a value in the annotation’s dictionary.

func (*PDFAnnotation) SetValues

func (o *PDFAnnotation) SetValues(values *foundation.NSArray[*foundation.NSString])

func (*PDFAnnotation) SetWidgetControlType

func (o *PDFAnnotation) SetWidgetControlType(widgetControlType PDFWidgetControlType)

func (*PDFAnnotation) SetWidgetDefaultStringValue

func (o *PDFAnnotation) SetWidgetDefaultStringValue(widgetDefaultStringValue *foundation.NSString)

func (*PDFAnnotation) SetWidgetFieldType

func (o *PDFAnnotation) SetWidgetFieldType(widgetFieldType *foundation.NSString)

func (*PDFAnnotation) SetWidgetStringValue

func (o *PDFAnnotation) SetWidgetStringValue(widgetStringValue *foundation.NSString)

func (*PDFAnnotation) ShouldDisplay

func (o *PDFAnnotation) ShouldDisplay() bool

func (*PDFAnnotation) ShouldPrint

func (o *PDFAnnotation) ShouldPrint() bool

func (*PDFAnnotation) StampName

func (o *PDFAnnotation) StampName() *foundation.NSString

func (*PDFAnnotation) StartLineStyle

func (o *PDFAnnotation) StartLineStyle() PDFLineStyle

func (*PDFAnnotation) StartPoint

func (o *PDFAnnotation) StartPoint() corefoundation.CGPoint

func (*PDFAnnotation) ToolTip

func (o *PDFAnnotation) ToolTip() unsafe.Pointer

func (*PDFAnnotation) Type

func (o *PDFAnnotation) Type() *foundation.NSString

func (*PDFAnnotation) URL

func (o *PDFAnnotation) URL() *foundation.NSURL

func (*PDFAnnotation) UserName

func (o *PDFAnnotation) UserName() unsafe.Pointer

func (*PDFAnnotation) ValueForAnnotationKey

func (o *PDFAnnotation) ValueForAnnotationKey(key *foundation.NSString) objc.ID

Returns a deep copy of the key-value pairs of properties for the specified key.

func (*PDFAnnotation) Values

func (*PDFAnnotation) WidgetControlType

func (o *PDFAnnotation) WidgetControlType() PDFWidgetControlType

func (*PDFAnnotation) WidgetDefaultStringValue

func (o *PDFAnnotation) WidgetDefaultStringValue() *foundation.NSString

func (*PDFAnnotation) WidgetFieldType

func (o *PDFAnnotation) WidgetFieldType() *foundation.NSString

func (*PDFAnnotation) WidgetStringValue

func (o *PDFAnnotation) WidgetStringValue() *foundation.NSString

type PDFAnnotationButtonWidget

type PDFAnnotationButtonWidget struct {
	PDFAnnotation
}

A PDFAnnotationButtonWidget object provides user interactivity on a page of a PDF document. There are three types of buttons available: push button, radio button, and checkbox.

Apple documentation: https://developer.apple.com/documentation/pdfkit/pdfannotationbuttonwidget

func PDFAnnotationButtonWidgetFromID

func PDFAnnotationButtonWidgetFromID(id objc.ID) *PDFAnnotationButtonWidget

func (*PDFAnnotationButtonWidget) ControlType

Returns the type of the control.

func (*PDFAnnotationButtonWidget) OnStateValue

func (o *PDFAnnotationButtonWidget) OnStateValue() *foundation.NSString

Returns the string associated with the on state of a radio button or checkbox control.

func (*PDFAnnotationButtonWidget) SetControlType

func (o *PDFAnnotationButtonWidget) SetControlType(type_ PDFWidgetControlType)

Sets the type of the control.

func (*PDFAnnotationButtonWidget) SetOnStateValue

func (o *PDFAnnotationButtonWidget) SetOnStateValue(name *foundation.NSString)

Sets the string that is associated with the on state of a radio button or checkbox control.

func (*PDFAnnotationButtonWidget) SetState

func (o *PDFAnnotationButtonWidget) SetState(value int)

Sets the state of the control.

func (*PDFAnnotationButtonWidget) State

func (o *PDFAnnotationButtonWidget) State() int

Returns the state of the control.

type PDFAnnotationChoiceWidget

type PDFAnnotationChoiceWidget struct {
	PDFAnnotation
}

A PDFAnnotationChoiceWidget object provides user interactivity on a page of a PDF document, in the form of pop-up menus and lists.

Apple documentation: https://developer.apple.com/documentation/pdfkit/pdfannotationchoicewidget

func PDFAnnotationChoiceWidgetFromID

func PDFAnnotationChoiceWidgetFromID(id objc.ID) *PDFAnnotationChoiceWidget

func (*PDFAnnotationChoiceWidget) SetIsListChoice

func (o *PDFAnnotationChoiceWidget) SetIsListChoice(isList bool)

Sets whether the widget annotation is a list.

func (*PDFAnnotationChoiceWidget) SetStringValue

func (o *PDFAnnotationChoiceWidget) SetStringValue(value *foundation.NSString)

Sets the selection in the widget annotation.

func (*PDFAnnotationChoiceWidget) StringValue

func (o *PDFAnnotationChoiceWidget) StringValue() *foundation.NSString

Returns the selection in the widget annotation.

type PDFAnnotationCircle

type PDFAnnotationCircle struct {
	PDFAnnotation
}

Apple documentation: https://developer.apple.com/documentation/pdfkit/pdfannotationcircle

func PDFAnnotationCircleFromID

func PDFAnnotationCircleFromID(id objc.ID) *PDFAnnotationCircle

type PDFAnnotationFreeText

type PDFAnnotationFreeText struct {
	PDFAnnotation
}

A PDFAnnotationFreeText object displays text on a page.

Apple documentation: https://developer.apple.com/documentation/pdfkit/pdfannotationfreetext

func PDFAnnotationFreeTextFromID

func PDFAnnotationFreeTextFromID(id objc.ID) *PDFAnnotationFreeText

type PDFAnnotationInk

type PDFAnnotationInk struct {
	PDFAnnotation
}

Apple documentation: https://developer.apple.com/documentation/pdfkit/pdfannotationink

func PDFAnnotationInkFromID

func PDFAnnotationInkFromID(id objc.ID) *PDFAnnotationInk

type PDFAnnotationLine

type PDFAnnotationLine struct {
	PDFAnnotation
}

A PDFAnnotationLine object displays a single line on a page.

Apple documentation: https://developer.apple.com/documentation/pdfkit/pdfannotationline

func PDFAnnotationLineFromID

func PDFAnnotationLineFromID(id objc.ID) *PDFAnnotationLine
type PDFAnnotationLink struct {
	PDFAnnotation
}

Apple documentation: https://developer.apple.com/documentation/pdfkit/pdfannotationlink

func PDFAnnotationLinkFromID

func PDFAnnotationLinkFromID(id objc.ID) *PDFAnnotationLink

type PDFAnnotationMarkup

type PDFAnnotationMarkup struct {
	PDFAnnotation
}

A PDFAnnotationMarkup object appears as highlighting, underlining, or a strikethrough style applied to the text of a document.

Apple documentation: https://developer.apple.com/documentation/pdfkit/pdfannotationmarkup

func PDFAnnotationMarkupFromID

func PDFAnnotationMarkupFromID(id objc.ID) *PDFAnnotationMarkup

type PDFAnnotationPopup

type PDFAnnotationPopup struct {
	PDFAnnotation
}

A PDFAnnotationPopup object provides user interactivity on a PDF page in the form of a pop-up menu.

Apple documentation: https://developer.apple.com/documentation/pdfkit/pdfannotationpopup

func PDFAnnotationPopupFromID

func PDFAnnotationPopupFromID(id objc.ID) *PDFAnnotationPopup

func (*PDFAnnotationPopup) SetIsOpen

func (o *PDFAnnotationPopup) SetIsOpen(isOpen bool)

Sets the open state of the pop-up menu.

type PDFAnnotationSquare

type PDFAnnotationSquare struct {
	PDFAnnotation
}

A rectangle annotation on a page.

Apple documentation: https://developer.apple.com/documentation/pdfkit/pdfannotationsquare

func PDFAnnotationSquareFromID

func PDFAnnotationSquareFromID(id objc.ID) *PDFAnnotationSquare

type PDFAnnotationStamp

type PDFAnnotationStamp struct {
	PDFAnnotation
}

A PDFAnnotationStamp object allows you to display a word or phrase, such as “Confidential,” in a PDF page.

Apple documentation: https://developer.apple.com/documentation/pdfkit/pdfannotationstamp

func PDFAnnotationStampFromID

func PDFAnnotationStampFromID(id objc.ID) *PDFAnnotationStamp

func (*PDFAnnotationStamp) Name

Returns name associated with the stamp annotation.

func (*PDFAnnotationStamp) SetName

func (o *PDFAnnotationStamp) SetName(name *foundation.NSString)

Sets the name associated with the stamp annotation.

type PDFAnnotationText

type PDFAnnotationText struct {
	PDFAnnotation
}

A PDFAnnotationText object displays as an icon (such as a “sticky note”) attached to a specified point in the PDF document.

Apple documentation: https://developer.apple.com/documentation/pdfkit/pdfannotationtext

func PDFAnnotationTextFromID

func PDFAnnotationTextFromID(id objc.ID) *PDFAnnotationText

type PDFAnnotationTextWidget

type PDFAnnotationTextWidget struct {
	PDFAnnotation
}

A PDFAnnotationTextWidget object allows you to manage the appearance and content of text fields.

Apple documentation: https://developer.apple.com/documentation/pdfkit/pdfannotationtextwidget

func PDFAnnotationTextWidgetFromID

func PDFAnnotationTextWidgetFromID(id objc.ID) *PDFAnnotationTextWidget

func (*PDFAnnotationTextWidget) AttributedStringValue

func (o *PDFAnnotationTextWidget) AttributedStringValue() *foundation.NSAttributedString

func (*PDFAnnotationTextWidget) Rotation

func (o *PDFAnnotationTextWidget) Rotation() int

Returns the rotation angle of the annotation text field in degrees.

func (*PDFAnnotationTextWidget) SetAttributedStringValue

func (o *PDFAnnotationTextWidget) SetAttributedStringValue(value *foundation.NSAttributedString)

func (*PDFAnnotationTextWidget) SetIsMultiline

func (o *PDFAnnotationTextWidget) SetIsMultiline(multiline bool)

func (*PDFAnnotationTextWidget) SetRotation

func (o *PDFAnnotationTextWidget) SetRotation(rotation int)

Sets the rotation angle of the annotation text field in degrees.

func (*PDFAnnotationTextWidget) SetStringValue

func (o *PDFAnnotationTextWidget) SetStringValue(value *foundation.NSString)

Sets the string for the annotation.

func (*PDFAnnotationTextWidget) StringValue

func (o *PDFAnnotationTextWidget) StringValue() *foundation.NSString

Returns the string assigned to the annotation.

type PDFAppearanceCharacteristics

type PDFAppearanceCharacteristics struct {
	foundation.NSObject
}

An object that represents appearance characteristics of a widget annotation.

Apple documentation: https://developer.apple.com/documentation/pdfkit/pdfappearancecharacteristics

func PDFAppearanceCharacteristicsFromID

func PDFAppearanceCharacteristicsFromID(id objc.ID) *PDFAppearanceCharacteristics

func (*PDFAppearanceCharacteristics) AppearanceCharacteristicsKeyValues

func (o *PDFAppearanceCharacteristics) AppearanceCharacteristicsKeyValues() *foundation.NSDictionary[objc.ID, objc.ID]

func (*PDFAppearanceCharacteristics) BackgroundColor

func (o *PDFAppearanceCharacteristics) BackgroundColor() *appkit.NSColor

func (*PDFAppearanceCharacteristics) BorderColor

func (o *PDFAppearanceCharacteristics) BorderColor() *appkit.NSColor

func (*PDFAppearanceCharacteristics) Caption

func (*PDFAppearanceCharacteristics) ControlType

func (*PDFAppearanceCharacteristics) DownCaption

func (*PDFAppearanceCharacteristics) RolloverCaption

func (o *PDFAppearanceCharacteristics) RolloverCaption() *foundation.NSString

func (*PDFAppearanceCharacteristics) Rotation

func (o *PDFAppearanceCharacteristics) Rotation() int

func (*PDFAppearanceCharacteristics) SetBackgroundColor

func (o *PDFAppearanceCharacteristics) SetBackgroundColor(backgroundColor *appkit.NSColor)

func (*PDFAppearanceCharacteristics) SetBorderColor

func (o *PDFAppearanceCharacteristics) SetBorderColor(borderColor *appkit.NSColor)

func (*PDFAppearanceCharacteristics) SetCaption

func (o *PDFAppearanceCharacteristics) SetCaption(caption *foundation.NSString)

func (*PDFAppearanceCharacteristics) SetControlType

func (o *PDFAppearanceCharacteristics) SetControlType(controlType PDFWidgetControlType)

func (*PDFAppearanceCharacteristics) SetDownCaption

func (o *PDFAppearanceCharacteristics) SetDownCaption(downCaption *foundation.NSString)

func (*PDFAppearanceCharacteristics) SetRolloverCaption

func (o *PDFAppearanceCharacteristics) SetRolloverCaption(rolloverCaption *foundation.NSString)

func (*PDFAppearanceCharacteristics) SetRotation

func (o *PDFAppearanceCharacteristics) SetRotation(rotation int)

type PDFAreaOfInterest

type PDFAreaOfInterest uint64

The mouse position over PDF view areas.

const (
	// The mouse is over an undefined area.
	KPDFNoArea PDFAreaOfInterest = 0
	// The mouse is over a page.
	KPDFPageArea PDFAreaOfInterest = 1
	// The mouse is over text.
	KPDFTextArea PDFAreaOfInterest = 2
	// The mouse is over an annotation.
	KPDFAnnotationArea PDFAreaOfInterest = 4
	// The mouse is over a link.
	KPDFLinkArea PDFAreaOfInterest = 8
	// The mouse is over a control.
	KPDFControlArea PDFAreaOfInterest = 16
	// The mouse is over a text field.
	KPDFTextFieldArea PDFAreaOfInterest = 32
	// The mouse is over an icon.
	KPDFIconArea PDFAreaOfInterest = 64
	// The mouse is over a popup menu.
	KPDFPopupArea PDFAreaOfInterest = 128
	// The mouse is over an image.
	KPDFImageArea PDFAreaOfInterest = 256
	KPDFAnyArea   PDFAreaOfInterest = 9223372036854775807
)

func (PDFAreaOfInterest) String

func (e PDFAreaOfInterest) String() string

type PDFBorder

type PDFBorder struct {
	foundation.NSObject
}

An optional border for an annotation that lies completely within the annotation rectangle.

Apple documentation: https://developer.apple.com/documentation/pdfkit/pdfborder

func PDFBorderFromID

func PDFBorderFromID(id objc.ID) *PDFBorder

func (*PDFBorder) BorderKeyValues

func (o *PDFBorder) BorderKeyValues() *foundation.NSDictionary[objc.ID, objc.ID]

func (*PDFBorder) DashPattern

func (o *PDFBorder) DashPattern() *foundation.NSArray[objc.ID]

func (*PDFBorder) DrawInRect

func (o *PDFBorder) DrawInRect(rect corefoundation.CGRect)

Draws the border.

func (*PDFBorder) LineWidth

func (o *PDFBorder) LineWidth() float64

func (*PDFBorder) SetDashPattern

func (o *PDFBorder) SetDashPattern(dashPattern *foundation.NSArray[objc.ID])

func (*PDFBorder) SetLineWidth

func (o *PDFBorder) SetLineWidth(lineWidth float64)

func (*PDFBorder) SetStyle

func (o *PDFBorder) SetStyle(style PDFBorderStyle)

func (*PDFBorder) Style

func (o *PDFBorder) Style() PDFBorderStyle

type PDFBorderStyle

type PDFBorderStyle int64

PDF Kit annotation borders may have the following styles.

const (
	// Solid border.
	KPDFBorderStyleSolid PDFBorderStyle = 0
	// Dashed border.
	KPDFBorderStyleDashed PDFBorderStyle = 1
	// Beveled border.
	KPDFBorderStyleBeveled PDFBorderStyle = 2
	// Inset border.
	KPDFBorderStyleInset PDFBorderStyle = 3
	// Underline border.
	KPDFBorderStyleUnderline PDFBorderStyle = 4
)

func (PDFBorderStyle) String

func (e PDFBorderStyle) String() string

type PDFDestination

type PDFDestination struct {
	foundation.NSObject
}

A PDFDestination object describes a point on a PDF page.

Apple documentation: https://developer.apple.com/documentation/pdfkit/pdfdestination

func PDFDestinationFromID

func PDFDestinationFromID(id objc.ID) *PDFDestination

func (*PDFDestination) Compare

Returns a comparison result that indicates the location of the destination in the document, relative to the current position.

func (*PDFDestination) InitWithPageAtPoint

func (o *PDFDestination) InitWithPageAtPoint(page *PDFPage, point corefoundation.CGPoint) *PDFDestination

Initializes the destination.

func (*PDFDestination) Page

func (o *PDFDestination) Page() *PDFPage

func (*PDFDestination) Point

func (*PDFDestination) SetZoom

func (o *PDFDestination) SetZoom(zoom float64)

func (*PDFDestination) Zoom

func (o *PDFDestination) Zoom() float64

type PDFDisplayBox

type PDFDisplayBox int64

The following box types may be used with PDFPage drawing and bounds-setting methods. See the Adobe PDF Specification for more information on box types, units, and coordinate systems.

const (
	// A rectangle defining the boundaries of the physical medium for display or printing, expressed in default user-space units.
	KPDFDisplayBoxMediaBox PDFDisplayBox = 0
	// A rectangle defining the boundaries of the visible region , expressed in default user-space units. Default value equal to kPDFDisplayBoxMediaBox.
	KPDFDisplayBoxCropBox PDFDisplayBox = 1
	// A rectangle defining the boundaries of the clip region for the page contents in a production environment. Default value equal to kPDFDisplayBoxCropBox.
	KPDFDisplayBoxBleedBox PDFDisplayBox = 2
	// A rectangle defining the intended boundaries of the finished page. Default value equal to kPDFDisplayBoxCropBox.
	KPDFDisplayBoxTrimBox PDFDisplayBox = 3
	// A rectangle defining the boundaries of the page’s meaningful content including surrounding white space intended for display. Default value equal to kPDFDisplayBoxCropBox.
	KPDFDisplayBoxArtBox PDFDisplayBox = 4
)

func (PDFDisplayBox) String

func (e PDFDisplayBox) String() string

type PDFDisplayDirection

type PDFDisplayDirection int64
const (
	KPDFDisplayDirectionVertical   PDFDisplayDirection = 0
	KPDFDisplayDirectionHorizontal PDFDisplayDirection = 1
)

func (PDFDisplayDirection) String

func (e PDFDisplayDirection) String() string

type PDFDisplayMode

type PDFDisplayMode int64

A wrapper for the chosen display mode constant.

const (
	// A display mode where the document displays one page at a time horizontally and vertically.
	KPDFDisplaySinglePage PDFDisplayMode = 0
	// A display mode where the document displays in continuous mode vertically, with single-page width horizontally.
	KPDFDisplaySinglePageContinuous PDFDisplayMode = 1
	// A display mode where the document displays two pages side-by-side.
	KPDFDisplayTwoUp PDFDisplayMode = 2
	// A display mode where the document displays in continuous mode vertically and displays two pages side-by-side horizontally.
	KPDFDisplayTwoUpContinuous PDFDisplayMode = 3
)

func (PDFDisplayMode) String

func (e PDFDisplayMode) String() string

type PDFDocument

type PDFDocument struct {
	foundation.NSObject
}

An object that represents PDF data or a PDF file and defines methods for writing, searching, and selecting PDF data.

Apple documentation: https://developer.apple.com/documentation/pdfkit/pdfdocument

func PDFDocumentFromID

func PDFDocumentFromID(id objc.ID) *PDFDocument

func (*PDFDocument) AccessPermissions

func (o *PDFDocument) AccessPermissions() PDFAccessPermissions

func (*PDFDocument) AllowsCommenting

func (o *PDFDocument) AllowsCommenting() bool

func (*PDFDocument) AllowsContentAccessibility

func (o *PDFDocument) AllowsContentAccessibility() bool

func (*PDFDocument) AllowsCopying

func (o *PDFDocument) AllowsCopying() bool

func (*PDFDocument) AllowsDocumentAssembly

func (o *PDFDocument) AllowsDocumentAssembly() bool

func (*PDFDocument) AllowsDocumentChanges

func (o *PDFDocument) AllowsDocumentChanges() bool

func (*PDFDocument) AllowsFormFieldEntry

func (o *PDFDocument) AllowsFormFieldEntry() bool

func (*PDFDocument) AllowsPrinting

func (o *PDFDocument) AllowsPrinting() bool

func (*PDFDocument) BeginFindStringWithOptions

func (o *PDFDocument) BeginFindStringWithOptions(string_ *foundation.NSString, options foundation.NSStringCompareOptions)

Asynchronously finds all instances of the specified string in the document.

func (*PDFDocument) BeginFindStringsWithOptions

func (o *PDFDocument) BeginFindStringsWithOptions(strings_ *foundation.NSArray[*foundation.NSString], options foundation.NSStringCompareOptions)

func (*PDFDocument) CancelFindString

func (o *PDFDocument) CancelFindString()

func (*PDFDocument) DataRepresentation

func (o *PDFDocument) DataRepresentation() *foundation.NSData

func (*PDFDocument) DataRepresentationWithOptions

func (o *PDFDocument) DataRepresentationWithOptions(options *foundation.NSDictionary[objc.ID, objc.ID]) *foundation.NSData

func (*PDFDocument) Delegate

func (o *PDFDocument) Delegate() PDFDocumentDelegate

func (*PDFDocument) DocumentAttributes

func (o *PDFDocument) DocumentAttributes() *foundation.NSDictionary[objc.ID, objc.ID]

func (*PDFDocument) DocumentRef

func (o *PDFDocument) DocumentRef() unsafe.Pointer

func (*PDFDocument) DocumentURL

func (o *PDFDocument) DocumentURL() *foundation.NSURL

func (*PDFDocument) ExchangePageAtIndexWithPageAtIndex

func (o *PDFDocument) ExchangePageAtIndexWithPageAtIndex(indexA uint, indexB uint)

func (*PDFDocument) FindStringFromSelectionWithOptions

func (o *PDFDocument) FindStringFromSelectionWithOptions(string_ *foundation.NSString, selection *PDFSelection, options foundation.NSStringCompareOptions) *PDFSelection

func (*PDFDocument) FindStringWithOptions

func (o *PDFDocument) FindStringWithOptions(string_ *foundation.NSString, options foundation.NSStringCompareOptions) *foundation.NSArray[*PDFSelection]

Synchronously finds all instances of the specified string in the document.

func (*PDFDocument) IndexForPage

func (o *PDFDocument) IndexForPage(page *PDFPage) uint

func (*PDFDocument) Init

func (o *PDFDocument) Init() *PDFDocument

Initializes a PDFDocument object.

func (*PDFDocument) InitWithData

func (o *PDFDocument) InitWithData(data *foundation.NSData) *PDFDocument

Initializes a PDFDocument object with the passed-in data.

func (*PDFDocument) InitWithURL

func (o *PDFDocument) InitWithURL(url *foundation.NSURL) *PDFDocument

Initializes a PDFDocument object with the contents at the specified URL (if the URL is invalid, this method returns NULL).

func (*PDFDocument) InsertPageAtIndex

func (o *PDFDocument) InsertPageAtIndex(page *PDFPage, index uint)

func (*PDFDocument) IsEncrypted

func (o *PDFDocument) IsEncrypted() bool

func (*PDFDocument) IsFinding

func (o *PDFDocument) IsFinding() bool

func (*PDFDocument) IsLocked

func (o *PDFDocument) IsLocked() bool

func (*PDFDocument) MajorVersion

func (o *PDFDocument) MajorVersion() int

func (*PDFDocument) MinorVersion

func (o *PDFDocument) MinorVersion() int

func (*PDFDocument) OutlineItemForSelection

func (o *PDFDocument) OutlineItemForSelection(selection *PDFSelection) *PDFOutline

func (*PDFDocument) OutlineRoot

func (o *PDFDocument) OutlineRoot() unsafe.Pointer

func (*PDFDocument) PageAtIndex

func (o *PDFDocument) PageAtIndex(index uint) *PDFPage

func (*PDFDocument) PageClass

func (o *PDFDocument) PageClass() objc.Class

func (*PDFDocument) PageCount

func (o *PDFDocument) PageCount() uint

func (*PDFDocument) PermissionsStatus

func (o *PDFDocument) PermissionsStatus() PDFDocumentPermissions

func (*PDFDocument) PrintOperationForPrintInfoScalingModeAutoRotate

func (o *PDFDocument) PrintOperationForPrintInfoScalingModeAutoRotate(printInfo *appkit.NSPrintInfo, scaleMode PDFPrintScalingMode, doRotate bool) *appkit.NSPrintOperation

func (*PDFDocument) RemovePageAtIndex

func (o *PDFDocument) RemovePageAtIndex(index uint)

func (*PDFDocument) SelectionForEntireDocument

func (o *PDFDocument) SelectionForEntireDocument() *PDFSelection

func (*PDFDocument) SelectionFromPageAtCharacterIndexToPageAtCharacterIndex

func (o *PDFDocument) SelectionFromPageAtCharacterIndexToPageAtCharacterIndex(startPage *PDFPage, startCharacter uint, endPage *PDFPage, endCharacter uint) *PDFSelection

func (*PDFDocument) SelectionFromPageAtPointToPageAtPoint

func (o *PDFDocument) SelectionFromPageAtPointToPageAtPoint(startPage *PDFPage, startPoint corefoundation.CGPoint, endPage *PDFPage, endPoint corefoundation.CGPoint) *PDFSelection

func (*PDFDocument) SelectionFromPageAtPointToPageAtPointWithGranularity

func (o *PDFDocument) SelectionFromPageAtPointToPageAtPointWithGranularity(startPage *PDFPage, startPoint corefoundation.CGPoint, endPage *PDFPage, endPoint corefoundation.CGPoint, granularity PDFSelectionGranularity) *PDFSelection

func (*PDFDocument) SetDelegate

func (o *PDFDocument) SetDelegate(delegate PDFDocumentDelegate)

func (*PDFDocument) SetDocumentAttributes

func (o *PDFDocument) SetDocumentAttributes(documentAttributes *foundation.NSDictionary[objc.ID, objc.ID])

func (*PDFDocument) SetOutlineRoot

func (o *PDFDocument) SetOutlineRoot(outlineRoot unsafe.Pointer)

func (*PDFDocument) String

func (o *PDFDocument) String() *foundation.NSString

func (*PDFDocument) UnlockWithPassword

func (o *PDFDocument) UnlockWithPassword(password *foundation.NSString) bool

Attempts to unlock an encrypted document.

func (*PDFDocument) WriteToFile

func (o *PDFDocument) WriteToFile(path *foundation.NSString) bool

func (*PDFDocument) WriteToFileWithOptions

func (o *PDFDocument) WriteToFileWithOptions(path *foundation.NSString, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) bool

func (*PDFDocument) WriteToURL

func (o *PDFDocument) WriteToURL(url *foundation.NSURL) bool

func (*PDFDocument) WriteToURLWithOptions

func (o *PDFDocument) WriteToURLWithOptions(url *foundation.NSURL, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) bool

type PDFDocumentDelegate

type PDFDocumentDelegate interface {
}

PDFDocumentDelegate wraps the ObjC protocol PDFDocumentDelegate.

type PDFDocumentPermissions

type PDFDocumentPermissions int64

An enumeration that specifies document permissions status.

const (
	// The status that indicates no document permissions.
	KPDFDocumentPermissionsNone PDFDocumentPermissions = 0
	// The status that indicates user document permissions.
	KPDFDocumentPermissionsUser PDFDocumentPermissions = 1
	// The status that indicates owner document permissions.
	KPDFDocumentPermissionsOwner PDFDocumentPermissions = 2
)

func (PDFDocumentPermissions) String

func (e PDFDocumentPermissions) String() string

type PDFInterpolationQuality

type PDFInterpolationQuality int64

A wrapper for the specified interpolation quality.

const (
	// The case where no interpolation quality is specified.
	KPDFInterpolationQualityNone PDFInterpolationQuality = 0
	// The case specifying low interpolation quality.
	KPDFInterpolationQualityLow PDFInterpolationQuality = 1
	// The case specifying high interpolation quality.
	KPDFInterpolationQualityHigh PDFInterpolationQuality = 2
)

func (PDFInterpolationQuality) String

func (e PDFInterpolationQuality) String() string

type PDFLineStyle

type PDFLineStyle int64

The following constants specify the available line ending styles.

const (
	// No line ending.
	KPDFLineStyleNone PDFLineStyle = 0
	// A square line ending filled with the annotation’s interior color, if any.
	KPDFLineStyleSquare PDFLineStyle = 1
	// A circular line ending filled with the annotation’s interior color, if any.
	KPDFLineStyleCircle PDFLineStyle = 2
	// A diamond-shaped line ending filled with the annotation’s interior color, if any.
	KPDFLineStyleDiamond PDFLineStyle = 3
	// An open arrowhead line ending, composed from two short lines meeting in an acute angle at the line end.
	KPDFLineStyleOpenArrow PDFLineStyle = 4
	// A closed arrowhead line ending, consisting of a triangle with the acute vertex at the line end and filled with the annotation’s interior color, if any.
	KPDFLineStyleClosedArrow PDFLineStyle = 5
)

func PDFAnnotationLineStyleFromName

func PDFAnnotationLineStyleFromName(name *foundation.NSString) PDFLineStyle

Returns a line style that corresponds to the specified name.

func (PDFLineStyle) String

func (e PDFLineStyle) String() string

type PDFMarkupType

type PDFMarkupType int64

The styles available for markup annotations in PDFKit.

const (
	// Highlight style for the markup.
	KPDFMarkupTypeHighlight PDFMarkupType = 0
	// Strikethrough style for the markup.
	KPDFMarkupTypeStrikeOut PDFMarkupType = 1
	// Underline style for the markup.
	KPDFMarkupTypeUnderline PDFMarkupType = 2
	// The redaction style for markup.
	KPDFMarkupTypeRedact PDFMarkupType = 3
)

func (PDFMarkupType) String

func (e PDFMarkupType) String() string

type PDFOutline

type PDFOutline struct {
	foundation.NSObject
}

A PDFOutline object is an element in a tree-structured hierarchy that can represent the structure of a PDF document.

Apple documentation: https://developer.apple.com/documentation/pdfkit/pdfoutline

func PDFOutlineFromID

func PDFOutlineFromID(id objc.ID) *PDFOutline

func (*PDFOutline) Action

func (o *PDFOutline) Action() unsafe.Pointer

func (*PDFOutline) ChildAtIndex

func (o *PDFOutline) ChildAtIndex(index uint) *PDFOutline

Returns the child outline object at the specified index.

func (*PDFOutline) Destination

func (o *PDFOutline) Destination() *PDFDestination

func (*PDFOutline) Document

func (o *PDFOutline) Document() *PDFDocument

func (*PDFOutline) Index

func (o *PDFOutline) Index() uint

func (*PDFOutline) Init

func (o *PDFOutline) Init() *PDFOutline

Initializes a PDFOutline object.

func (*PDFOutline) InsertChildAtIndex

func (o *PDFOutline) InsertChildAtIndex(child *PDFOutline, index uint)

Inserts the specified outline object at the specified index.

func (*PDFOutline) IsOpen

func (o *PDFOutline) IsOpen() bool

func (*PDFOutline) Label

func (o *PDFOutline) Label() *foundation.NSString

func (*PDFOutline) NumberOfChildren

func (o *PDFOutline) NumberOfChildren() uint

func (*PDFOutline) Parent

func (o *PDFOutline) Parent() unsafe.Pointer

func (*PDFOutline) RemoveFromParent

func (o *PDFOutline) RemoveFromParent()

Removes the outline object from its parent (does nothing if outline object is the root outline object).

func (*PDFOutline) SetAction

func (o *PDFOutline) SetAction(action unsafe.Pointer)

func (*PDFOutline) SetDestination

func (o *PDFOutline) SetDestination(destination *PDFDestination)

func (*PDFOutline) SetIsOpen

func (o *PDFOutline) SetIsOpen(isOpen bool)

func (*PDFOutline) SetLabel

func (o *PDFOutline) SetLabel(label *foundation.NSString)

type PDFPage

type PDFPage struct {
	foundation.NSObject
}

PDFPage, a subclass of NSObject, defines methods used to render PDF pages and work with annotations, text, and selections.

Apple documentation: https://developer.apple.com/documentation/pdfkit/pdfpage

func PDFPageFromID

func PDFPageFromID(id objc.ID) *PDFPage

func (*PDFPage) AddAnnotation

func (o *PDFPage) AddAnnotation(annotation *PDFAnnotation)

Adds the specified annotation object to the page.

func (*PDFPage) AnnotationAtPoint

func (o *PDFPage) AnnotationAtPoint(point corefoundation.CGPoint) *PDFAnnotation

Returns the annotation, if there is one, at the specified point.

func (*PDFPage) Annotations

func (o *PDFPage) Annotations() *foundation.NSArray[*PDFAnnotation]

func (*PDFPage) AttributedString

func (o *PDFPage) AttributedString() *foundation.NSAttributedString

func (*PDFPage) BoundsForBox

func (o *PDFPage) BoundsForBox(box PDFDisplayBox) corefoundation.CGRect

Returns the bounds for the specified PDF display box.

func (*PDFPage) CharacterBoundsAtIndex

func (o *PDFPage) CharacterBoundsAtIndex(index int) corefoundation.CGRect

Returns the bounds, in page space, of the character at the specified index.

func (*PDFPage) CharacterIndexAtPoint

func (o *PDFPage) CharacterIndexAtPoint(point corefoundation.CGPoint) int

Returns the character index value for the specified point in page space.

func (*PDFPage) DataRepresentation

func (o *PDFPage) DataRepresentation() *foundation.NSData

func (*PDFPage) DisplaysAnnotations

func (o *PDFPage) DisplaysAnnotations() bool

func (*PDFPage) Document

func (o *PDFPage) Document() *PDFDocument

func (*PDFPage) DrawWithBox

func (o *PDFPage) DrawWithBox(box PDFDisplayBox)

Draws the page within the specified box.

func (*PDFPage) DrawWithBoxToContext

func (o *PDFPage) DrawWithBoxToContext(box PDFDisplayBox, context_ unsafe.Pointer)

func (*PDFPage) Init

func (o *PDFPage) Init() *PDFPage

func (*PDFPage) InitWithImage

func (o *PDFPage) InitWithImage(image *appkit.NSImage) *PDFPage

Creates a new PDFPage object and initializes it with the specified NSImage object.

func (*PDFPage) InitWithImageOptions

func (o *PDFPage) InitWithImageOptions(image *appkit.NSImage, options *foundation.NSDictionary[*foundation.NSString, objc.ID]) *PDFPage

func (*PDFPage) Label

func (o *PDFPage) Label() *foundation.NSString

func (*PDFPage) NumberOfCharacters

func (o *PDFPage) NumberOfCharacters() uint

func (*PDFPage) PageRef

func (o *PDFPage) PageRef() unsafe.Pointer

func (*PDFPage) RemoveAnnotation

func (o *PDFPage) RemoveAnnotation(annotation *PDFAnnotation)

Removes the specified annotation from the page.

func (*PDFPage) Rotation

func (o *PDFPage) Rotation() int

func (*PDFPage) SelectionForLineAtPoint

func (o *PDFPage) SelectionForLineAtPoint(point corefoundation.CGPoint) *PDFSelection

Returns the whole line of text that includes the specified point.

func (*PDFPage) SelectionForRange

func (o *PDFPage) SelectionForRange(range_ foundation.NSRange) *PDFSelection

Returns the text contained within the specified range.

func (*PDFPage) SelectionForRect

func (o *PDFPage) SelectionForRect(rect corefoundation.CGRect) *PDFSelection

Returns the text enclosed within the specified rectangle, expressed in page (user) coordinates.

func (*PDFPage) SelectionForWordAtPoint

func (o *PDFPage) SelectionForWordAtPoint(point corefoundation.CGPoint) *PDFSelection

Returns the whole word that includes the specified point.

func (*PDFPage) SelectionFromPointToPoint

func (o *PDFPage) SelectionFromPointToPoint(startPoint corefoundation.CGPoint, endPoint corefoundation.CGPoint) *PDFSelection

Returns the text between the two specified points in page space.

func (*PDFPage) SetBoundsForBox

func (o *PDFPage) SetBoundsForBox(bounds corefoundation.CGRect, box PDFDisplayBox)

Sets the bounds for the specified box.

func (*PDFPage) SetDisplaysAnnotations

func (o *PDFPage) SetDisplaysAnnotations(displaysAnnotations bool)

func (*PDFPage) SetRotation

func (o *PDFPage) SetRotation(rotation int)

func (*PDFPage) String

func (o *PDFPage) String() *foundation.NSString

func (*PDFPage) ThumbnailOfSizeForBox

func (o *PDFPage) ThumbnailOfSizeForBox(size corefoundation.CGSize, box PDFDisplayBox) *appkit.NSImage

func (*PDFPage) TransformContextForBox

func (o *PDFPage) TransformContextForBox(context_ unsafe.Pointer, box PDFDisplayBox)

func (*PDFPage) TransformContextForBox2

func (o *PDFPage) TransformContextForBox2(box PDFDisplayBox)

Transforms the current context, given the specified box.

func (*PDFPage) TransformForBox

func (o *PDFPage) TransformForBox(box PDFDisplayBox) corefoundation.CGAffineTransform

type PDFPageOverlayViewProvider

type PDFPageOverlayViewProvider interface {
	PdfViewOverlayViewForPage(view *PDFView, page *PDFPage) *appkit.NSView
}

PDFPageOverlayViewProvider wraps the ObjC protocol PDFPageOverlayViewProvider.

type PDFPrintScalingMode

type PDFPrintScalingMode int64

The type of scaling to be used when printing a page (see PDFDocument).

const (
	// Do not apply scaling to the page when printing.
	KPDFPrintPageScaleNone PDFPrintScalingMode = 0
	// Scale each page up or down to best fit the paper size.
	KPDFPrintPageScaleToFit PDFPrintScalingMode = 1
	// Scale large pages down to fit the paper size (smaller pages do not get scaled up).
	KPDFPrintPageScaleDownToFit PDFPrintScalingMode = 2
)

func (PDFPrintScalingMode) String

func (e PDFPrintScalingMode) String() string

type PDFSelection

type PDFSelection struct {
	foundation.NSObject
}

A PDFSelection object identifies a contiguous or noncontiguous selection of text in a PDF document.

Apple documentation: https://developer.apple.com/documentation/pdfkit/pdfselection

func PDFSelectionFromID

func PDFSelectionFromID(id objc.ID) *PDFSelection

func (*PDFSelection) AddSelection

func (o *PDFSelection) AddSelection(selection *PDFSelection)

Adds the specified selection to the receiving selection.

func (*PDFSelection) AddSelections

func (o *PDFSelection) AddSelections(selections *foundation.NSArray[*PDFSelection])

Adds the specified array of selections to the receiving selection.

func (*PDFSelection) AttributedString

func (o *PDFSelection) AttributedString() *foundation.NSAttributedString

func (*PDFSelection) BoundsForPage

func (o *PDFSelection) BoundsForPage(page *PDFPage) corefoundation.CGRect

Returns the bounds of the selection on the specified page.

func (*PDFSelection) Color

func (o *PDFSelection) Color() unsafe.Pointer

func (*PDFSelection) DrawForPageActive

func (o *PDFSelection) DrawForPageActive(page *PDFPage, active bool)

Calls drawForPage:withBox:active: with a default value for box parameter.

func (*PDFSelection) DrawForPageWithBoxActive

func (o *PDFSelection) DrawForPageWithBoxActive(page *PDFPage, box PDFDisplayBox, active bool)

Draws the selection relative to the origin of the specified box in page space.

func (*PDFSelection) ExtendSelectionAtEnd

func (o *PDFSelection) ExtendSelectionAtEnd(succeed int)

Extends the selection from its end toward the end of the document.

func (*PDFSelection) ExtendSelectionAtStart

func (o *PDFSelection) ExtendSelectionAtStart(precede int)

Extends the selection from its start toward the beginning of the document.

func (*PDFSelection) ExtendSelectionForLineBoundaries

func (o *PDFSelection) ExtendSelectionForLineBoundaries()

func (*PDFSelection) InitWithDocument

func (o *PDFSelection) InitWithDocument(document *PDFDocument) *PDFSelection

Returns an empty PDFSelection object.

func (*PDFSelection) NumberOfTextRangesOnPage

func (o *PDFSelection) NumberOfTextRangesOnPage(page *PDFPage) uint

func (*PDFSelection) Pages

func (o *PDFSelection) Pages() *foundation.NSArray[*PDFPage]

func (*PDFSelection) RangeAtIndexOnPage

func (o *PDFSelection) RangeAtIndexOnPage(index uint, page *PDFPage) foundation.NSRange

func (*PDFSelection) SelectionsByLine

func (o *PDFSelection) SelectionsByLine() *foundation.NSArray[*PDFSelection]

Returns an array of selections, one for each line of text covered by the receiver.

func (*PDFSelection) SetColor

func (o *PDFSelection) SetColor(color unsafe.Pointer)

func (*PDFSelection) String

func (o *PDFSelection) String() *foundation.NSString

type PDFSelectionGranularity

type PDFSelectionGranularity uint64
const (
	PDFSelectionGranularityCharacter PDFSelectionGranularity = 0
	PDFSelectionGranularityWord      PDFSelectionGranularity = 1
	PDFSelectionGranularityLine      PDFSelectionGranularity = 2
)

func (PDFSelectionGranularity) String

func (e PDFSelectionGranularity) String() string

type PDFTextAnnotationIconType

type PDFTextAnnotationIconType int64

The types of icons that a text annotation can use.

const (
	// Comment annotation icon.
	KPDFTextAnnotationIconComment PDFTextAnnotationIconType = 0
	// Key annotation icon.
	KPDFTextAnnotationIconKey PDFTextAnnotationIconType = 1
	// Note annotation icon.
	KPDFTextAnnotationIconNote PDFTextAnnotationIconType = 2
	// Help annotation icon.
	KPDFTextAnnotationIconHelp PDFTextAnnotationIconType = 3
	// New Paragraph annotation icon.
	KPDFTextAnnotationIconNewParagraph PDFTextAnnotationIconType = 4
	// Paragraph annotation icon.
	KPDFTextAnnotationIconParagraph PDFTextAnnotationIconType = 5
	// Insert annotation icon.
	KPDFTextAnnotationIconInsert PDFTextAnnotationIconType = 6
)

func (PDFTextAnnotationIconType) String

func (e PDFTextAnnotationIconType) String() string

type PDFThumbnailView

type PDFThumbnailView struct {
	appkit.NSView
}

An object that contains a set of thumbnails, each of which represents a page in a PDF document.

Apple documentation: https://developer.apple.com/documentation/pdfkit/pdfthumbnailview

func PDFThumbnailViewFromID

func PDFThumbnailViewFromID(id objc.ID) *PDFThumbnailView

func (*PDFThumbnailView) AllowsDragging

func (o *PDFThumbnailView) AllowsDragging() bool

func (*PDFThumbnailView) AllowsMultipleSelection

func (o *PDFThumbnailView) AllowsMultipleSelection() bool

func (*PDFThumbnailView) BackgroundColor

func (o *PDFThumbnailView) BackgroundColor() *appkit.NSColor

func (*PDFThumbnailView) LabelFont

func (o *PDFThumbnailView) LabelFont() *appkit.NSFont

func (*PDFThumbnailView) MaximumNumberOfColumns

func (o *PDFThumbnailView) MaximumNumberOfColumns() uint

func (*PDFThumbnailView) PDFView

func (o *PDFThumbnailView) PDFView() *PDFView

func (*PDFThumbnailView) SelectedPages

func (o *PDFThumbnailView) SelectedPages() *foundation.NSArray[*PDFPage]

func (*PDFThumbnailView) SetAllowsDragging

func (o *PDFThumbnailView) SetAllowsDragging(allowsDragging bool)

func (*PDFThumbnailView) SetAllowsMultipleSelection

func (o *PDFThumbnailView) SetAllowsMultipleSelection(allowsMultipleSelection bool)

func (*PDFThumbnailView) SetBackgroundColor

func (o *PDFThumbnailView) SetBackgroundColor(backgroundColor *appkit.NSColor)

func (*PDFThumbnailView) SetLabelFont

func (o *PDFThumbnailView) SetLabelFont(labelFont *appkit.NSFont)

func (*PDFThumbnailView) SetMaximumNumberOfColumns

func (o *PDFThumbnailView) SetMaximumNumberOfColumns(maximumNumberOfColumns uint)

func (*PDFThumbnailView) SetPDFView

func (o *PDFThumbnailView) SetPDFView(pDFView *PDFView)

func (*PDFThumbnailView) SetThumbnailSize

func (o *PDFThumbnailView) SetThumbnailSize(thumbnailSize corefoundation.CGSize)

func (*PDFThumbnailView) ThumbnailSize

func (o *PDFThumbnailView) ThumbnailSize() corefoundation.CGSize

type PDFView

type PDFView struct {
	appkit.NSView
}

An object that encapsulates the functionality of PDF Kit into a single widget that you can add to your application using Interface Builder.

Apple documentation: https://developer.apple.com/documentation/pdfkit/pdfview

func PDFViewFromID

func PDFViewFromID(id objc.ID) *PDFView

func (*PDFView) AcceptsDraggedFiles

func (o *PDFView) AcceptsDraggedFiles() bool

func (*PDFView) AllowsDragging

func (o *PDFView) AllowsDragging() bool

func (*PDFView) AnnotationsChangedOnPage

func (o *PDFView) AnnotationsChangedOnPage(page *PDFPage)

func (*PDFView) AreaOfInterestForMouse

func (o *PDFView) AreaOfInterestForMouse(event *appkit.NSEvent) PDFAreaOfInterest

func (*PDFView) AreaOfInterestForPoint

func (o *PDFView) AreaOfInterestForPoint(cursorLocation corefoundation.CGPoint) PDFAreaOfInterest

func (*PDFView) AutoScales

func (o *PDFView) AutoScales() bool

func (*PDFView) BackgroundColor

func (o *PDFView) BackgroundColor() *appkit.NSColor

func (*PDFView) CanGoBack

func (o *PDFView) CanGoBack() bool

func (*PDFView) CanGoForward

func (o *PDFView) CanGoForward() bool

func (*PDFView) CanGoToFirstPage

func (o *PDFView) CanGoToFirstPage() bool

func (*PDFView) CanGoToLastPage

func (o *PDFView) CanGoToLastPage() bool

func (*PDFView) CanGoToNextPage

func (o *PDFView) CanGoToNextPage() bool

func (*PDFView) CanGoToPreviousPage

func (o *PDFView) CanGoToPreviousPage() bool

func (*PDFView) CanZoomIn

func (o *PDFView) CanZoomIn() bool

func (*PDFView) CanZoomOut

func (o *PDFView) CanZoomOut() bool

func (*PDFView) ClearSelection

func (o *PDFView) ClearSelection()

func (*PDFView) ConvertPointFromPage

func (o *PDFView) ConvertPointFromPage(point corefoundation.CGPoint, page *PDFPage) corefoundation.CGPoint

func (*PDFView) ConvertPointToPage

func (o *PDFView) ConvertPointToPage(point corefoundation.CGPoint, page *PDFPage) corefoundation.CGPoint

func (*PDFView) ConvertRectFromPage

func (o *PDFView) ConvertRectFromPage(rect corefoundation.CGRect, page *PDFPage) corefoundation.CGRect

func (*PDFView) ConvertRectToPage

func (o *PDFView) ConvertRectToPage(rect corefoundation.CGRect, page *PDFPage) corefoundation.CGRect

func (*PDFView) Copy

func (o *PDFView) Copy(sender objc.ID)

func (*PDFView) CurrentDestination

func (o *PDFView) CurrentDestination() *PDFDestination

func (*PDFView) CurrentPage

func (o *PDFView) CurrentPage() *PDFPage

func (*PDFView) CurrentSelection

func (o *PDFView) CurrentSelection() *PDFSelection

func (*PDFView) Delegate

func (o *PDFView) Delegate() PDFViewDelegate

func (*PDFView) DisplayBox

func (o *PDFView) DisplayBox() PDFDisplayBox

func (*PDFView) DisplayDirection

func (o *PDFView) DisplayDirection() PDFDisplayDirection

func (*PDFView) DisplayMode

func (o *PDFView) DisplayMode() PDFDisplayMode

func (*PDFView) DisplaysAsBook

func (o *PDFView) DisplaysAsBook() bool

func (*PDFView) DisplaysPageBreaks

func (o *PDFView) DisplaysPageBreaks() bool

func (*PDFView) DisplaysRTL

func (o *PDFView) DisplaysRTL() bool

func (*PDFView) Document

func (o *PDFView) Document() *PDFDocument

func (*PDFView) DocumentView

func (o *PDFView) DocumentView() *appkit.NSView

func (*PDFView) DrawPage

func (o *PDFView) DrawPage(page *PDFPage)

func (*PDFView) DrawPagePost

func (o *PDFView) DrawPagePost(page *PDFPage)

func (*PDFView) DrawPagePostToContext

func (o *PDFView) DrawPagePostToContext(page *PDFPage, context_ unsafe.Pointer)

func (*PDFView) DrawPageToContext

func (o *PDFView) DrawPageToContext(page *PDFPage, context_ unsafe.Pointer)

func (*PDFView) EnableDataDetectors

func (o *PDFView) EnableDataDetectors() bool

func (*PDFView) EnablePageShadows

func (o *PDFView) EnablePageShadows(pageShadowsEnabled bool)

func (*PDFView) GoBack

func (o *PDFView) GoBack(sender objc.ID)

func (*PDFView) GoForward

func (o *PDFView) GoForward(sender objc.ID)

func (*PDFView) GoToDestination

func (o *PDFView) GoToDestination(destination *PDFDestination)

func (*PDFView) GoToFirstPage

func (o *PDFView) GoToFirstPage(sender objc.ID)

func (*PDFView) GoToLastPage

func (o *PDFView) GoToLastPage(sender objc.ID)

func (*PDFView) GoToNextPage

func (o *PDFView) GoToNextPage(sender objc.ID)

func (*PDFView) GoToPage

func (o *PDFView) GoToPage(page *PDFPage)

func (*PDFView) GoToPreviousPage

func (o *PDFView) GoToPreviousPage(sender objc.ID)

func (*PDFView) GoToRectOnPage

func (o *PDFView) GoToRectOnPage(rect corefoundation.CGRect, page *PDFPage)

func (*PDFView) GoToSelection

func (o *PDFView) GoToSelection(selection *PDFSelection)

func (*PDFView) GreekingThreshold

func (o *PDFView) GreekingThreshold() float64

func (*PDFView) HighlightedSelections

func (o *PDFView) HighlightedSelections() unsafe.Pointer

func (*PDFView) InterpolationQuality

func (o *PDFView) InterpolationQuality() PDFInterpolationQuality

func (*PDFView) IsInMarkupMode

func (o *PDFView) IsInMarkupMode() bool

func (*PDFView) LayoutDocumentView

func (o *PDFView) LayoutDocumentView()

func (*PDFView) MaxScaleFactor

func (o *PDFView) MaxScaleFactor() float64

func (*PDFView) MinScaleFactor

func (o *PDFView) MinScaleFactor() float64

func (*PDFView) PageBreakMargins

func (o *PDFView) PageBreakMargins() foundation.NSEdgeInsets

func (*PDFView) PageForPointNearest

func (o *PDFView) PageForPointNearest(point corefoundation.CGPoint, nearest bool) *PDFPage

func (*PDFView) PageOverlayViewProvider

func (o *PDFView) PageOverlayViewProvider() unsafe.Pointer

func (*PDFView) PageShadowsEnabled

func (o *PDFView) PageShadowsEnabled() bool

func (*PDFView) PerformAction

func (o *PDFView) PerformAction(action *PDFAction)

func (*PDFView) PrintWithInfoAutoRotate

func (o *PDFView) PrintWithInfoAutoRotate(printInfo *appkit.NSPrintInfo, doRotate bool)

func (*PDFView) PrintWithInfoAutoRotatePageScaling

func (o *PDFView) PrintWithInfoAutoRotatePageScaling(printInfo *appkit.NSPrintInfo, doRotate bool, scale PDFPrintScalingMode)

func (*PDFView) RowSizeForPage

func (o *PDFView) RowSizeForPage(page *PDFPage) corefoundation.CGSize

func (*PDFView) ScaleFactor

func (o *PDFView) ScaleFactor() float64

func (*PDFView) ScaleFactorForSizeToFit

func (o *PDFView) ScaleFactorForSizeToFit() float64

func (*PDFView) ScrollSelectionToVisible

func (o *PDFView) ScrollSelectionToVisible(sender objc.ID)

func (*PDFView) SelectAll

func (o *PDFView) SelectAll(sender objc.ID)

func (*PDFView) SetAcceptsDraggedFiles

func (o *PDFView) SetAcceptsDraggedFiles(acceptsDraggedFiles bool)

func (*PDFView) SetAllowsDragging

func (o *PDFView) SetAllowsDragging(allowsDragging bool)

func (*PDFView) SetAutoScales

func (o *PDFView) SetAutoScales(autoScales bool)

func (*PDFView) SetBackgroundColor

func (o *PDFView) SetBackgroundColor(backgroundColor *appkit.NSColor)

func (*PDFView) SetCurrentSelection

func (o *PDFView) SetCurrentSelection(currentSelection *PDFSelection)

func (*PDFView) SetCurrentSelectionAnimate

func (o *PDFView) SetCurrentSelectionAnimate(selection *PDFSelection, animate bool)

func (*PDFView) SetCursorForAreaOfInterest

func (o *PDFView) SetCursorForAreaOfInterest(area PDFAreaOfInterest)

func (*PDFView) SetDelegate

func (o *PDFView) SetDelegate(delegate PDFViewDelegate)

func (*PDFView) SetDisplayBox

func (o *PDFView) SetDisplayBox(displayBox PDFDisplayBox)

func (*PDFView) SetDisplayDirection

func (o *PDFView) SetDisplayDirection(displayDirection PDFDisplayDirection)

func (*PDFView) SetDisplayMode

func (o *PDFView) SetDisplayMode(displayMode PDFDisplayMode)

func (*PDFView) SetDisplaysAsBook

func (o *PDFView) SetDisplaysAsBook(displaysAsBook bool)

func (*PDFView) SetDisplaysPageBreaks

func (o *PDFView) SetDisplaysPageBreaks(displaysPageBreaks bool)

func (*PDFView) SetDisplaysRTL

func (o *PDFView) SetDisplaysRTL(displaysRTL bool)

func (*PDFView) SetDocument

func (o *PDFView) SetDocument(document *PDFDocument)

func (*PDFView) SetEnableDataDetectors

func (o *PDFView) SetEnableDataDetectors(enableDataDetectors bool)

func (*PDFView) SetGreekingThreshold

func (o *PDFView) SetGreekingThreshold(greekingThreshold float64)

func (*PDFView) SetHighlightedSelections

func (o *PDFView) SetHighlightedSelections(highlightedSelections unsafe.Pointer)

func (*PDFView) SetInMarkupMode

func (o *PDFView) SetInMarkupMode(inMarkupMode bool)

func (*PDFView) SetInterpolationQuality

func (o *PDFView) SetInterpolationQuality(interpolationQuality PDFInterpolationQuality)

func (*PDFView) SetMaxScaleFactor

func (o *PDFView) SetMaxScaleFactor(maxScaleFactor float64)

func (*PDFView) SetMinScaleFactor

func (o *PDFView) SetMinScaleFactor(minScaleFactor float64)

func (*PDFView) SetPageBreakMargins

func (o *PDFView) SetPageBreakMargins(pageBreakMargins foundation.NSEdgeInsets)

func (*PDFView) SetPageOverlayViewProvider

func (o *PDFView) SetPageOverlayViewProvider(pageOverlayViewProvider unsafe.Pointer)

func (*PDFView) SetScaleFactor

func (o *PDFView) SetScaleFactor(scaleFactor float64)

func (*PDFView) SetShouldAntiAlias

func (o *PDFView) SetShouldAntiAlias(shouldAntiAlias bool)

func (*PDFView) ShouldAntiAlias

func (o *PDFView) ShouldAntiAlias() bool

func (*PDFView) TakeBackgroundColorFrom

func (o *PDFView) TakeBackgroundColorFrom(sender objc.ID)

func (*PDFView) TakePasswordFrom

func (o *PDFView) TakePasswordFrom(sender objc.ID)

Unlocks with the password from the specified sender.

func (*PDFView) VisiblePages

func (o *PDFView) VisiblePages() unsafe.Pointer

func (*PDFView) ZoomIn

func (o *PDFView) ZoomIn(sender objc.ID)

func (*PDFView) ZoomOut

func (o *PDFView) ZoomOut(sender objc.ID)

type PDFViewDelegate

type PDFViewDelegate interface {
}

PDFViewDelegate wraps the ObjC protocol PDFViewDelegate.

type PDFWidgetCellState

type PDFWidgetCellState int64

The state of a button annotation, either on, off, or mixed.

const (
	// The button widget is in a mixed state, neither on nor off.
	KPDFWidgetMixedState PDFWidgetCellState = -1
	// The button widget is in an unselected state.
	KPDFWidgetOffState PDFWidgetCellState = 0
	// The button widget is in a selected state.
	KPDFWidgetOnState PDFWidgetCellState = 1
)

func (PDFWidgetCellState) String

func (e PDFWidgetCellState) String() string

type PDFWidgetControlType

type PDFWidgetControlType int64

The types of annotation buttons.

const (
	// Unknown control type.
	KPDFWidgetUnknownControl PDFWidgetControlType = -1
	// Push button control.
	KPDFWidgetPushButtonControl PDFWidgetControlType = 0
	// Radio button control.
	KPDFWidgetRadioButtonControl PDFWidgetControlType = 1
	// Check box control.
	KPDFWidgetCheckBoxControl PDFWidgetControlType = 2
)

func (PDFWidgetControlType) String

func (e PDFWidgetControlType) String() string

type PMPageToPaperMappingType

type PMPageToPaperMappingType int64
const (
	KPMPageToPaperMappingNone       PMPageToPaperMappingType = 1
	KPMPageToPaperMappingScaleToFit PMPageToPaperMappingType = 2
)

func (PMPageToPaperMappingType) String

func (e PMPageToPaperMappingType) String() string

type Ptrauth_key

type Ptrauth_key int64
const (
	Ptrauth_key_none                     Ptrauth_key = -1
	Ptrauth_key_asia                     Ptrauth_key = 0
	Ptrauth_key_asib                     Ptrauth_key = 1
	Ptrauth_key_asda                     Ptrauth_key = 2
	Ptrauth_key_asdb                     Ptrauth_key = 3
	Ptrauth_key_process_independent_code Ptrauth_key = 0
	Ptrauth_key_process_dependent_code   Ptrauth_key = 1
	Ptrauth_key_process_independent_data Ptrauth_key = 2
	Ptrauth_key_process_dependent_data   Ptrauth_key = 3
	Ptrauth_key_return_address           Ptrauth_key = 1
	Ptrauth_key_frame_pointer            Ptrauth_key = 3
	Ptrauth_key_function_pointer         Ptrauth_key = 0
	Ptrauth_key_block_function           Ptrauth_key = 0
	Ptrauth_key_cxx_vtable_pointer       Ptrauth_key = 2
	Ptrauth_key_method_list_pointer      Ptrauth_key = 2
	Ptrauth_key_objc_isa_pointer         Ptrauth_key = 2
	Ptrauth_key_objc_super_pointer       Ptrauth_key = 2
	Ptrauth_key_objc_sel_pointer         Ptrauth_key = 3
	Ptrauth_key_objc_class_ro_pointer    Ptrauth_key = 2
	Ptrauth_key_block_descriptor_pointer Ptrauth_key = 2
	Ptrauth_key_init_fini_pointer        Ptrauth_key = 0
)

func (Ptrauth_key) String

func (e Ptrauth_key) String() string

type Qos_class_t

type Qos_class_t uint32
const (
	QOS_CLASS_USER_INTERACTIVE Qos_class_t = 33
	QOS_CLASS_USER_INITIATED   Qos_class_t = 25
	QOS_CLASS_DEFAULT          Qos_class_t = 21
	QOS_CLASS_UTILITY          Qos_class_t = 17
	QOS_CLASS_BACKGROUND       Qos_class_t = 9
	QOS_CLASS_UNSPECIFIED      Qos_class_t = 0
)

func (Qos_class_t) String

func (e Qos_class_t) String() string

type Virtual_memory_guard_exception_code_t

type Virtual_memory_guard_exception_code_t int64
const (
	KGUARD_EXC_DEALLOC_GAP                   Virtual_memory_guard_exception_code_t = 1
	KGUARD_EXC_RECLAIM_COPYIO_FAILURE        Virtual_memory_guard_exception_code_t = 2
	KGUARD_EXC_RECLAIM_INDEX_FAILURE         Virtual_memory_guard_exception_code_t = 4
	KGUARD_EXC_RECLAIM_DEALLOCATE_FAILURE    Virtual_memory_guard_exception_code_t = 8
	KGUARD_EXC_RECLAIM_ACCOUNTING_FAILURE    Virtual_memory_guard_exception_code_t = 9
	KGUARD_EXC_SEC_IOPL_ON_EXEC_PAGE         Virtual_memory_guard_exception_code_t = 10
	KGUARD_EXC_SEC_EXEC_ON_IOPL_PAGE         Virtual_memory_guard_exception_code_t = 11
	KGUARD_EXC_SEC_UPL_WRITE_ON_EXEC_REGION  Virtual_memory_guard_exception_code_t = 12
	KGUARD_EXC_LARGE_ALLOCATION_TELEMETRY    Virtual_memory_guard_exception_code_t = 13
	KGUARD_EXC_SEC_ACCESS_FAULT              Virtual_memory_guard_exception_code_t = 98
	KGUARD_EXC_SEC_ASYNC_ACCESS_FAULT        Virtual_memory_guard_exception_code_t = 99
	KGUARD_EXC_SEC_COPY_DENIED               Virtual_memory_guard_exception_code_t = 100
	KGUARD_EXC_SEC_SHARING_DENIED            Virtual_memory_guard_exception_code_t = 101
	KGUARD_EXC_MTE_SYNC_FAULT                Virtual_memory_guard_exception_code_t = 200
	KGUARD_EXC_MTE_ASYNC_USER_FAULT          Virtual_memory_guard_exception_code_t = 201
	KGUARD_EXC_MTE_ASYNC_KERN_FAULT          Virtual_memory_guard_exception_code_t = 202
	KGUARD_EXC_GUARD_OBJECT_ASYNC_USER_FAULT Virtual_memory_guard_exception_code_t = 203
	KGUARD_EXC_GUARD_OBJECT_ASYNC_KERN_FAULT Virtual_memory_guard_exception_code_t = 204
)

func (Virtual_memory_guard_exception_code_t) String

type Xpc_listener_create_flags_t

type Xpc_listener_create_flags_t int64
const (
	XPC_LISTENER_CREATE_NONE             Xpc_listener_create_flags_t = 0
	XPC_LISTENER_CREATE_INACTIVE         Xpc_listener_create_flags_t = 1
	XPC_LISTENER_CREATE_FORCE_MACH       Xpc_listener_create_flags_t = 2
	XPC_LISTENER_CREATE_FORCE_XPCSERVICE Xpc_listener_create_flags_t = 4
)

func (Xpc_listener_create_flags_t) String

type Xpc_session_create_flags_t

type Xpc_session_create_flags_t int64
const (
	XPC_SESSION_CREATE_NONE            Xpc_session_create_flags_t = 0
	XPC_SESSION_CREATE_INACTIVE        Xpc_session_create_flags_t = 1
	XPC_SESSION_CREATE_MACH_PRIVILEGED Xpc_session_create_flags_t = 2
)

func (Xpc_session_create_flags_t) String

Jump to

Keyboard shortcuts

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