pdfkit

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Rendered for darwin/amd64

Overview

Package pdfkit provides a fluent Go API over the macOS PDFKit framework.

Construction

New… functions create objects; each With… method sets one property and returns its receiver, so configuration calls chain. A <Type>FromID constructor adopts an Objective-C object obtained elsewhere.

Lifecycle

A wrapper releases its Objective-C object automatically once the garbage collector finds it unreachable. Call Release to relinquish the reference deterministically (for objects holding scarce resources); Release is idempotent, and afterwards the wrapper's methods are no-ops returning zero values.

Main-thread requirements

Methods, setters, and constructors of classes Apple isolates to the main thread run there automatically; callers never need to arrange main-thread dispatch for the generated API.

Delegates

A …Delegate interface is implemented by a plain Go value and installed with the matching With… setter; the package builds the Objective-C delegate object behind the scenes. Optional protocol methods are separate one-method …Handler interfaces — implement the ones you need on the same value and the framework calls them too.

Types

Each base type below lists the concrete types you construct and pass where the base is accepted:

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KPDFAnnotationKey_Action

func KPDFAnnotationKey_Action() obj.Object

KPDFAnnotationKey_Action returns the string constant kPDFAnnotationKey_Action, for use as a dictionary key or argument.

func KPDFAnnotationKey_AdditionalActions

func KPDFAnnotationKey_AdditionalActions() obj.Object

KPDFAnnotationKey_AdditionalActions returns the string constant kPDFAnnotationKey_AdditionalActions, for use as a dictionary key or argument.

func KPDFAnnotationKey_AppearanceDictionary

func KPDFAnnotationKey_AppearanceDictionary() obj.Object

KPDFAnnotationKey_AppearanceDictionary returns the string constant kPDFAnnotationKey_AppearanceDictionary, for use as a dictionary key or argument.

func KPDFAnnotationKey_AppearanceState

func KPDFAnnotationKey_AppearanceState() obj.Object

KPDFAnnotationKey_AppearanceState returns the string constant kPDFAnnotationKey_AppearanceState, for use as a dictionary key or argument.

func KPDFAnnotationKey_Border

func KPDFAnnotationKey_Border() obj.Object

KPDFAnnotationKey_Border returns the string constant kPDFAnnotationKey_Border, for use as a dictionary key or argument.

func KPDFAnnotationKey_BorderStyle

func KPDFAnnotationKey_BorderStyle() obj.Object

KPDFAnnotationKey_BorderStyle returns the string constant kPDFAnnotationKey_BorderStyle, for use as a dictionary key or argument.

func KPDFAnnotationKey_Color

func KPDFAnnotationKey_Color() obj.Object

KPDFAnnotationKey_Color returns the string constant kPDFAnnotationKey_Color, for use as a dictionary key or argument.

func KPDFAnnotationKey_Contents

func KPDFAnnotationKey_Contents() obj.Object

KPDFAnnotationKey_Contents returns the string constant kPDFAnnotationKey_Contents, for use as a dictionary key or argument.

func KPDFAnnotationKey_Date

func KPDFAnnotationKey_Date() obj.Object

KPDFAnnotationKey_Date returns the string constant kPDFAnnotationKey_Date, for use as a dictionary key or argument.

func KPDFAnnotationKey_DefaultAppearance

func KPDFAnnotationKey_DefaultAppearance() obj.Object

KPDFAnnotationKey_DefaultAppearance returns the string constant kPDFAnnotationKey_DefaultAppearance, for use as a dictionary key or argument.

func KPDFAnnotationKey_Destination

func KPDFAnnotationKey_Destination() obj.Object

KPDFAnnotationKey_Destination returns the string constant kPDFAnnotationKey_Destination, for use as a dictionary key or argument.

func KPDFAnnotationKey_Flags

func KPDFAnnotationKey_Flags() obj.Object

KPDFAnnotationKey_Flags returns the string constant kPDFAnnotationKey_Flags, for use as a dictionary key or argument.

func KPDFAnnotationKey_HighlightingMode

func KPDFAnnotationKey_HighlightingMode() obj.Object

KPDFAnnotationKey_HighlightingMode returns the string constant kPDFAnnotationKey_HighlightingMode, for use as a dictionary key or argument.

func KPDFAnnotationKey_IconName

func KPDFAnnotationKey_IconName() obj.Object

KPDFAnnotationKey_IconName returns the string constant kPDFAnnotationKey_IconName, for use as a dictionary key or argument.

func KPDFAnnotationKey_Inklist

func KPDFAnnotationKey_Inklist() obj.Object

KPDFAnnotationKey_Inklist returns the string constant kPDFAnnotationKey_Inklist, for use as a dictionary key or argument.

func KPDFAnnotationKey_InteriorColor

func KPDFAnnotationKey_InteriorColor() obj.Object

KPDFAnnotationKey_InteriorColor returns the string constant kPDFAnnotationKey_InteriorColor, for use as a dictionary key or argument.

func KPDFAnnotationKey_LineEndingStyles

func KPDFAnnotationKey_LineEndingStyles() obj.Object

KPDFAnnotationKey_LineEndingStyles returns the string constant kPDFAnnotationKey_LineEndingStyles, for use as a dictionary key or argument.

func KPDFAnnotationKey_LinePoints

func KPDFAnnotationKey_LinePoints() obj.Object

KPDFAnnotationKey_LinePoints returns the string constant kPDFAnnotationKey_LinePoints, for use as a dictionary key or argument.

func KPDFAnnotationKey_Name

func KPDFAnnotationKey_Name() obj.Object

KPDFAnnotationKey_Name returns the string constant kPDFAnnotationKey_Name, for use as a dictionary key or argument.

func KPDFAnnotationKey_Open

func KPDFAnnotationKey_Open() obj.Object

KPDFAnnotationKey_Open returns the string constant kPDFAnnotationKey_Open, for use as a dictionary key or argument.

func KPDFAnnotationKey_Page

func KPDFAnnotationKey_Page() obj.Object

KPDFAnnotationKey_Page returns the string constant kPDFAnnotationKey_Page, for use as a dictionary key or argument.

func KPDFAnnotationKey_Parent

func KPDFAnnotationKey_Parent() obj.Object

KPDFAnnotationKey_Parent returns the string constant kPDFAnnotationKey_Parent, for use as a dictionary key or argument.

func KPDFAnnotationKey_Popup

func KPDFAnnotationKey_Popup() obj.Object

KPDFAnnotationKey_Popup returns the string constant kPDFAnnotationKey_Popup, for use as a dictionary key or argument.

func KPDFAnnotationKey_QuadPoints

func KPDFAnnotationKey_QuadPoints() obj.Object

KPDFAnnotationKey_QuadPoints returns the string constant kPDFAnnotationKey_QuadPoints, for use as a dictionary key or argument.

func KPDFAnnotationKey_Quadding

func KPDFAnnotationKey_Quadding() obj.Object

KPDFAnnotationKey_Quadding returns the string constant kPDFAnnotationKey_Quadding, for use as a dictionary key or argument.

func KPDFAnnotationKey_Rect

func KPDFAnnotationKey_Rect() obj.Object

KPDFAnnotationKey_Rect returns the string constant kPDFAnnotationKey_Rect, for use as a dictionary key or argument.

func KPDFAnnotationKey_Subtype

func KPDFAnnotationKey_Subtype() obj.Object

KPDFAnnotationKey_Subtype returns the string constant kPDFAnnotationKey_Subtype, for use as a dictionary key or argument.

func KPDFAnnotationKey_TextLabel

func KPDFAnnotationKey_TextLabel() obj.Object

KPDFAnnotationKey_TextLabel returns the string constant kPDFAnnotationKey_TextLabel, for use as a dictionary key or argument.

func KPDFAnnotationKey_WidgetAppearanceDictionary

func KPDFAnnotationKey_WidgetAppearanceDictionary() obj.Object

KPDFAnnotationKey_WidgetAppearanceDictionary returns the string constant kPDFAnnotationKey_WidgetAppearanceDictionary, for use as a dictionary key or argument.

func KPDFAnnotationKey_WidgetDefaultValue

func KPDFAnnotationKey_WidgetDefaultValue() obj.Object

KPDFAnnotationKey_WidgetDefaultValue returns the string constant kPDFAnnotationKey_WidgetDefaultValue, for use as a dictionary key or argument.

func KPDFAnnotationKey_WidgetFieldFlags

func KPDFAnnotationKey_WidgetFieldFlags() obj.Object

KPDFAnnotationKey_WidgetFieldFlags returns the string constant kPDFAnnotationKey_WidgetFieldFlags, for use as a dictionary key or argument.

func KPDFAnnotationKey_WidgetFieldType

func KPDFAnnotationKey_WidgetFieldType() obj.Object

KPDFAnnotationKey_WidgetFieldType returns the string constant kPDFAnnotationKey_WidgetFieldType, for use as a dictionary key or argument.

func KPDFAnnotationKey_WidgetMaxLen

func KPDFAnnotationKey_WidgetMaxLen() obj.Object

KPDFAnnotationKey_WidgetMaxLen returns the string constant kPDFAnnotationKey_WidgetMaxLen, for use as a dictionary key or argument.

func KPDFAnnotationKey_WidgetOptions

func KPDFAnnotationKey_WidgetOptions() obj.Object

KPDFAnnotationKey_WidgetOptions returns the string constant kPDFAnnotationKey_WidgetOptions, for use as a dictionary key or argument.

func KPDFAnnotationKey_WidgetTextLabelUI

func KPDFAnnotationKey_WidgetTextLabelUI() obj.Object

KPDFAnnotationKey_WidgetTextLabelUI returns the string constant kPDFAnnotationKey_WidgetTextLabelUI, for use as a dictionary key or argument.

func KPDFAnnotationKey_WidgetValue

func KPDFAnnotationKey_WidgetValue() obj.Object

KPDFAnnotationKey_WidgetValue returns the string constant kPDFAnnotationKey_WidgetValue, for use as a dictionary key or argument.

func KPDFDestinationUnspecifiedValue

func KPDFDestinationUnspecifiedValue() float64

KPDFDestinationUnspecifiedValue returns the value of the constant kPDFDestinationUnspecifiedValue.

func NameForLineStyle added in v0.17.0

func NameForLineStyle(style LineStyle) string

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

func PDFAnnotationHighlightingModeInvert

func PDFAnnotationHighlightingModeInvert() obj.Object

PDFAnnotationHighlightingModeInvert returns the string constant PDFAnnotationHighlightingModeInvert, for use as a dictionary key or argument.

func PDFAnnotationHighlightingModeNone

func PDFAnnotationHighlightingModeNone() obj.Object

PDFAnnotationHighlightingModeNone returns the string constant PDFAnnotationHighlightingModeNone, for use as a dictionary key or argument.

func PDFAnnotationHighlightingModeOutline

func PDFAnnotationHighlightingModeOutline() obj.Object

PDFAnnotationHighlightingModeOutline returns the string constant PDFAnnotationHighlightingModeOutline, for use as a dictionary key or argument.

func PDFAnnotationHighlightingModePush

func PDFAnnotationHighlightingModePush() obj.Object

PDFAnnotationHighlightingModePush returns the string constant PDFAnnotationHighlightingModePush, for use as a dictionary key or argument.

func PDFAnnotationKeyAction

func PDFAnnotationKeyAction() obj.Object

PDFAnnotationKeyAction returns the string constant PDFAnnotationKeyAction, for use as a dictionary key or argument.

func PDFAnnotationKeyAdditionalActions

func PDFAnnotationKeyAdditionalActions() obj.Object

PDFAnnotationKeyAdditionalActions returns the string constant PDFAnnotationKeyAdditionalActions, for use as a dictionary key or argument.

func PDFAnnotationKeyAppearanceDictionary

func PDFAnnotationKeyAppearanceDictionary() obj.Object

PDFAnnotationKeyAppearanceDictionary returns the string constant PDFAnnotationKeyAppearanceDictionary, for use as a dictionary key or argument.

func PDFAnnotationKeyAppearanceState

func PDFAnnotationKeyAppearanceState() obj.Object

PDFAnnotationKeyAppearanceState returns the string constant PDFAnnotationKeyAppearanceState, for use as a dictionary key or argument.

func PDFAnnotationKeyBorder

func PDFAnnotationKeyBorder() obj.Object

PDFAnnotationKeyBorder returns the string constant PDFAnnotationKeyBorder, for use as a dictionary key or argument.

func PDFAnnotationKeyBorderStyle

func PDFAnnotationKeyBorderStyle() obj.Object

PDFAnnotationKeyBorderStyle returns the string constant PDFAnnotationKeyBorderStyle, for use as a dictionary key or argument.

func PDFAnnotationKeyColor

func PDFAnnotationKeyColor() obj.Object

PDFAnnotationKeyColor returns the string constant PDFAnnotationKeyColor, for use as a dictionary key or argument.

func PDFAnnotationKeyContents

func PDFAnnotationKeyContents() obj.Object

PDFAnnotationKeyContents returns the string constant PDFAnnotationKeyContents, for use as a dictionary key or argument.

func PDFAnnotationKeyDate

func PDFAnnotationKeyDate() obj.Object

PDFAnnotationKeyDate returns the string constant PDFAnnotationKeyDate, for use as a dictionary key or argument.

func PDFAnnotationKeyDefaultAppearance

func PDFAnnotationKeyDefaultAppearance() obj.Object

PDFAnnotationKeyDefaultAppearance returns the string constant PDFAnnotationKeyDefaultAppearance, for use as a dictionary key or argument.

func PDFAnnotationKeyDestination

func PDFAnnotationKeyDestination() obj.Object

PDFAnnotationKeyDestination returns the string constant PDFAnnotationKeyDestination, for use as a dictionary key or argument.

func PDFAnnotationKeyFlags

func PDFAnnotationKeyFlags() obj.Object

PDFAnnotationKeyFlags returns the string constant PDFAnnotationKeyFlags, for use as a dictionary key or argument.

func PDFAnnotationKeyHighlightingMode

func PDFAnnotationKeyHighlightingMode() obj.Object

PDFAnnotationKeyHighlightingMode returns the string constant PDFAnnotationKeyHighlightingMode, for use as a dictionary key or argument.

func PDFAnnotationKeyIconName

func PDFAnnotationKeyIconName() obj.Object

PDFAnnotationKeyIconName returns the string constant PDFAnnotationKeyIconName, for use as a dictionary key or argument.

func PDFAnnotationKeyInklist

func PDFAnnotationKeyInklist() obj.Object

PDFAnnotationKeyInklist returns the string constant PDFAnnotationKeyInklist, for use as a dictionary key or argument.

func PDFAnnotationKeyInteriorColor

func PDFAnnotationKeyInteriorColor() obj.Object

PDFAnnotationKeyInteriorColor returns the string constant PDFAnnotationKeyInteriorColor, for use as a dictionary key or argument.

func PDFAnnotationKeyLineEndingStyles

func PDFAnnotationKeyLineEndingStyles() obj.Object

PDFAnnotationKeyLineEndingStyles returns the string constant PDFAnnotationKeyLineEndingStyles, for use as a dictionary key or argument.

func PDFAnnotationKeyLinePoints

func PDFAnnotationKeyLinePoints() obj.Object

PDFAnnotationKeyLinePoints returns the string constant PDFAnnotationKeyLinePoints, for use as a dictionary key or argument.

func PDFAnnotationKeyName

func PDFAnnotationKeyName() obj.Object

PDFAnnotationKeyName returns the string constant PDFAnnotationKeyName, for use as a dictionary key or argument.

func PDFAnnotationKeyOpen

func PDFAnnotationKeyOpen() obj.Object

PDFAnnotationKeyOpen returns the string constant PDFAnnotationKeyOpen, for use as a dictionary key or argument.

func PDFAnnotationKeyPage

func PDFAnnotationKeyPage() obj.Object

PDFAnnotationKeyPage returns the string constant PDFAnnotationKeyPage, for use as a dictionary key or argument.

func PDFAnnotationKeyParent

func PDFAnnotationKeyParent() obj.Object

PDFAnnotationKeyParent returns the string constant PDFAnnotationKeyParent, for use as a dictionary key or argument.

func PDFAnnotationKeyPopup

func PDFAnnotationKeyPopup() obj.Object

PDFAnnotationKeyPopup returns the string constant PDFAnnotationKeyPopup, for use as a dictionary key or argument.

func PDFAnnotationKeyQuadPoints

func PDFAnnotationKeyQuadPoints() obj.Object

PDFAnnotationKeyQuadPoints returns the string constant PDFAnnotationKeyQuadPoints, for use as a dictionary key or argument.

func PDFAnnotationKeyQuadding

func PDFAnnotationKeyQuadding() obj.Object

PDFAnnotationKeyQuadding returns the string constant PDFAnnotationKeyQuadding, for use as a dictionary key or argument.

func PDFAnnotationKeyRect

func PDFAnnotationKeyRect() obj.Object

PDFAnnotationKeyRect returns the string constant PDFAnnotationKeyRect, for use as a dictionary key or argument.

func PDFAnnotationKeySubtype

func PDFAnnotationKeySubtype() obj.Object

PDFAnnotationKeySubtype returns the string constant PDFAnnotationKeySubtype, for use as a dictionary key or argument.

func PDFAnnotationKeyTextLabel

func PDFAnnotationKeyTextLabel() obj.Object

PDFAnnotationKeyTextLabel returns the string constant PDFAnnotationKeyTextLabel, for use as a dictionary key or argument.

func PDFAnnotationKeyWidgetAppearanceDictionary

func PDFAnnotationKeyWidgetAppearanceDictionary() obj.Object

PDFAnnotationKeyWidgetAppearanceDictionary returns the string constant PDFAnnotationKeyWidgetAppearanceDictionary, for use as a dictionary key or argument.

func PDFAnnotationKeyWidgetBackgroundColor

func PDFAnnotationKeyWidgetBackgroundColor() obj.Object

PDFAnnotationKeyWidgetBackgroundColor returns the string constant PDFAnnotationKeyWidgetBackgroundColor, for use as a dictionary key or argument.

func PDFAnnotationKeyWidgetBorderColor

func PDFAnnotationKeyWidgetBorderColor() obj.Object

PDFAnnotationKeyWidgetBorderColor returns the string constant PDFAnnotationKeyWidgetBorderColor, for use as a dictionary key or argument.

func PDFAnnotationKeyWidgetCaption

func PDFAnnotationKeyWidgetCaption() obj.Object

PDFAnnotationKeyWidgetCaption returns the string constant PDFAnnotationKeyWidgetCaption, for use as a dictionary key or argument.

func PDFAnnotationKeyWidgetDefaultValue

func PDFAnnotationKeyWidgetDefaultValue() obj.Object

PDFAnnotationKeyWidgetDefaultValue returns the string constant PDFAnnotationKeyWidgetDefaultValue, for use as a dictionary key or argument.

func PDFAnnotationKeyWidgetDownCaption

func PDFAnnotationKeyWidgetDownCaption() obj.Object

PDFAnnotationKeyWidgetDownCaption returns the string constant PDFAnnotationKeyWidgetDownCaption, for use as a dictionary key or argument.

func PDFAnnotationKeyWidgetFieldFlags

func PDFAnnotationKeyWidgetFieldFlags() obj.Object

PDFAnnotationKeyWidgetFieldFlags returns the string constant PDFAnnotationKeyWidgetFieldFlags, for use as a dictionary key or argument.

func PDFAnnotationKeyWidgetFieldType

func PDFAnnotationKeyWidgetFieldType() obj.Object

PDFAnnotationKeyWidgetFieldType returns the string constant PDFAnnotationKeyWidgetFieldType, for use as a dictionary key or argument.

func PDFAnnotationKeyWidgetMaxLen

func PDFAnnotationKeyWidgetMaxLen() obj.Object

PDFAnnotationKeyWidgetMaxLen returns the string constant PDFAnnotationKeyWidgetMaxLen, for use as a dictionary key or argument.

func PDFAnnotationKeyWidgetOptions

func PDFAnnotationKeyWidgetOptions() obj.Object

PDFAnnotationKeyWidgetOptions returns the string constant PDFAnnotationKeyWidgetOptions, for use as a dictionary key or argument.

func PDFAnnotationKeyWidgetRolloverCaption

func PDFAnnotationKeyWidgetRolloverCaption() obj.Object

PDFAnnotationKeyWidgetRolloverCaption returns the string constant PDFAnnotationKeyWidgetRolloverCaption, for use as a dictionary key or argument.

func PDFAnnotationKeyWidgetRotation

func PDFAnnotationKeyWidgetRotation() obj.Object

PDFAnnotationKeyWidgetRotation returns the string constant PDFAnnotationKeyWidgetRotation, for use as a dictionary key or argument.

func PDFAnnotationKeyWidgetTextLabelUI

func PDFAnnotationKeyWidgetTextLabelUI() obj.Object

PDFAnnotationKeyWidgetTextLabelUI returns the string constant PDFAnnotationKeyWidgetTextLabelUI, for use as a dictionary key or argument.

func PDFAnnotationKeyWidgetValue

func PDFAnnotationKeyWidgetValue() obj.Object

PDFAnnotationKeyWidgetValue returns the string constant PDFAnnotationKeyWidgetValue, for use as a dictionary key or argument.

func PDFAnnotationLineEndingStyleCircle

func PDFAnnotationLineEndingStyleCircle() obj.Object

PDFAnnotationLineEndingStyleCircle returns the string constant PDFAnnotationLineEndingStyleCircle, for use as a dictionary key or argument.

func PDFAnnotationLineEndingStyleClosedArrow

func PDFAnnotationLineEndingStyleClosedArrow() obj.Object

PDFAnnotationLineEndingStyleClosedArrow returns the string constant PDFAnnotationLineEndingStyleClosedArrow, for use as a dictionary key or argument.

func PDFAnnotationLineEndingStyleDiamond

func PDFAnnotationLineEndingStyleDiamond() obj.Object

PDFAnnotationLineEndingStyleDiamond returns the string constant PDFAnnotationLineEndingStyleDiamond, for use as a dictionary key or argument.

func PDFAnnotationLineEndingStyleNone

func PDFAnnotationLineEndingStyleNone() obj.Object

PDFAnnotationLineEndingStyleNone returns the string constant PDFAnnotationLineEndingStyleNone, for use as a dictionary key or argument.

func PDFAnnotationLineEndingStyleOpenArrow

func PDFAnnotationLineEndingStyleOpenArrow() obj.Object

PDFAnnotationLineEndingStyleOpenArrow returns the string constant PDFAnnotationLineEndingStyleOpenArrow, for use as a dictionary key or argument.

func PDFAnnotationLineEndingStyleSquare

func PDFAnnotationLineEndingStyleSquare() obj.Object

PDFAnnotationLineEndingStyleSquare returns the string constant PDFAnnotationLineEndingStyleSquare, for use as a dictionary key or argument.

func PDFAnnotationSubtypeCircle

func PDFAnnotationSubtypeCircle() obj.Object

PDFAnnotationSubtypeCircle returns the string constant PDFAnnotationSubtypeCircle, for use as a dictionary key or argument.

func PDFAnnotationSubtypeFreeText

func PDFAnnotationSubtypeFreeText() obj.Object

PDFAnnotationSubtypeFreeText returns the string constant PDFAnnotationSubtypeFreeText, for use as a dictionary key or argument.

func PDFAnnotationSubtypeHighlight

func PDFAnnotationSubtypeHighlight() obj.Object

PDFAnnotationSubtypeHighlight returns the string constant PDFAnnotationSubtypeHighlight, for use as a dictionary key or argument.

func PDFAnnotationSubtypeInk

func PDFAnnotationSubtypeInk() obj.Object

PDFAnnotationSubtypeInk returns the string constant PDFAnnotationSubtypeInk, for use as a dictionary key or argument.

func PDFAnnotationSubtypeLine

func PDFAnnotationSubtypeLine() obj.Object

PDFAnnotationSubtypeLine returns the string constant PDFAnnotationSubtypeLine, for use as a dictionary key or argument.

func PDFAnnotationSubtypeLink() obj.Object

PDFAnnotationSubtypeLink returns the string constant PDFAnnotationSubtypeLink, for use as a dictionary key or argument.

func PDFAnnotationSubtypePopup

func PDFAnnotationSubtypePopup() obj.Object

PDFAnnotationSubtypePopup returns the string constant PDFAnnotationSubtypePopup, for use as a dictionary key or argument.

func PDFAnnotationSubtypeSquare

func PDFAnnotationSubtypeSquare() obj.Object

PDFAnnotationSubtypeSquare returns the string constant PDFAnnotationSubtypeSquare, for use as a dictionary key or argument.

func PDFAnnotationSubtypeStamp

func PDFAnnotationSubtypeStamp() obj.Object

PDFAnnotationSubtypeStamp returns the string constant PDFAnnotationSubtypeStamp, for use as a dictionary key or argument.

func PDFAnnotationSubtypeStrikeOut

func PDFAnnotationSubtypeStrikeOut() obj.Object

PDFAnnotationSubtypeStrikeOut returns the string constant PDFAnnotationSubtypeStrikeOut, for use as a dictionary key or argument.

func PDFAnnotationSubtypeText

func PDFAnnotationSubtypeText() obj.Object

PDFAnnotationSubtypeText returns the string constant PDFAnnotationSubtypeText, for use as a dictionary key or argument.

func PDFAnnotationSubtypeUnderline

func PDFAnnotationSubtypeUnderline() obj.Object

PDFAnnotationSubtypeUnderline returns the string constant PDFAnnotationSubtypeUnderline, for use as a dictionary key or argument.

func PDFAnnotationSubtypeWidget

func PDFAnnotationSubtypeWidget() obj.Object

PDFAnnotationSubtypeWidget returns the string constant PDFAnnotationSubtypeWidget, for use as a dictionary key or argument.

func PDFAnnotationTextIconTypeComment

func PDFAnnotationTextIconTypeComment() obj.Object

PDFAnnotationTextIconTypeComment returns the string constant PDFAnnotationTextIconTypeComment, for use as a dictionary key or argument.

func PDFAnnotationTextIconTypeHelp

func PDFAnnotationTextIconTypeHelp() obj.Object

PDFAnnotationTextIconTypeHelp returns the string constant PDFAnnotationTextIconTypeHelp, for use as a dictionary key or argument.

func PDFAnnotationTextIconTypeInsert

func PDFAnnotationTextIconTypeInsert() obj.Object

PDFAnnotationTextIconTypeInsert returns the string constant PDFAnnotationTextIconTypeInsert, for use as a dictionary key or argument.

func PDFAnnotationTextIconTypeKey

func PDFAnnotationTextIconTypeKey() obj.Object

PDFAnnotationTextIconTypeKey returns the string constant PDFAnnotationTextIconTypeKey, for use as a dictionary key or argument.

func PDFAnnotationTextIconTypeNewParagraph

func PDFAnnotationTextIconTypeNewParagraph() obj.Object

PDFAnnotationTextIconTypeNewParagraph returns the string constant PDFAnnotationTextIconTypeNewParagraph, for use as a dictionary key or argument.

func PDFAnnotationTextIconTypeNote

func PDFAnnotationTextIconTypeNote() obj.Object

PDFAnnotationTextIconTypeNote returns the string constant PDFAnnotationTextIconTypeNote, for use as a dictionary key or argument.

func PDFAnnotationTextIconTypeParagraph

func PDFAnnotationTextIconTypeParagraph() obj.Object

PDFAnnotationTextIconTypeParagraph returns the string constant PDFAnnotationTextIconTypeParagraph, for use as a dictionary key or argument.

func PDFAnnotationWidgetSubtypeButton

func PDFAnnotationWidgetSubtypeButton() obj.Object

PDFAnnotationWidgetSubtypeButton returns the string constant PDFAnnotationWidgetSubtypeButton, for use as a dictionary key or argument.

func PDFAnnotationWidgetSubtypeChoice

func PDFAnnotationWidgetSubtypeChoice() obj.Object

PDFAnnotationWidgetSubtypeChoice returns the string constant PDFAnnotationWidgetSubtypeChoice, for use as a dictionary key or argument.

func PDFAnnotationWidgetSubtypeSignature

func PDFAnnotationWidgetSubtypeSignature() obj.Object

PDFAnnotationWidgetSubtypeSignature returns the string constant PDFAnnotationWidgetSubtypeSignature, for use as a dictionary key or argument.

func PDFAnnotationWidgetSubtypeText

func PDFAnnotationWidgetSubtypeText() obj.Object

PDFAnnotationWidgetSubtypeText returns the string constant PDFAnnotationWidgetSubtypeText, for use as a dictionary key or argument.

func PDFAppearanceCharacteristicsKeyBackgroundColor

func PDFAppearanceCharacteristicsKeyBackgroundColor() obj.Object

PDFAppearanceCharacteristicsKeyBackgroundColor returns the string constant PDFAppearanceCharacteristicsKeyBackgroundColor, for use as a dictionary key or argument.

func PDFAppearanceCharacteristicsKeyBorderColor

func PDFAppearanceCharacteristicsKeyBorderColor() obj.Object

PDFAppearanceCharacteristicsKeyBorderColor returns the string constant PDFAppearanceCharacteristicsKeyBorderColor, for use as a dictionary key or argument.

func PDFAppearanceCharacteristicsKeyCaption

func PDFAppearanceCharacteristicsKeyCaption() obj.Object

PDFAppearanceCharacteristicsKeyCaption returns the string constant PDFAppearanceCharacteristicsKeyCaption, for use as a dictionary key or argument.

func PDFAppearanceCharacteristicsKeyDownCaption

func PDFAppearanceCharacteristicsKeyDownCaption() obj.Object

PDFAppearanceCharacteristicsKeyDownCaption returns the string constant PDFAppearanceCharacteristicsKeyDownCaption, for use as a dictionary key or argument.

func PDFAppearanceCharacteristicsKeyRolloverCaption

func PDFAppearanceCharacteristicsKeyRolloverCaption() obj.Object

PDFAppearanceCharacteristicsKeyRolloverCaption returns the string constant PDFAppearanceCharacteristicsKeyRolloverCaption, for use as a dictionary key or argument.

func PDFAppearanceCharacteristicsKeyRotation

func PDFAppearanceCharacteristicsKeyRotation() obj.Object

PDFAppearanceCharacteristicsKeyRotation returns the string constant PDFAppearanceCharacteristicsKeyRotation, for use as a dictionary key or argument.

func PDFBorderKeyDashPattern

func PDFBorderKeyDashPattern() obj.Object

PDFBorderKeyDashPattern returns the string constant PDFBorderKeyDashPattern, for use as a dictionary key or argument.

func PDFBorderKeyLineWidth

func PDFBorderKeyLineWidth() obj.Object

PDFBorderKeyLineWidth returns the string constant PDFBorderKeyLineWidth, for use as a dictionary key or argument.

func PDFBorderKeyStyle

func PDFBorderKeyStyle() obj.Object

PDFBorderKeyStyle returns the string constant PDFBorderKeyStyle, for use as a dictionary key or argument.

func PDFDocumentAccessPermissionsOption

func PDFDocumentAccessPermissionsOption() obj.Object

PDFDocumentAccessPermissionsOption returns the string constant PDFDocumentAccessPermissionsOption, for use as a dictionary key or argument.

func PDFDocumentAuthorAttribute

func PDFDocumentAuthorAttribute() obj.Object

PDFDocumentAuthorAttribute returns the string constant PDFDocumentAuthorAttribute, for use as a dictionary key or argument.

func PDFDocumentBurnInAnnotationsOption

func PDFDocumentBurnInAnnotationsOption() obj.Object

PDFDocumentBurnInAnnotationsOption returns the string constant PDFDocumentBurnInAnnotationsOption, for use as a dictionary key or argument.

func PDFDocumentCreationDateAttribute

func PDFDocumentCreationDateAttribute() obj.Object

PDFDocumentCreationDateAttribute returns the string constant PDFDocumentCreationDateAttribute, for use as a dictionary key or argument.

func PDFDocumentCreatorAttribute

func PDFDocumentCreatorAttribute() obj.Object

PDFDocumentCreatorAttribute returns the string constant PDFDocumentCreatorAttribute, for use as a dictionary key or argument.

func PDFDocumentDidBeginFindNotification

func PDFDocumentDidBeginFindNotification() uintptr

PDFDocumentDidBeginFindNotification returns the address of the symbol PDFDocumentDidBeginFindNotification.

func PDFDocumentDidBeginPageFindNotification

func PDFDocumentDidBeginPageFindNotification() uintptr

PDFDocumentDidBeginPageFindNotification returns the address of the symbol PDFDocumentDidBeginPageFindNotification.

func PDFDocumentDidBeginPageWriteNotification

func PDFDocumentDidBeginPageWriteNotification() uintptr

PDFDocumentDidBeginPageWriteNotification returns the address of the symbol PDFDocumentDidBeginPageWriteNotification.

func PDFDocumentDidBeginWriteNotification

func PDFDocumentDidBeginWriteNotification() uintptr

PDFDocumentDidBeginWriteNotification returns the address of the symbol PDFDocumentDidBeginWriteNotification.

func PDFDocumentDidEndFindNotification

func PDFDocumentDidEndFindNotification() uintptr

PDFDocumentDidEndFindNotification returns the address of the symbol PDFDocumentDidEndFindNotification.

func PDFDocumentDidEndPageFindNotification

func PDFDocumentDidEndPageFindNotification() uintptr

PDFDocumentDidEndPageFindNotification returns the address of the symbol PDFDocumentDidEndPageFindNotification.

func PDFDocumentDidEndPageWriteNotification

func PDFDocumentDidEndPageWriteNotification() uintptr

PDFDocumentDidEndPageWriteNotification returns the address of the symbol PDFDocumentDidEndPageWriteNotification.

func PDFDocumentDidEndWriteNotification

func PDFDocumentDidEndWriteNotification() uintptr

PDFDocumentDidEndWriteNotification returns the address of the symbol PDFDocumentDidEndWriteNotification.

func PDFDocumentDidFindMatchNotification

func PDFDocumentDidFindMatchNotification() uintptr

PDFDocumentDidFindMatchNotification returns the address of the symbol PDFDocumentDidFindMatchNotification.

func PDFDocumentDidUnlockNotification

func PDFDocumentDidUnlockNotification() uintptr

PDFDocumentDidUnlockNotification returns the address of the symbol PDFDocumentDidUnlockNotification.

func PDFDocumentFoundSelectionKey

func PDFDocumentFoundSelectionKey() obj.Object

PDFDocumentFoundSelectionKey returns the string constant PDFDocumentFoundSelectionKey, for use as a dictionary key or argument.

func PDFDocumentKeywordsAttribute

func PDFDocumentKeywordsAttribute() obj.Object

PDFDocumentKeywordsAttribute returns the string constant PDFDocumentKeywordsAttribute, for use as a dictionary key or argument.

func PDFDocumentModificationDateAttribute

func PDFDocumentModificationDateAttribute() obj.Object

PDFDocumentModificationDateAttribute returns the string constant PDFDocumentModificationDateAttribute, for use as a dictionary key or argument.

func PDFDocumentOptimizeImagesForScreenOption

func PDFDocumentOptimizeImagesForScreenOption() obj.Object

PDFDocumentOptimizeImagesForScreenOption returns the string constant PDFDocumentOptimizeImagesForScreenOption, for use as a dictionary key or argument.

func PDFDocumentOwnerPasswordOption

func PDFDocumentOwnerPasswordOption() obj.Object

PDFDocumentOwnerPasswordOption returns the string constant PDFDocumentOwnerPasswordOption, for use as a dictionary key or argument.

func PDFDocumentPageIndexKey

func PDFDocumentPageIndexKey() obj.Object

PDFDocumentPageIndexKey returns the string constant PDFDocumentPageIndexKey, for use as a dictionary key or argument.

func PDFDocumentProducerAttribute

func PDFDocumentProducerAttribute() obj.Object

PDFDocumentProducerAttribute returns the string constant PDFDocumentProducerAttribute, for use as a dictionary key or argument.

func PDFDocumentSaveImagesAsJPEGOption

func PDFDocumentSaveImagesAsJPEGOption() obj.Object

PDFDocumentSaveImagesAsJPEGOption returns the string constant PDFDocumentSaveImagesAsJPEGOption, for use as a dictionary key or argument.

func PDFDocumentSaveTextFromOCROption

func PDFDocumentSaveTextFromOCROption() obj.Object

PDFDocumentSaveTextFromOCROption returns the string constant PDFDocumentSaveTextFromOCROption, for use as a dictionary key or argument.

func PDFDocumentSubjectAttribute

func PDFDocumentSubjectAttribute() obj.Object

PDFDocumentSubjectAttribute returns the string constant PDFDocumentSubjectAttribute, for use as a dictionary key or argument.

func PDFDocumentTitleAttribute

func PDFDocumentTitleAttribute() obj.Object

PDFDocumentTitleAttribute returns the string constant PDFDocumentTitleAttribute, for use as a dictionary key or argument.

func PDFDocumentUserPasswordOption

func PDFDocumentUserPasswordOption() obj.Object

PDFDocumentUserPasswordOption returns the string constant PDFDocumentUserPasswordOption, for use as a dictionary key or argument.

func PDFPageImageInitializationOptionCompressionQuality

func PDFPageImageInitializationOptionCompressionQuality() obj.Object

PDFPageImageInitializationOptionCompressionQuality returns the string constant PDFPageImageInitializationOptionCompressionQuality, for use as a dictionary key or argument.

func PDFPageImageInitializationOptionMediaBox

func PDFPageImageInitializationOptionMediaBox() obj.Object

PDFPageImageInitializationOptionMediaBox returns the string constant PDFPageImageInitializationOptionMediaBox, for use as a dictionary key or argument.

func PDFPageImageInitializationOptionRotation

func PDFPageImageInitializationOptionRotation() obj.Object

PDFPageImageInitializationOptionRotation returns the string constant PDFPageImageInitializationOptionRotation, for use as a dictionary key or argument.

func PDFPageImageInitializationOptionUpscaleIfSmaller

func PDFPageImageInitializationOptionUpscaleIfSmaller() obj.Object

PDFPageImageInitializationOptionUpscaleIfSmaller returns the string constant PDFPageImageInitializationOptionUpscaleIfSmaller, for use as a dictionary key or argument.

func PDFThumbnailViewDocumentEditedNotification

func PDFThumbnailViewDocumentEditedNotification() obj.Object

PDFThumbnailViewDocumentEditedNotification returns the string constant PDFThumbnailViewDocumentEditedNotification, for use as a dictionary key or argument.

func PDFViewAnnotationHitNotification

func PDFViewAnnotationHitNotification() uintptr

PDFViewAnnotationHitNotification returns the address of the symbol PDFViewAnnotationHitNotification.

func PDFViewAnnotationWillHitNotification

func PDFViewAnnotationWillHitNotification() uintptr

PDFViewAnnotationWillHitNotification returns the address of the symbol PDFViewAnnotationWillHitNotification.

func PDFViewChangedHistoryNotification

func PDFViewChangedHistoryNotification() uintptr

PDFViewChangedHistoryNotification returns the address of the symbol PDFViewChangedHistoryNotification.

func PDFViewCopyPermissionNotification

func PDFViewCopyPermissionNotification() uintptr

PDFViewCopyPermissionNotification returns the address of the symbol PDFViewCopyPermissionNotification.

func PDFViewDisplayBoxChangedNotification

func PDFViewDisplayBoxChangedNotification() uintptr

PDFViewDisplayBoxChangedNotification returns the address of the symbol PDFViewDisplayBoxChangedNotification.

func PDFViewDisplayModeChangedNotification

func PDFViewDisplayModeChangedNotification() uintptr

PDFViewDisplayModeChangedNotification returns the address of the symbol PDFViewDisplayModeChangedNotification.

func PDFViewDocumentChangedNotification

func PDFViewDocumentChangedNotification() uintptr

PDFViewDocumentChangedNotification returns the address of the symbol PDFViewDocumentChangedNotification.

func PDFViewPageChangedNotification

func PDFViewPageChangedNotification() uintptr

PDFViewPageChangedNotification returns the address of the symbol PDFViewPageChangedNotification.

func PDFViewPrintPermissionNotification

func PDFViewPrintPermissionNotification() uintptr

PDFViewPrintPermissionNotification returns the address of the symbol PDFViewPrintPermissionNotification.

func PDFViewScaleChangedNotification

func PDFViewScaleChangedNotification() uintptr

PDFViewScaleChangedNotification returns the address of the symbol PDFViewScaleChangedNotification.

func PDFViewSelectionChangedNotification

func PDFViewSelectionChangedNotification() uintptr

PDFViewSelectionChangedNotification returns the address of the symbol PDFViewSelectionChangedNotification.

func PDFViewVisiblePagesChangedNotification

func PDFViewVisiblePagesChangedNotification() uintptr

PDFViewVisiblePagesChangedNotification returns the address of the symbol PDFViewVisiblePagesChangedNotification.

Types

type AccessPermissions added in v0.17.0

type AccessPermissions uint64
const (
	AllowsLowQualityPrinting   AccessPermissions = 1
	AllowsHighQualityPrinting  AccessPermissions = 2
	AllowsDocumentChanges      AccessPermissions = 4
	AllowsDocumentAssembly     AccessPermissions = 8
	AllowsContentCopying       AccessPermissions = 16
	AllowsContentAccessibility AccessPermissions = 32
	AllowsCommenting           AccessPermissions = 64
	AllowsFormFieldEntry       AccessPermissions = 128
)

func (AccessPermissions) String added in v0.17.0

func (e AccessPermissions) String() string

String returns the AccessPermissions constant's name, or its numeric form when the value is not a known constant.

type Action added in v0.17.0

type Action struct {
	objref.Handle
}

Action is an idiomatic wrapper over the Objective-C class PDFAction.

Action is an abstract base — you do not construct it directly. Construct one of ActionGoTo, ActionNamed, ActionRemoteGoTo, ActionResetForm, ActionURL and pass it where a Action is accepted.

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

func ActionFromID added in v0.17.0

func ActionFromID(id objc.ID) *Action

ActionFromID adopts an existing Objective-C object as a Action (nil for 0), retaining it and registering a release finalizer.

func (*Action) Description added in v0.17.0

func (a *Action) Description() string

Description returns the object's -description text.

func (*Action) IsEqual added in v0.17.0

func (a *Action) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*Action) IsKind added in v0.17.0

func (a *Action) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*Action) String added in v0.17.0

func (a *Action) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*Action) Type added in v0.17.0

func (a *Action) Type() string

Type returns the type.

type ActionGoTo added in v0.17.0

type ActionGoTo struct {
	Action
}

ActionGoTo is an idiomatic wrapper over the Objective-C class PDFActionGoTo.

It embeds Action, promoting that type's methods.

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

func ActionGoToFromID added in v0.17.0

func ActionGoToFromID(id objc.ID) *ActionGoTo

ActionGoToFromID adopts an existing Objective-C object as a ActionGoTo (nil for 0), retaining it and registering a release finalizer.

func NewActionGoToWithDestination added in v0.17.0

func NewActionGoToWithDestination(destination *Destination) *ActionGoTo

NewActionGoToWithDestination initializes the go-to action.

func (*ActionGoTo) Destination added in v0.17.0

func (agt *ActionGoTo) Destination() *Destination

Destination returns the destination.

func (*ActionGoTo) WithDestination added in v0.17.0

func (agt *ActionGoTo) WithDestination(destination *Destination) *ActionGoTo

WithDestination sets returns the destination associated with the action.

type ActionNamed added in v0.17.0

type ActionNamed struct {
	Action
}

ActionNamed is an idiomatic wrapper over the Objective-C class PDFActionNamed.

It embeds Action, promoting that type's methods.

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

func ActionNamedFromID added in v0.17.0

func ActionNamedFromID(id objc.ID) *ActionNamed

ActionNamedFromID adopts an existing Objective-C object as a ActionNamed (nil for 0), retaining it and registering a release finalizer.

func NewActionNamedWithName added in v0.17.0

func NewActionNamedWithName(name ActionNamedName) *ActionNamed

NewActionNamedWithName initializes the PDFActionName object with the specified named action.

func (*ActionNamed) Name added in v0.17.0

func (an *ActionNamed) Name() ActionNamedName

Name returns the name.

func (*ActionNamed) WithName added in v0.17.0

func (an *ActionNamed) WithName(name ActionNamedName) *ActionNamed

WithName sets returns the name of the named action.

type ActionNamedName added in v0.17.0

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

func (ActionNamedName) String added in v0.17.0

func (e ActionNamedName) String() string

String returns the ActionNamedName constant's name, or its numeric form when the value is not a known constant.

type ActionProvider added in v0.17.0

type ActionProvider interface {
	objref.Object
	// contains filtered or unexported methods
}

ActionProvider is accepted wherever a PDFAction (or one of its subclasses) is expected.

type ActionRemoteGoTo added in v0.17.0

type ActionRemoteGoTo struct {
	Action
}

ActionRemoteGoTo is an idiomatic wrapper over the Objective-C class PDFActionRemoteGoTo.

It embeds Action, promoting that type's methods.

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

func ActionRemoteGoToFromID added in v0.17.0

func ActionRemoteGoToFromID(id objc.ID) *ActionRemoteGoTo

ActionRemoteGoToFromID adopts an existing Objective-C object as a ActionRemoteGoTo (nil for 0), retaining it and registering a release finalizer.

func NewActionRemoteGoToWithPageIndexAtPointFileURL added in v0.17.0

func NewActionRemoteGoToWithPageIndexAtPointFileURL(pageIndex int, point corefoundation.CGPoint, url string) *ActionRemoteGoTo

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

func (*ActionRemoteGoTo) PageIndex added in v0.17.0

func (argt *ActionRemoteGoTo) PageIndex() int

PageIndex returns the page index.

func (*ActionRemoteGoTo) Point added in v0.17.0

func (argt *ActionRemoteGoTo) Point() corefoundation.CGPoint

Point returns the point.

func (*ActionRemoteGoTo) URL added in v0.17.0

func (argt *ActionRemoteGoTo) URL() string

URL returns the URL.

func (*ActionRemoteGoTo) WithPageIndex added in v0.17.0

func (argt *ActionRemoteGoTo) WithPageIndex(pageIndex int) *ActionRemoteGoTo

WithPageIndex sets returns the zero-based page index referenced by the remote go-to action.

func (*ActionRemoteGoTo) WithPoint added in v0.17.0

func (argt *ActionRemoteGoTo) WithPoint(point corefoundation.CGPoint) *ActionRemoteGoTo

WithPoint sets sets the point, in page space, on the page referenced by the remote go-to action.

func (*ActionRemoteGoTo) WithURL added in v0.17.0

func (argt *ActionRemoteGoTo) WithURL(url string) *ActionRemoteGoTo

WithURL sets returns the URL of the document referenced by the remote go-to action.

type ActionResetForm added in v0.17.0

type ActionResetForm struct {
	Action
}

ActionResetForm is an idiomatic wrapper over the Objective-C class PDFActionResetForm.

It embeds Action, promoting that type's methods.

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

func ActionResetFormFromID added in v0.17.0

func ActionResetFormFromID(id objc.ID) *ActionResetForm

ActionResetFormFromID adopts an existing Objective-C object as a ActionResetForm (nil for 0), retaining it and registering a release finalizer.

func NewActionResetForm added in v0.17.0

func NewActionResetForm() *ActionResetForm

NewActionResetForm creates a new ActionResetForm.

func (*ActionResetForm) Fields added in v0.17.0

func (arf *ActionResetForm) Fields() []string

Fields returns the fields.

Fields returns the collection as a Go slice.

func (*ActionResetForm) FieldsIncludedAreCleared added in v0.17.0

func (arf *ActionResetForm) FieldsIncludedAreCleared() bool

FieldsIncludedAreCleared wraps the corresponding Objective-C method.

func (*ActionResetForm) WithFields added in v0.17.0

func (arf *ActionResetForm) WithFields(items ...obj.Object) *ActionResetForm

WithFields sets returns an array of fields associated with the reset action.

func (*ActionResetForm) WithFieldsIncludedAreCleared added in v0.17.0

func (arf *ActionResetForm) WithFieldsIncludedAreCleared(fieldsIncludedAreCleared bool) *ActionResetForm

WithFieldsIncludedAreCleared sets sets whether the fields associated with the reset action are cleared when the action is performed.

type ActionURL added in v0.17.0

type ActionURL struct {
	Action
}

ActionURL is an idiomatic wrapper over the Objective-C class PDFActionURL.

It embeds Action, promoting that type's methods.

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

func ActionURLFromID added in v0.17.0

func ActionURLFromID(id objc.ID) *ActionURL

ActionURLFromID adopts an existing Objective-C object as a ActionURL (nil for 0), retaining it and registering a release finalizer.

func NewActionURLWithURL added in v0.17.0

func NewActionURLWithURL(url string) *ActionURL

NewActionURLWithURL initializes a URL action with the specified URL.

func (*ActionURL) URL added in v0.17.0

func (au *ActionURL) URL() string

URL returns the URL.

func (*ActionURL) WithURL added in v0.17.0

func (au *ActionURL) WithURL(url string) *ActionURL

WithURL sets returns the URL associated with the URL action.

type Annotation added in v0.17.0

type Annotation struct {
	objref.Handle
}

Annotation is an idiomatic wrapper over the Objective-C class PDFAnnotation.

Annotation is an abstract base — you do not construct it directly. Construct one of AnnotationButtonWidget, AnnotationChoiceWidget, AnnotationCircle, AnnotationFreeText, AnnotationInk, AnnotationLine, AnnotationLink, AnnotationMarkup, AnnotationPopup, AnnotationSquare, AnnotationStamp, AnnotationTextWidget, AnnotationText and pass it where a Annotation is accepted.

An annotation in a PDF document.

func AnnotationFromID added in v0.17.0

func AnnotationFromID(id objc.ID) *Annotation

AnnotationFromID adopts an existing Objective-C object as a Annotation (nil for 0), retaining it and registering a release finalizer.

func NewAnnotationWithBounds added in v0.17.0

func NewAnnotationWithBounds(bounds corefoundation.CGRect) *Annotation

NewAnnotationWithBounds creates a new Annotation.

func NewAnnotationWithBoundsForTypeWithProperties added in v0.17.0

func NewAnnotationWithBoundsForTypeWithProperties(bounds corefoundation.CGRect, annotationType obj.Object, properties obj.Object) *Annotation

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

func NewAnnotationWithDictionaryForPage added in v0.17.0

func NewAnnotationWithDictionaryForPage(dictionary obj.Object, page *Page) *Annotation

NewAnnotationWithDictionaryForPage creates a new Annotation.

func (*Annotation) Action added in v0.18.0

func (a *Annotation) Action() unsafe.Pointer

Action returns the action.

func (*Annotation) AddBezierPath added in v0.17.0

func (a *Annotation) AddBezierPath(path obj.Object)

AddBezierPath adds a bezier path to the ink annotation.

func (*Annotation) AllowsToggleToOff added in v0.17.0

func (a *Annotation) AllowsToggleToOff() bool

AllowsToggleToOff wraps the corresponding Objective-C method.

func (*Annotation) AnnotationKeyValues added in v0.18.0

func (a *Annotation) AnnotationKeyValues() unsafe.Pointer

AnnotationKeyValues returns the annotation key values.

func (*Annotation) BackgroundColor added in v0.17.0

func (a *Annotation) BackgroundColor() obj.Object

BackgroundColor returns the background color.

func (*Annotation) Border added in v0.18.0

func (a *Annotation) Border() unsafe.Pointer

Border returns the border.

func (*Annotation) Bounds added in v0.17.0

func (a *Annotation) Bounds() corefoundation.CGRect

Bounds returns the bounds.

func (*Annotation) ButtonWidgetState added in v0.17.0

func (a *Annotation) ButtonWidgetState() WidgetCellState

ButtonWidgetState returns the button widget state.

func (*Annotation) ButtonWidgetStateString added in v0.17.0

func (a *Annotation) ButtonWidgetStateString() string

ButtonWidgetStateString returns the button widget state string.

func (*Annotation) Caption added in v0.17.0

func (a *Annotation) Caption() string

Caption returns the caption.

func (*Annotation) Choices added in v0.17.0

func (a *Annotation) Choices() []string

Choices returns the choices.

Choices returns the collection as a Go slice.

func (*Annotation) Color added in v0.18.0

func (a *Annotation) Color() unsafe.Pointer

Color returns the color.

func (*Annotation) Contents added in v0.18.0

func (a *Annotation) Contents() unsafe.Pointer

Contents returns the contents.

func (*Annotation) Description added in v0.17.0

func (a *Annotation) Description() string

Description returns the object's -description text.

func (*Annotation) Destination added in v0.17.0

func (a *Annotation) Destination() *Destination

Destination returns the destination.

func (*Annotation) DrawWithBox added in v0.17.0

func (a *Annotation) DrawWithBox(box DisplayBox)

DrawWithBox draws with box.

func (*Annotation) DrawWithBoxInContext added in v0.17.0

func (a *Annotation) DrawWithBoxInContext(box DisplayBox, context_ coregraphics.CGContextRef)

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

func (*Annotation) EndLineStyle added in v0.17.0

func (a *Annotation) EndLineStyle() LineStyle

EndLineStyle returns the end line style.

func (*Annotation) EndPoint added in v0.17.0

func (a *Annotation) EndPoint() corefoundation.CGPoint

EndPoint returns the end point.

func (*Annotation) FieldName added in v0.17.0

func (a *Annotation) FieldName() string

FieldName returns the field name.

func (*Annotation) Font added in v0.17.0

func (a *Annotation) Font() obj.Object

Font returns the font.

func (*Annotation) FontColor added in v0.17.0

func (a *Annotation) FontColor() obj.Object

FontColor returns the font color.

func (*Annotation) HasAppearanceStream added in v0.17.0

func (a *Annotation) HasAppearanceStream() bool

HasAppearanceStream reports whether the object has appearance stream.

func (*Annotation) HasComb added in v0.17.0

func (a *Annotation) HasComb() bool

HasComb reports whether the object has comb.

func (*Annotation) IconType added in v0.17.0

func (a *Annotation) IconType() TextAnnotationIconType

IconType returns the icon type.

func (*Annotation) InteriorColor added in v0.17.0

func (a *Annotation) InteriorColor() obj.Object

InteriorColor returns the interior color.

func (*Annotation) IsActivatableTextField added in v0.17.0

func (a *Annotation) IsActivatableTextField() bool

IsActivatableTextField reports whether the object is activatable text field.

func (*Annotation) IsEqual added in v0.17.0

func (a *Annotation) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*Annotation) IsHighlighted added in v0.17.0

func (a *Annotation) IsHighlighted() bool

IsHighlighted reports whether the object is highlighted.

func (*Annotation) IsKind added in v0.17.0

func (a *Annotation) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*Annotation) IsListChoice added in v0.17.0

func (a *Annotation) IsListChoice() bool

IsListChoice reports whether the object is list choice.

func (*Annotation) IsMultiline added in v0.17.0

func (a *Annotation) IsMultiline() bool

IsMultiline reports whether the object is multiline.

func (*Annotation) IsOpen added in v0.17.0

func (a *Annotation) IsOpen() bool

IsOpen reports whether the object is open.

func (*Annotation) IsPasswordField added in v0.17.0

func (a *Annotation) IsPasswordField() bool

IsPasswordField reports whether the object is password field.

func (*Annotation) IsReadOnly added in v0.17.0

func (a *Annotation) IsReadOnly() bool

IsReadOnly reports whether the object is read only.

func (*Annotation) MarkupType added in v0.17.0

func (a *Annotation) MarkupType() MarkupType

MarkupType returns the markup type.

func (*Annotation) MaximumLength added in v0.17.0

func (a *Annotation) MaximumLength() int

MaximumLength returns the maximum length.

func (*Annotation) ModificationDate added in v0.18.0

func (a *Annotation) ModificationDate() unsafe.Pointer

ModificationDate returns the modification date.

func (*Annotation) MouseUpAction added in v0.18.0

func (a *Annotation) MouseUpAction() unsafe.Pointer

MouseUpAction returns the mouse up action.

func (*Annotation) Page added in v0.17.0

func (a *Annotation) Page() *Page

Page returns the page.

func (*Annotation) Paths added in v0.17.0

func (a *Annotation) Paths() []obj.Object

Paths returns the paths.

Paths returns the collection as a Go slice.

func (*Annotation) Popup added in v0.18.0

func (a *Annotation) Popup() unsafe.Pointer

Popup returns the popup.

func (*Annotation) QuadrilateralPoints added in v0.17.0

func (a *Annotation) QuadrilateralPoints() []obj.Object

QuadrilateralPoints returns the quadrilateral points.

QuadrilateralPoints returns the collection as a Go slice.

func (*Annotation) RadiosInUnison added in v0.17.0

func (a *Annotation) RadiosInUnison() bool

RadiosInUnison wraps the corresponding Objective-C method.

func (*Annotation) RemoveAllAppearanceStreams added in v0.17.0

func (a *Annotation) RemoveAllAppearanceStreams()

RemoveAllAppearanceStreams removes all appearance streams.

func (*Annotation) RemoveBezierPath added in v0.17.0

func (a *Annotation) RemoveBezierPath(path obj.Object)

RemoveBezierPath removes a bezier path from an ink annotation.

func (*Annotation) RemoveValueForAnnotationKey added in v0.17.0

func (a *Annotation) RemoveValueForAnnotationKey(key obj.Object)

RemoveValueForAnnotationKey removes a value from the annotation’s dictionary.

func (*Annotation) SetBooleanForAnnotationKey added in v0.17.0

func (a *Annotation) SetBooleanForAnnotationKey(value bool, key obj.Object) bool

SetBooleanForAnnotationKey sets a Boolean value in the annotation’s dictionary.

func (*Annotation) SetRectForAnnotationKey added in v0.17.0

func (a *Annotation) SetRectForAnnotationKey(value corefoundation.CGRect, key obj.Object) bool

SetRectForAnnotationKey sets a rectangle value in the annotation’s dictionary.

func (*Annotation) SetValueForAnnotationKey added in v0.17.0

func (a *Annotation) SetValueForAnnotationKey(value obj.Object, key obj.Object) bool

SetValueForAnnotationKey sets a value in the annotation’s dictionary.

func (*Annotation) ShouldDisplay added in v0.17.0

func (a *Annotation) ShouldDisplay() bool

ShouldDisplay wraps the corresponding Objective-C method.

func (*Annotation) ShouldPrint added in v0.17.0

func (a *Annotation) ShouldPrint() bool

ShouldPrint wraps the corresponding Objective-C method.

func (*Annotation) StampName added in v0.17.0

func (a *Annotation) StampName() string

StampName returns the stamp name.

func (*Annotation) StartLineStyle added in v0.17.0

func (a *Annotation) StartLineStyle() LineStyle

StartLineStyle returns the start line style.

func (*Annotation) StartPoint added in v0.17.0

func (a *Annotation) StartPoint() corefoundation.CGPoint

StartPoint returns the start point.

func (*Annotation) String added in v0.17.0

func (a *Annotation) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*Annotation) ToolTip added in v0.18.0

func (a *Annotation) ToolTip() unsafe.Pointer

ToolTip returns the tool tip.

func (*Annotation) Type added in v0.17.0

func (a *Annotation) Type() string

Type returns the type.

func (*Annotation) URL added in v0.17.0

func (a *Annotation) URL() string

URL returns the URL.

func (*Annotation) UserName added in v0.18.0

func (a *Annotation) UserName() unsafe.Pointer

UserName returns the user name.

func (*Annotation) ValueForAnnotationKey added in v0.17.0

func (a *Annotation) ValueForAnnotationKey(key obj.Object) obj.Object

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

func (*Annotation) Values added in v0.17.0

func (a *Annotation) Values() []string

Values returns the values.

Values returns the collection as a Go slice.

func (*Annotation) WidgetControlType added in v0.17.0

func (a *Annotation) WidgetControlType() WidgetControlType

WidgetControlType returns the widget control type.

func (*Annotation) WidgetDefaultStringValue added in v0.17.0

func (a *Annotation) WidgetDefaultStringValue() string

WidgetDefaultStringValue returns the widget default string value.

func (*Annotation) WidgetFieldType added in v0.17.0

func (a *Annotation) WidgetFieldType() string

WidgetFieldType returns the widget field type.

func (*Annotation) WidgetStringValue added in v0.17.0

func (a *Annotation) WidgetStringValue() string

WidgetStringValue returns the widget string value.

func (*Annotation) WithAction added in v0.17.0

func (a *Annotation) WithAction(action unsafe.Pointer) *Annotation

WithAction sets an object that represents an action for a PDF element, such as a link annotation.

func (*Annotation) WithAllowsToggleToOff added in v0.17.0

func (a *Annotation) WithAllowsToggleToOff(allowsToggleToOff bool) *Annotation

WithAllowsToggleToOff sets a Boolean value that indicates whether clicking or tapping a selected radio button toggles it to an unselected state.

func (*Annotation) WithBackgroundColor added in v0.17.0

func (a *Annotation) WithBackgroundColor(backgroundColor obj.Object) *Annotation

WithBackgroundColor sets the color of the widget’s background.

func (*Annotation) WithBorder added in v0.17.0

func (a *Annotation) WithBorder(border unsafe.Pointer) *Annotation

WithBorder sets sets the border style for the annotation.

func (*Annotation) WithBounds added in v0.17.0

func (a *Annotation) WithBounds(bounds corefoundation.CGRect) *Annotation

WithBounds sets returns the bounding box for the annotation in page space.

func (*Annotation) WithButtonWidgetState added in v0.17.0

func (a *Annotation) WithButtonWidgetState(buttonWidgetState WidgetCellState) *Annotation

WithButtonWidgetState sets the current state of the button widget annotation.

func (*Annotation) WithButtonWidgetStateString added in v0.17.0

func (a *Annotation) WithButtonWidgetStateString(buttonWidgetStateString string) *Annotation

WithButtonWidgetStateString sets a string value that differentiates button widgets in the same group, such as to identify mutually exclusive radio buttons from each other.

func (*Annotation) WithCaption added in v0.17.0

func (a *Annotation) WithCaption(caption string) *Annotation

WithCaption sets the title of push button widget annotations.

func (*Annotation) WithChoices added in v0.17.0

func (a *Annotation) WithChoices(items ...obj.Object) *Annotation

WithChoices sets an array of strings that specifies the options in either a list or a pop-up menu.

func (*Annotation) WithColor added in v0.17.0

func (a *Annotation) WithColor(color unsafe.Pointer) *Annotation

WithColor sets sets the stroke color for the annotation.

func (*Annotation) WithComb added in v0.17.0

func (a *Annotation) WithComb(comb bool) *Annotation

WithComb sets a Boolean value that indicates whether the annotation divides the text widget’s bounds into equally spaced segments, such as in a form entry field.

func (*Annotation) WithContents added in v0.17.0

func (a *Annotation) WithContents(contents unsafe.Pointer) *Annotation

WithContents sets returns the textual content (if any) associated with the annotation.

func (*Annotation) WithDestination added in v0.17.0

func (a *Annotation) WithDestination(destination *Destination) *Annotation

WithDestination sets the destination for a link annotation.

func (*Annotation) WithEndLineStyle added in v0.17.0

func (a *Annotation) WithEndLineStyle(endLineStyle LineStyle) *Annotation

WithEndLineStyle sets the style of the line annotation’s ending point, such as square or filled arrowhead.

func (*Annotation) WithEndPoint added in v0.17.0

func (a *Annotation) WithEndPoint(endPoint corefoundation.CGPoint) *Annotation

WithEndPoint sets the point where a line ends, in annotation-space coordinates.

func (*Annotation) WithFieldName added in v0.17.0

func (a *Annotation) WithFieldName(fieldName string) *Annotation

WithFieldName sets the widget identifier for form annotation actions and behaviors.

func (*Annotation) WithFont added in v0.17.0

func (a *Annotation) WithFont(font obj.Object) *Annotation

WithFont sets the font the annotation uses to display text.

func (*Annotation) WithFontColor added in v0.17.0

func (a *Annotation) WithFontColor(fontColor obj.Object) *Annotation

WithFontColor sets the font color the annotation uses to display text.

func (*Annotation) WithHighlighted added in v0.17.0

func (a *Annotation) WithHighlighted(highlighted bool) *Annotation

WithHighlighted sets a Boolean value that indicates whether the annotation is in a highlighted state, such as when the mouse is down on a link annotation.

func (*Annotation) WithIconType added in v0.17.0

func (a *Annotation) WithIconType(iconType TextAnnotationIconType) *Annotation

WithIconType sets the type of icon to display for a pop-up text annotation.

func (*Annotation) WithInteriorColor added in v0.17.0

func (a *Annotation) WithInteriorColor(interiorColor obj.Object) *Annotation

WithInteriorColor sets the fill color for drawing a circle, line, or square annotation.

func (*Annotation) WithListChoice added in v0.17.0

func (a *Annotation) WithListChoice(listChoice bool) *Annotation

WithListChoice sets a Boolean value that indicates whether the choice widget annotation is a list or a pop-up menu.

func (*Annotation) WithMarkupType added in v0.17.0

func (a *Annotation) WithMarkupType(markupType MarkupType) *Annotation

WithMarkupType sets the markup type that the annotation displays, either highlight, strikethrough, underline, or redact.

func (*Annotation) WithMaximumLength added in v0.17.0

func (a *Annotation) WithMaximumLength(maximumLength int) *Annotation

WithMaximumLength sets the maximum number of characters the text widget annotation allows.

func (*Annotation) WithModificationDate added in v0.17.0

func (a *Annotation) WithModificationDate(modificationDate unsafe.Pointer) *Annotation

WithModificationDate sets returns the modification date of the annotation.

func (*Annotation) WithMouseUpAction added in v0.17.0

func (a *Annotation) WithMouseUpAction(mouseUpAction unsafe.Pointer) *Annotation

WithMouseUpAction sets the mouse up action.

func (*Annotation) WithMultiline added in v0.17.0

func (a *Annotation) WithMultiline(multiline bool) *Annotation

WithMultiline sets a Boolean value that indicates whether the text widget annotation displays multiple lines.

func (*Annotation) WithOpen added in v0.17.0

func (a *Annotation) WithOpen(open bool) *Annotation

WithOpen sets a Boolean value that indicates whether the pop-up annotation is in an opened state, displaying its text content, or in a closed state, displaying an icon.

func (*Annotation) WithPage added in v0.17.0

func (a *Annotation) WithPage(page *Page) *Annotation

WithPage sets returns the page that the annotation is associated with.

func (*Annotation) WithPopup added in v0.17.0

func (a *Annotation) WithPopup(popup unsafe.Pointer) *Annotation

WithPopup sets returns the pop-up annotation associated with an annotation.

func (*Annotation) WithQuadrilateralPoints added in v0.17.0

func (a *Annotation) WithQuadrilateralPoints(items ...obj.Object) *Annotation

WithQuadrilateralPoints sets an array of values that represents the points bounding the marked-up text.

func (*Annotation) WithRadiosInUnison added in v0.17.0

func (a *Annotation) WithRadiosInUnison(radiosInUnison bool) *Annotation

WithRadiosInUnison sets a Boolean value that indicates whether radio buttons in a group turn on and off in unison.

func (*Annotation) WithReadOnly added in v0.17.0

func (a *Annotation) WithReadOnly(readOnly bool) *Annotation

WithReadOnly sets a Boolean value that determines whether the widget is editable.

func (*Annotation) WithShouldDisplay added in v0.17.0

func (a *Annotation) WithShouldDisplay(shouldDisplay bool) *Annotation

WithShouldDisplay sets returns a Boolean value indicating whether the annotation should be displayed.

func (*Annotation) WithShouldPrint added in v0.17.0

func (a *Annotation) WithShouldPrint(shouldPrint bool) *Annotation

WithShouldPrint sets returns a Boolean value indicating whether the annotation should appear when the document is printed.

func (*Annotation) WithStampName added in v0.17.0

func (a *Annotation) WithStampName(stampName string) *Annotation

WithStampName sets the name of the stamp, a text or graphics annotation that emulates a rubber stamp effect.

func (*Annotation) WithStartLineStyle added in v0.17.0

func (a *Annotation) WithStartLineStyle(startLineStyle LineStyle) *Annotation

WithStartLineStyle sets the style of the line annotation’s starting point, such as square or filled arrowhead.

func (*Annotation) WithStartPoint added in v0.17.0

func (a *Annotation) WithStartPoint(startPoint corefoundation.CGPoint) *Annotation

WithStartPoint sets the point where a line begins, in annotation-space coordinates.

func (*Annotation) WithType added in v0.17.0

func (a *Annotation) WithType(type_ string) *Annotation

WithType sets returns the type of the annotation.

func (*Annotation) WithURL added in v0.17.0

func (a *Annotation) WithURL(url string) *Annotation

WithURL sets a URL for a link annotation.

func (*Annotation) WithUserName added in v0.17.0

func (a *Annotation) WithUserName(userName unsafe.Pointer) *Annotation

WithUserName sets returns the name of the user who created the annotation.

func (*Annotation) WithValues added in v0.17.0

func (a *Annotation) WithValues(items ...obj.Object) *Annotation

WithValues sets an array of strings that specifies the export values for items in a list or a pop-up menu.

func (*Annotation) WithWidgetControlType added in v0.17.0

func (a *Annotation) WithWidgetControlType(widgetControlType WidgetControlType) *Annotation

WithWidgetControlType sets the type of button widget control, either radio button, push button, or checkbox.

func (*Annotation) WithWidgetDefaultStringValue added in v0.17.0

func (a *Annotation) WithWidgetDefaultStringValue(widgetDefaultStringValue string) *Annotation

WithWidgetDefaultStringValue sets the string value that the widget reverts to when performing a reset form action.

func (*Annotation) WithWidgetFieldType added in v0.17.0

func (a *Annotation) WithWidgetFieldType(widgetFieldType obj.Object) *Annotation

WithWidgetFieldType sets the type of widget annotation, such as button, choice, or text.

func (*Annotation) WithWidgetStringValue added in v0.17.0

func (a *Annotation) WithWidgetStringValue(widgetStringValue string) *Annotation

WithWidgetStringValue sets the string value of the widget annotation.

type AnnotationButtonWidget added in v0.17.0

type AnnotationButtonWidget struct {
	Annotation
}

AnnotationButtonWidget is an idiomatic wrapper over the Objective-C class PDFAnnotationButtonWidget.

It embeds Annotation, promoting that type's methods.

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.

func AnnotationButtonWidgetFromID added in v0.17.0

func AnnotationButtonWidgetFromID(id objc.ID) *AnnotationButtonWidget

AnnotationButtonWidgetFromID adopts an existing Objective-C object as a AnnotationButtonWidget (nil for 0), retaining it and registering a release finalizer.

func NewAnnotationButtonWidget added in v0.17.0

func NewAnnotationButtonWidget() *AnnotationButtonWidget

NewAnnotationButtonWidget creates a new AnnotationButtonWidget.

func (*AnnotationButtonWidget) ControlType added in v0.17.0

func (abw *AnnotationButtonWidget) ControlType() WidgetControlType

ControlType returns the type of the control.

func (*AnnotationButtonWidget) OnStateValue added in v0.17.0

func (abw *AnnotationButtonWidget) OnStateValue() string

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

func (*AnnotationButtonWidget) SetControlType added in v0.17.0

func (abw *AnnotationButtonWidget) SetControlType(type_ WidgetControlType)

SetControlType sets the type of the control.

func (*AnnotationButtonWidget) SetOnStateValue added in v0.17.0

func (abw *AnnotationButtonWidget) SetOnStateValue(name string)

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

func (*AnnotationButtonWidget) SetState added in v0.17.0

func (abw *AnnotationButtonWidget) SetState(value int)

SetState sets the state of the control.

func (*AnnotationButtonWidget) State added in v0.17.0

func (abw *AnnotationButtonWidget) State() int

State returns the state of the control.

func (*AnnotationButtonWidget) WithAction added in v0.17.0

WithAction sets an object that represents an action for a PDF element, such as a link annotation.

func (*AnnotationButtonWidget) WithAllowsToggleToOff added in v0.17.0

func (abw *AnnotationButtonWidget) WithAllowsToggleToOff(allowsToggleToOff bool) *AnnotationButtonWidget

WithAllowsToggleToOff sets a Boolean value that indicates whether clicking or tapping a selected radio button toggles it to an unselected state.

func (*AnnotationButtonWidget) WithBackgroundColor added in v0.17.0

func (abw *AnnotationButtonWidget) WithBackgroundColor(backgroundColor obj.Object) *AnnotationButtonWidget

WithBackgroundColor sets the color of the widget’s background.

func (*AnnotationButtonWidget) WithBorder added in v0.17.0

WithBorder sets sets the border style for the annotation.

func (*AnnotationButtonWidget) WithBounds added in v0.17.0

WithBounds sets returns the bounding box for the annotation in page space.

func (*AnnotationButtonWidget) WithButtonWidgetState added in v0.17.0

func (abw *AnnotationButtonWidget) WithButtonWidgetState(buttonWidgetState WidgetCellState) *AnnotationButtonWidget

WithButtonWidgetState sets the current state of the button widget annotation.

func (*AnnotationButtonWidget) WithButtonWidgetStateString added in v0.17.0

func (abw *AnnotationButtonWidget) WithButtonWidgetStateString(buttonWidgetStateString string) *AnnotationButtonWidget

WithButtonWidgetStateString sets a string value that differentiates button widgets in the same group, such as to identify mutually exclusive radio buttons from each other.

func (*AnnotationButtonWidget) WithCaption added in v0.17.0

func (abw *AnnotationButtonWidget) WithCaption(caption string) *AnnotationButtonWidget

WithCaption sets the title of push button widget annotations.

func (*AnnotationButtonWidget) WithChoices added in v0.17.0

func (abw *AnnotationButtonWidget) WithChoices(items ...obj.Object) *AnnotationButtonWidget

WithChoices sets an array of strings that specifies the options in either a list or a pop-up menu.

func (*AnnotationButtonWidget) WithColor added in v0.17.0

WithColor sets sets the stroke color for the annotation.

func (*AnnotationButtonWidget) WithComb added in v0.17.0

func (abw *AnnotationButtonWidget) WithComb(comb bool) *AnnotationButtonWidget

WithComb sets a Boolean value that indicates whether the annotation divides the text widget’s bounds into equally spaced segments, such as in a form entry field.

func (*AnnotationButtonWidget) WithContents added in v0.17.0

func (abw *AnnotationButtonWidget) WithContents(contents unsafe.Pointer) *AnnotationButtonWidget

WithContents sets returns the textual content (if any) associated with the annotation.

func (*AnnotationButtonWidget) WithDestination added in v0.17.0

func (abw *AnnotationButtonWidget) WithDestination(destination *Destination) *AnnotationButtonWidget

WithDestination sets the destination for a link annotation.

func (*AnnotationButtonWidget) WithEndLineStyle added in v0.17.0

func (abw *AnnotationButtonWidget) WithEndLineStyle(endLineStyle LineStyle) *AnnotationButtonWidget

WithEndLineStyle sets the style of the line annotation’s ending point, such as square or filled arrowhead.

func (*AnnotationButtonWidget) WithEndPoint added in v0.17.0

WithEndPoint sets the point where a line ends, in annotation-space coordinates.

func (*AnnotationButtonWidget) WithFieldName added in v0.17.0

func (abw *AnnotationButtonWidget) WithFieldName(fieldName string) *AnnotationButtonWidget

WithFieldName sets the widget identifier for form annotation actions and behaviors.

func (*AnnotationButtonWidget) WithFont added in v0.17.0

WithFont sets the font the annotation uses to display text.

func (*AnnotationButtonWidget) WithFontColor added in v0.17.0

func (abw *AnnotationButtonWidget) WithFontColor(fontColor obj.Object) *AnnotationButtonWidget

WithFontColor sets the font color the annotation uses to display text.

func (*AnnotationButtonWidget) WithHighlighted added in v0.17.0

func (abw *AnnotationButtonWidget) WithHighlighted(highlighted bool) *AnnotationButtonWidget

WithHighlighted sets a Boolean value that indicates whether the annotation is in a highlighted state, such as when the mouse is down on a link annotation.

func (*AnnotationButtonWidget) WithIconType added in v0.17.0

WithIconType sets the type of icon to display for a pop-up text annotation.

func (*AnnotationButtonWidget) WithInteriorColor added in v0.17.0

func (abw *AnnotationButtonWidget) WithInteriorColor(interiorColor obj.Object) *AnnotationButtonWidget

WithInteriorColor sets the fill color for drawing a circle, line, or square annotation.

func (*AnnotationButtonWidget) WithListChoice added in v0.17.0

func (abw *AnnotationButtonWidget) WithListChoice(listChoice bool) *AnnotationButtonWidget

WithListChoice sets a Boolean value that indicates whether the choice widget annotation is a list or a pop-up menu.

func (*AnnotationButtonWidget) WithMarkupType added in v0.17.0

func (abw *AnnotationButtonWidget) WithMarkupType(markupType MarkupType) *AnnotationButtonWidget

WithMarkupType sets the markup type that the annotation displays, either highlight, strikethrough, underline, or redact.

func (*AnnotationButtonWidget) WithMaximumLength added in v0.17.0

func (abw *AnnotationButtonWidget) WithMaximumLength(maximumLength int) *AnnotationButtonWidget

WithMaximumLength sets the maximum number of characters the text widget annotation allows.

func (*AnnotationButtonWidget) WithModificationDate added in v0.17.0

func (abw *AnnotationButtonWidget) WithModificationDate(modificationDate unsafe.Pointer) *AnnotationButtonWidget

WithModificationDate sets returns the modification date of the annotation.

func (*AnnotationButtonWidget) WithMouseUpAction added in v0.17.0

func (abw *AnnotationButtonWidget) WithMouseUpAction(mouseUpAction unsafe.Pointer) *AnnotationButtonWidget

WithMouseUpAction sets the mouse up action.

func (*AnnotationButtonWidget) WithMultiline added in v0.17.0

func (abw *AnnotationButtonWidget) WithMultiline(multiline bool) *AnnotationButtonWidget

WithMultiline sets a Boolean value that indicates whether the text widget annotation displays multiple lines.

func (*AnnotationButtonWidget) WithOpen added in v0.17.0

func (abw *AnnotationButtonWidget) WithOpen(open bool) *AnnotationButtonWidget

WithOpen sets a Boolean value that indicates whether the pop-up annotation is in an opened state, displaying its text content, or in a closed state, displaying an icon.

func (*AnnotationButtonWidget) WithPage added in v0.17.0

func (abw *AnnotationButtonWidget) WithPage(page *Page) *AnnotationButtonWidget

WithPage sets returns the page that the annotation is associated with.

func (*AnnotationButtonWidget) WithPopup added in v0.17.0

WithPopup sets returns the pop-up annotation associated with an annotation.

func (*AnnotationButtonWidget) WithQuadrilateralPoints added in v0.17.0

func (abw *AnnotationButtonWidget) WithQuadrilateralPoints(items ...obj.Object) *AnnotationButtonWidget

WithQuadrilateralPoints sets an array of values that represents the points bounding the marked-up text.

func (*AnnotationButtonWidget) WithRadiosInUnison added in v0.17.0

func (abw *AnnotationButtonWidget) WithRadiosInUnison(radiosInUnison bool) *AnnotationButtonWidget

WithRadiosInUnison sets a Boolean value that indicates whether radio buttons in a group turn on and off in unison.

func (*AnnotationButtonWidget) WithReadOnly added in v0.17.0

func (abw *AnnotationButtonWidget) WithReadOnly(readOnly bool) *AnnotationButtonWidget

WithReadOnly sets a Boolean value that determines whether the widget is editable.

func (*AnnotationButtonWidget) WithShouldDisplay added in v0.17.0

func (abw *AnnotationButtonWidget) WithShouldDisplay(shouldDisplay bool) *AnnotationButtonWidget

WithShouldDisplay sets returns a Boolean value indicating whether the annotation should be displayed.

func (*AnnotationButtonWidget) WithShouldPrint added in v0.17.0

func (abw *AnnotationButtonWidget) WithShouldPrint(shouldPrint bool) *AnnotationButtonWidget

WithShouldPrint sets returns a Boolean value indicating whether the annotation should appear when the document is printed.

func (*AnnotationButtonWidget) WithStampName added in v0.17.0

func (abw *AnnotationButtonWidget) WithStampName(stampName string) *AnnotationButtonWidget

WithStampName sets the name of the stamp, a text or graphics annotation that emulates a rubber stamp effect.

func (*AnnotationButtonWidget) WithStartLineStyle added in v0.17.0

func (abw *AnnotationButtonWidget) WithStartLineStyle(startLineStyle LineStyle) *AnnotationButtonWidget

WithStartLineStyle sets the style of the line annotation’s starting point, such as square or filled arrowhead.

func (*AnnotationButtonWidget) WithStartPoint added in v0.17.0

func (abw *AnnotationButtonWidget) WithStartPoint(startPoint corefoundation.CGPoint) *AnnotationButtonWidget

WithStartPoint sets the point where a line begins, in annotation-space coordinates.

func (*AnnotationButtonWidget) WithType added in v0.17.0

WithType sets returns the type of the annotation.

func (*AnnotationButtonWidget) WithURL added in v0.17.0

WithURL sets a URL for a link annotation.

func (*AnnotationButtonWidget) WithUserName added in v0.17.0

func (abw *AnnotationButtonWidget) WithUserName(userName unsafe.Pointer) *AnnotationButtonWidget

WithUserName sets returns the name of the user who created the annotation.

func (*AnnotationButtonWidget) WithValues added in v0.17.0

func (abw *AnnotationButtonWidget) WithValues(items ...obj.Object) *AnnotationButtonWidget

WithValues sets an array of strings that specifies the export values for items in a list or a pop-up menu.

func (*AnnotationButtonWidget) WithWidgetControlType added in v0.17.0

func (abw *AnnotationButtonWidget) WithWidgetControlType(widgetControlType WidgetControlType) *AnnotationButtonWidget

WithWidgetControlType sets the type of button widget control, either radio button, push button, or checkbox.

func (*AnnotationButtonWidget) WithWidgetDefaultStringValue added in v0.17.0

func (abw *AnnotationButtonWidget) WithWidgetDefaultStringValue(widgetDefaultStringValue string) *AnnotationButtonWidget

WithWidgetDefaultStringValue sets the string value that the widget reverts to when performing a reset form action.

func (*AnnotationButtonWidget) WithWidgetFieldType added in v0.17.0

func (abw *AnnotationButtonWidget) WithWidgetFieldType(widgetFieldType obj.Object) *AnnotationButtonWidget

WithWidgetFieldType sets the type of widget annotation, such as button, choice, or text.

func (*AnnotationButtonWidget) WithWidgetStringValue added in v0.17.0

func (abw *AnnotationButtonWidget) WithWidgetStringValue(widgetStringValue string) *AnnotationButtonWidget

WithWidgetStringValue sets the string value of the widget annotation.

type AnnotationChoiceWidget added in v0.17.0

type AnnotationChoiceWidget struct {
	Annotation
}

AnnotationChoiceWidget is an idiomatic wrapper over the Objective-C class PDFAnnotationChoiceWidget.

It embeds Annotation, promoting that type's methods.

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

func AnnotationChoiceWidgetFromID added in v0.17.0

func AnnotationChoiceWidgetFromID(id objc.ID) *AnnotationChoiceWidget

AnnotationChoiceWidgetFromID adopts an existing Objective-C object as a AnnotationChoiceWidget (nil for 0), retaining it and registering a release finalizer.

func NewAnnotationChoiceWidget added in v0.17.0

func NewAnnotationChoiceWidget() *AnnotationChoiceWidget

NewAnnotationChoiceWidget creates a new AnnotationChoiceWidget.

func (*AnnotationChoiceWidget) SetIsListChoice added in v0.17.0

func (acw *AnnotationChoiceWidget) SetIsListChoice(isList bool)

SetIsListChoice sets whether the widget annotation is a list.

func (*AnnotationChoiceWidget) SetStringValue added in v0.17.0

func (acw *AnnotationChoiceWidget) SetStringValue(value string)

SetStringValue sets the selection in the widget annotation.

func (*AnnotationChoiceWidget) StringValue added in v0.17.0

func (acw *AnnotationChoiceWidget) StringValue() string

StringValue returns the selection in the widget annotation.

func (*AnnotationChoiceWidget) WithAction added in v0.17.0

WithAction sets an object that represents an action for a PDF element, such as a link annotation.

func (*AnnotationChoiceWidget) WithAllowsToggleToOff added in v0.17.0

func (acw *AnnotationChoiceWidget) WithAllowsToggleToOff(allowsToggleToOff bool) *AnnotationChoiceWidget

WithAllowsToggleToOff sets a Boolean value that indicates whether clicking or tapping a selected radio button toggles it to an unselected state.

func (*AnnotationChoiceWidget) WithBackgroundColor added in v0.17.0

func (acw *AnnotationChoiceWidget) WithBackgroundColor(backgroundColor obj.Object) *AnnotationChoiceWidget

WithBackgroundColor sets the color of the widget’s background.

func (*AnnotationChoiceWidget) WithBorder added in v0.17.0

WithBorder sets sets the border style for the annotation.

func (*AnnotationChoiceWidget) WithBounds added in v0.17.0

WithBounds sets returns the bounding box for the annotation in page space.

func (*AnnotationChoiceWidget) WithButtonWidgetState added in v0.17.0

func (acw *AnnotationChoiceWidget) WithButtonWidgetState(buttonWidgetState WidgetCellState) *AnnotationChoiceWidget

WithButtonWidgetState sets the current state of the button widget annotation.

func (*AnnotationChoiceWidget) WithButtonWidgetStateString added in v0.17.0

func (acw *AnnotationChoiceWidget) WithButtonWidgetStateString(buttonWidgetStateString string) *AnnotationChoiceWidget

WithButtonWidgetStateString sets a string value that differentiates button widgets in the same group, such as to identify mutually exclusive radio buttons from each other.

func (*AnnotationChoiceWidget) WithCaption added in v0.17.0

func (acw *AnnotationChoiceWidget) WithCaption(caption string) *AnnotationChoiceWidget

WithCaption sets the title of push button widget annotations.

func (*AnnotationChoiceWidget) WithChoices added in v0.17.0

func (acw *AnnotationChoiceWidget) WithChoices(items ...obj.Object) *AnnotationChoiceWidget

WithChoices sets an array of strings that specifies the options in either a list or a pop-up menu.

func (*AnnotationChoiceWidget) WithColor added in v0.17.0

WithColor sets sets the stroke color for the annotation.

func (*AnnotationChoiceWidget) WithComb added in v0.17.0

func (acw *AnnotationChoiceWidget) WithComb(comb bool) *AnnotationChoiceWidget

WithComb sets a Boolean value that indicates whether the annotation divides the text widget’s bounds into equally spaced segments, such as in a form entry field.

func (*AnnotationChoiceWidget) WithContents added in v0.17.0

func (acw *AnnotationChoiceWidget) WithContents(contents unsafe.Pointer) *AnnotationChoiceWidget

WithContents sets returns the textual content (if any) associated with the annotation.

func (*AnnotationChoiceWidget) WithDestination added in v0.17.0

func (acw *AnnotationChoiceWidget) WithDestination(destination *Destination) *AnnotationChoiceWidget

WithDestination sets the destination for a link annotation.

func (*AnnotationChoiceWidget) WithEndLineStyle added in v0.17.0

func (acw *AnnotationChoiceWidget) WithEndLineStyle(endLineStyle LineStyle) *AnnotationChoiceWidget

WithEndLineStyle sets the style of the line annotation’s ending point, such as square or filled arrowhead.

func (*AnnotationChoiceWidget) WithEndPoint added in v0.17.0

WithEndPoint sets the point where a line ends, in annotation-space coordinates.

func (*AnnotationChoiceWidget) WithFieldName added in v0.17.0

func (acw *AnnotationChoiceWidget) WithFieldName(fieldName string) *AnnotationChoiceWidget

WithFieldName sets the widget identifier for form annotation actions and behaviors.

func (*AnnotationChoiceWidget) WithFont added in v0.17.0

WithFont sets the font the annotation uses to display text.

func (*AnnotationChoiceWidget) WithFontColor added in v0.17.0

func (acw *AnnotationChoiceWidget) WithFontColor(fontColor obj.Object) *AnnotationChoiceWidget

WithFontColor sets the font color the annotation uses to display text.

func (*AnnotationChoiceWidget) WithHighlighted added in v0.17.0

func (acw *AnnotationChoiceWidget) WithHighlighted(highlighted bool) *AnnotationChoiceWidget

WithHighlighted sets a Boolean value that indicates whether the annotation is in a highlighted state, such as when the mouse is down on a link annotation.

func (*AnnotationChoiceWidget) WithIconType added in v0.17.0

WithIconType sets the type of icon to display for a pop-up text annotation.

func (*AnnotationChoiceWidget) WithInteriorColor added in v0.17.0

func (acw *AnnotationChoiceWidget) WithInteriorColor(interiorColor obj.Object) *AnnotationChoiceWidget

WithInteriorColor sets the fill color for drawing a circle, line, or square annotation.

func (*AnnotationChoiceWidget) WithListChoice added in v0.17.0

func (acw *AnnotationChoiceWidget) WithListChoice(listChoice bool) *AnnotationChoiceWidget

WithListChoice sets a Boolean value that indicates whether the choice widget annotation is a list or a pop-up menu.

func (*AnnotationChoiceWidget) WithMarkupType added in v0.17.0

func (acw *AnnotationChoiceWidget) WithMarkupType(markupType MarkupType) *AnnotationChoiceWidget

WithMarkupType sets the markup type that the annotation displays, either highlight, strikethrough, underline, or redact.

func (*AnnotationChoiceWidget) WithMaximumLength added in v0.17.0

func (acw *AnnotationChoiceWidget) WithMaximumLength(maximumLength int) *AnnotationChoiceWidget

WithMaximumLength sets the maximum number of characters the text widget annotation allows.

func (*AnnotationChoiceWidget) WithModificationDate added in v0.17.0

func (acw *AnnotationChoiceWidget) WithModificationDate(modificationDate unsafe.Pointer) *AnnotationChoiceWidget

WithModificationDate sets returns the modification date of the annotation.

func (*AnnotationChoiceWidget) WithMouseUpAction added in v0.17.0

func (acw *AnnotationChoiceWidget) WithMouseUpAction(mouseUpAction unsafe.Pointer) *AnnotationChoiceWidget

WithMouseUpAction sets the mouse up action.

func (*AnnotationChoiceWidget) WithMultiline added in v0.17.0

func (acw *AnnotationChoiceWidget) WithMultiline(multiline bool) *AnnotationChoiceWidget

WithMultiline sets a Boolean value that indicates whether the text widget annotation displays multiple lines.

func (*AnnotationChoiceWidget) WithOpen added in v0.17.0

func (acw *AnnotationChoiceWidget) WithOpen(open bool) *AnnotationChoiceWidget

WithOpen sets a Boolean value that indicates whether the pop-up annotation is in an opened state, displaying its text content, or in a closed state, displaying an icon.

func (*AnnotationChoiceWidget) WithPage added in v0.17.0

func (acw *AnnotationChoiceWidget) WithPage(page *Page) *AnnotationChoiceWidget

WithPage sets returns the page that the annotation is associated with.

func (*AnnotationChoiceWidget) WithPopup added in v0.17.0

WithPopup sets returns the pop-up annotation associated with an annotation.

func (*AnnotationChoiceWidget) WithQuadrilateralPoints added in v0.17.0

func (acw *AnnotationChoiceWidget) WithQuadrilateralPoints(items ...obj.Object) *AnnotationChoiceWidget

WithQuadrilateralPoints sets an array of values that represents the points bounding the marked-up text.

func (*AnnotationChoiceWidget) WithRadiosInUnison added in v0.17.0

func (acw *AnnotationChoiceWidget) WithRadiosInUnison(radiosInUnison bool) *AnnotationChoiceWidget

WithRadiosInUnison sets a Boolean value that indicates whether radio buttons in a group turn on and off in unison.

func (*AnnotationChoiceWidget) WithReadOnly added in v0.17.0

func (acw *AnnotationChoiceWidget) WithReadOnly(readOnly bool) *AnnotationChoiceWidget

WithReadOnly sets a Boolean value that determines whether the widget is editable.

func (*AnnotationChoiceWidget) WithShouldDisplay added in v0.17.0

func (acw *AnnotationChoiceWidget) WithShouldDisplay(shouldDisplay bool) *AnnotationChoiceWidget

WithShouldDisplay sets returns a Boolean value indicating whether the annotation should be displayed.

func (*AnnotationChoiceWidget) WithShouldPrint added in v0.17.0

func (acw *AnnotationChoiceWidget) WithShouldPrint(shouldPrint bool) *AnnotationChoiceWidget

WithShouldPrint sets returns a Boolean value indicating whether the annotation should appear when the document is printed.

func (*AnnotationChoiceWidget) WithStampName added in v0.17.0

func (acw *AnnotationChoiceWidget) WithStampName(stampName string) *AnnotationChoiceWidget

WithStampName sets the name of the stamp, a text or graphics annotation that emulates a rubber stamp effect.

func (*AnnotationChoiceWidget) WithStartLineStyle added in v0.17.0

func (acw *AnnotationChoiceWidget) WithStartLineStyle(startLineStyle LineStyle) *AnnotationChoiceWidget

WithStartLineStyle sets the style of the line annotation’s starting point, such as square or filled arrowhead.

func (*AnnotationChoiceWidget) WithStartPoint added in v0.17.0

func (acw *AnnotationChoiceWidget) WithStartPoint(startPoint corefoundation.CGPoint) *AnnotationChoiceWidget

WithStartPoint sets the point where a line begins, in annotation-space coordinates.

func (*AnnotationChoiceWidget) WithType added in v0.17.0

WithType sets returns the type of the annotation.

func (*AnnotationChoiceWidget) WithURL added in v0.17.0

WithURL sets a URL for a link annotation.

func (*AnnotationChoiceWidget) WithUserName added in v0.17.0

func (acw *AnnotationChoiceWidget) WithUserName(userName unsafe.Pointer) *AnnotationChoiceWidget

WithUserName sets returns the name of the user who created the annotation.

func (*AnnotationChoiceWidget) WithValues added in v0.17.0

func (acw *AnnotationChoiceWidget) WithValues(items ...obj.Object) *AnnotationChoiceWidget

WithValues sets an array of strings that specifies the export values for items in a list or a pop-up menu.

func (*AnnotationChoiceWidget) WithWidgetControlType added in v0.17.0

func (acw *AnnotationChoiceWidget) WithWidgetControlType(widgetControlType WidgetControlType) *AnnotationChoiceWidget

WithWidgetControlType sets the type of button widget control, either radio button, push button, or checkbox.

func (*AnnotationChoiceWidget) WithWidgetDefaultStringValue added in v0.17.0

func (acw *AnnotationChoiceWidget) WithWidgetDefaultStringValue(widgetDefaultStringValue string) *AnnotationChoiceWidget

WithWidgetDefaultStringValue sets the string value that the widget reverts to when performing a reset form action.

func (*AnnotationChoiceWidget) WithWidgetFieldType added in v0.17.0

func (acw *AnnotationChoiceWidget) WithWidgetFieldType(widgetFieldType obj.Object) *AnnotationChoiceWidget

WithWidgetFieldType sets the type of widget annotation, such as button, choice, or text.

func (*AnnotationChoiceWidget) WithWidgetStringValue added in v0.17.0

func (acw *AnnotationChoiceWidget) WithWidgetStringValue(widgetStringValue string) *AnnotationChoiceWidget

WithWidgetStringValue sets the string value of the widget annotation.

type AnnotationCircle added in v0.17.0

type AnnotationCircle struct {
	Annotation
}

AnnotationCircle is an idiomatic wrapper over the Objective-C class PDFAnnotationCircle.

It embeds Annotation, promoting that type's methods.

func AnnotationCircleFromID added in v0.17.0

func AnnotationCircleFromID(id objc.ID) *AnnotationCircle

AnnotationCircleFromID adopts an existing Objective-C object as a AnnotationCircle (nil for 0), retaining it and registering a release finalizer.

func NewAnnotationCircle added in v0.17.0

func NewAnnotationCircle() *AnnotationCircle

NewAnnotationCircle creates a new AnnotationCircle.

func (*AnnotationCircle) WithAction added in v0.17.0

func (ac *AnnotationCircle) WithAction(action unsafe.Pointer) *AnnotationCircle

WithAction sets an object that represents an action for a PDF element, such as a link annotation.

func (*AnnotationCircle) WithAllowsToggleToOff added in v0.17.0

func (ac *AnnotationCircle) WithAllowsToggleToOff(allowsToggleToOff bool) *AnnotationCircle

WithAllowsToggleToOff sets a Boolean value that indicates whether clicking or tapping a selected radio button toggles it to an unselected state.

func (*AnnotationCircle) WithBackgroundColor added in v0.17.0

func (ac *AnnotationCircle) WithBackgroundColor(backgroundColor obj.Object) *AnnotationCircle

WithBackgroundColor sets the color of the widget’s background.

func (*AnnotationCircle) WithBorder added in v0.17.0

func (ac *AnnotationCircle) WithBorder(border unsafe.Pointer) *AnnotationCircle

WithBorder sets sets the border style for the annotation.

func (*AnnotationCircle) WithBounds added in v0.17.0

func (ac *AnnotationCircle) WithBounds(bounds corefoundation.CGRect) *AnnotationCircle

WithBounds sets returns the bounding box for the annotation in page space.

func (*AnnotationCircle) WithButtonWidgetState added in v0.17.0

func (ac *AnnotationCircle) WithButtonWidgetState(buttonWidgetState WidgetCellState) *AnnotationCircle

WithButtonWidgetState sets the current state of the button widget annotation.

func (*AnnotationCircle) WithButtonWidgetStateString added in v0.17.0

func (ac *AnnotationCircle) WithButtonWidgetStateString(buttonWidgetStateString string) *AnnotationCircle

WithButtonWidgetStateString sets a string value that differentiates button widgets in the same group, such as to identify mutually exclusive radio buttons from each other.

func (*AnnotationCircle) WithCaption added in v0.17.0

func (ac *AnnotationCircle) WithCaption(caption string) *AnnotationCircle

WithCaption sets the title of push button widget annotations.

func (*AnnotationCircle) WithChoices added in v0.17.0

func (ac *AnnotationCircle) WithChoices(items ...obj.Object) *AnnotationCircle

WithChoices sets an array of strings that specifies the options in either a list or a pop-up menu.

func (*AnnotationCircle) WithColor added in v0.17.0

func (ac *AnnotationCircle) WithColor(color unsafe.Pointer) *AnnotationCircle

WithColor sets sets the stroke color for the annotation.

func (*AnnotationCircle) WithComb added in v0.17.0

func (ac *AnnotationCircle) WithComb(comb bool) *AnnotationCircle

WithComb sets a Boolean value that indicates whether the annotation divides the text widget’s bounds into equally spaced segments, such as in a form entry field.

func (*AnnotationCircle) WithContents added in v0.17.0

func (ac *AnnotationCircle) WithContents(contents unsafe.Pointer) *AnnotationCircle

WithContents sets returns the textual content (if any) associated with the annotation.

func (*AnnotationCircle) WithDestination added in v0.17.0

func (ac *AnnotationCircle) WithDestination(destination *Destination) *AnnotationCircle

WithDestination sets the destination for a link annotation.

func (*AnnotationCircle) WithEndLineStyle added in v0.17.0

func (ac *AnnotationCircle) WithEndLineStyle(endLineStyle LineStyle) *AnnotationCircle

WithEndLineStyle sets the style of the line annotation’s ending point, such as square or filled arrowhead.

func (*AnnotationCircle) WithEndPoint added in v0.17.0

func (ac *AnnotationCircle) WithEndPoint(endPoint corefoundation.CGPoint) *AnnotationCircle

WithEndPoint sets the point where a line ends, in annotation-space coordinates.

func (*AnnotationCircle) WithFieldName added in v0.17.0

func (ac *AnnotationCircle) WithFieldName(fieldName string) *AnnotationCircle

WithFieldName sets the widget identifier for form annotation actions and behaviors.

func (*AnnotationCircle) WithFont added in v0.17.0

func (ac *AnnotationCircle) WithFont(font obj.Object) *AnnotationCircle

WithFont sets the font the annotation uses to display text.

func (*AnnotationCircle) WithFontColor added in v0.17.0

func (ac *AnnotationCircle) WithFontColor(fontColor obj.Object) *AnnotationCircle

WithFontColor sets the font color the annotation uses to display text.

func (*AnnotationCircle) WithHighlighted added in v0.17.0

func (ac *AnnotationCircle) WithHighlighted(highlighted bool) *AnnotationCircle

WithHighlighted sets a Boolean value that indicates whether the annotation is in a highlighted state, such as when the mouse is down on a link annotation.

func (*AnnotationCircle) WithIconType added in v0.17.0

func (ac *AnnotationCircle) WithIconType(iconType TextAnnotationIconType) *AnnotationCircle

WithIconType sets the type of icon to display for a pop-up text annotation.

func (*AnnotationCircle) WithInteriorColor added in v0.17.0

func (ac *AnnotationCircle) WithInteriorColor(interiorColor obj.Object) *AnnotationCircle

WithInteriorColor sets the fill color for drawing a circle, line, or square annotation.

func (*AnnotationCircle) WithListChoice added in v0.17.0

func (ac *AnnotationCircle) WithListChoice(listChoice bool) *AnnotationCircle

WithListChoice sets a Boolean value that indicates whether the choice widget annotation is a list or a pop-up menu.

func (*AnnotationCircle) WithMarkupType added in v0.17.0

func (ac *AnnotationCircle) WithMarkupType(markupType MarkupType) *AnnotationCircle

WithMarkupType sets the markup type that the annotation displays, either highlight, strikethrough, underline, or redact.

func (*AnnotationCircle) WithMaximumLength added in v0.17.0

func (ac *AnnotationCircle) WithMaximumLength(maximumLength int) *AnnotationCircle

WithMaximumLength sets the maximum number of characters the text widget annotation allows.

func (*AnnotationCircle) WithModificationDate added in v0.17.0

func (ac *AnnotationCircle) WithModificationDate(modificationDate unsafe.Pointer) *AnnotationCircle

WithModificationDate sets returns the modification date of the annotation.

func (*AnnotationCircle) WithMouseUpAction added in v0.17.0

func (ac *AnnotationCircle) WithMouseUpAction(mouseUpAction unsafe.Pointer) *AnnotationCircle

WithMouseUpAction sets the mouse up action.

func (*AnnotationCircle) WithMultiline added in v0.17.0

func (ac *AnnotationCircle) WithMultiline(multiline bool) *AnnotationCircle

WithMultiline sets a Boolean value that indicates whether the text widget annotation displays multiple lines.

func (*AnnotationCircle) WithOpen added in v0.17.0

func (ac *AnnotationCircle) WithOpen(open bool) *AnnotationCircle

WithOpen sets a Boolean value that indicates whether the pop-up annotation is in an opened state, displaying its text content, or in a closed state, displaying an icon.

func (*AnnotationCircle) WithPage added in v0.17.0

func (ac *AnnotationCircle) WithPage(page *Page) *AnnotationCircle

WithPage sets returns the page that the annotation is associated with.

func (*AnnotationCircle) WithPopup added in v0.17.0

func (ac *AnnotationCircle) WithPopup(popup unsafe.Pointer) *AnnotationCircle

WithPopup sets returns the pop-up annotation associated with an annotation.

func (*AnnotationCircle) WithQuadrilateralPoints added in v0.17.0

func (ac *AnnotationCircle) WithQuadrilateralPoints(items ...obj.Object) *AnnotationCircle

WithQuadrilateralPoints sets an array of values that represents the points bounding the marked-up text.

func (*AnnotationCircle) WithRadiosInUnison added in v0.17.0

func (ac *AnnotationCircle) WithRadiosInUnison(radiosInUnison bool) *AnnotationCircle

WithRadiosInUnison sets a Boolean value that indicates whether radio buttons in a group turn on and off in unison.

func (*AnnotationCircle) WithReadOnly added in v0.17.0

func (ac *AnnotationCircle) WithReadOnly(readOnly bool) *AnnotationCircle

WithReadOnly sets a Boolean value that determines whether the widget is editable.

func (*AnnotationCircle) WithShouldDisplay added in v0.17.0

func (ac *AnnotationCircle) WithShouldDisplay(shouldDisplay bool) *AnnotationCircle

WithShouldDisplay sets returns a Boolean value indicating whether the annotation should be displayed.

func (*AnnotationCircle) WithShouldPrint added in v0.17.0

func (ac *AnnotationCircle) WithShouldPrint(shouldPrint bool) *AnnotationCircle

WithShouldPrint sets returns a Boolean value indicating whether the annotation should appear when the document is printed.

func (*AnnotationCircle) WithStampName added in v0.17.0

func (ac *AnnotationCircle) WithStampName(stampName string) *AnnotationCircle

WithStampName sets the name of the stamp, a text or graphics annotation that emulates a rubber stamp effect.

func (*AnnotationCircle) WithStartLineStyle added in v0.17.0

func (ac *AnnotationCircle) WithStartLineStyle(startLineStyle LineStyle) *AnnotationCircle

WithStartLineStyle sets the style of the line annotation’s starting point, such as square or filled arrowhead.

func (*AnnotationCircle) WithStartPoint added in v0.17.0

func (ac *AnnotationCircle) WithStartPoint(startPoint corefoundation.CGPoint) *AnnotationCircle

WithStartPoint sets the point where a line begins, in annotation-space coordinates.

func (*AnnotationCircle) WithType added in v0.17.0

func (ac *AnnotationCircle) WithType(type_ string) *AnnotationCircle

WithType sets returns the type of the annotation.

func (*AnnotationCircle) WithURL added in v0.17.0

func (ac *AnnotationCircle) WithURL(url string) *AnnotationCircle

WithURL sets a URL for a link annotation.

func (*AnnotationCircle) WithUserName added in v0.17.0

func (ac *AnnotationCircle) WithUserName(userName unsafe.Pointer) *AnnotationCircle

WithUserName sets returns the name of the user who created the annotation.

func (*AnnotationCircle) WithValues added in v0.17.0

func (ac *AnnotationCircle) WithValues(items ...obj.Object) *AnnotationCircle

WithValues sets an array of strings that specifies the export values for items in a list or a pop-up menu.

func (*AnnotationCircle) WithWidgetControlType added in v0.17.0

func (ac *AnnotationCircle) WithWidgetControlType(widgetControlType WidgetControlType) *AnnotationCircle

WithWidgetControlType sets the type of button widget control, either radio button, push button, or checkbox.

func (*AnnotationCircle) WithWidgetDefaultStringValue added in v0.17.0

func (ac *AnnotationCircle) WithWidgetDefaultStringValue(widgetDefaultStringValue string) *AnnotationCircle

WithWidgetDefaultStringValue sets the string value that the widget reverts to when performing a reset form action.

func (*AnnotationCircle) WithWidgetFieldType added in v0.17.0

func (ac *AnnotationCircle) WithWidgetFieldType(widgetFieldType obj.Object) *AnnotationCircle

WithWidgetFieldType sets the type of widget annotation, such as button, choice, or text.

func (*AnnotationCircle) WithWidgetStringValue added in v0.17.0

func (ac *AnnotationCircle) WithWidgetStringValue(widgetStringValue string) *AnnotationCircle

WithWidgetStringValue sets the string value of the widget annotation.

type AnnotationFreeText added in v0.17.0

type AnnotationFreeText struct {
	Annotation
}

AnnotationFreeText is an idiomatic wrapper over the Objective-C class PDFAnnotationFreeText.

It embeds Annotation, promoting that type's methods.

A PDFAnnotationFreeText object displays text on a page.

func AnnotationFreeTextFromID added in v0.17.0

func AnnotationFreeTextFromID(id objc.ID) *AnnotationFreeText

AnnotationFreeTextFromID adopts an existing Objective-C object as a AnnotationFreeText (nil for 0), retaining it and registering a release finalizer.

func NewAnnotationFreeText added in v0.17.0

func NewAnnotationFreeText() *AnnotationFreeText

NewAnnotationFreeText creates a new AnnotationFreeText.

func (*AnnotationFreeText) WithAction added in v0.17.0

func (aft *AnnotationFreeText) WithAction(action unsafe.Pointer) *AnnotationFreeText

WithAction sets an object that represents an action for a PDF element, such as a link annotation.

func (*AnnotationFreeText) WithAllowsToggleToOff added in v0.17.0

func (aft *AnnotationFreeText) WithAllowsToggleToOff(allowsToggleToOff bool) *AnnotationFreeText

WithAllowsToggleToOff sets a Boolean value that indicates whether clicking or tapping a selected radio button toggles it to an unselected state.

func (*AnnotationFreeText) WithBackgroundColor added in v0.17.0

func (aft *AnnotationFreeText) WithBackgroundColor(backgroundColor obj.Object) *AnnotationFreeText

WithBackgroundColor sets the color of the widget’s background.

func (*AnnotationFreeText) WithBorder added in v0.17.0

func (aft *AnnotationFreeText) WithBorder(border unsafe.Pointer) *AnnotationFreeText

WithBorder sets sets the border style for the annotation.

func (*AnnotationFreeText) WithBounds added in v0.17.0

WithBounds sets returns the bounding box for the annotation in page space.

func (*AnnotationFreeText) WithButtonWidgetState added in v0.17.0

func (aft *AnnotationFreeText) WithButtonWidgetState(buttonWidgetState WidgetCellState) *AnnotationFreeText

WithButtonWidgetState sets the current state of the button widget annotation.

func (*AnnotationFreeText) WithButtonWidgetStateString added in v0.17.0

func (aft *AnnotationFreeText) WithButtonWidgetStateString(buttonWidgetStateString string) *AnnotationFreeText

WithButtonWidgetStateString sets a string value that differentiates button widgets in the same group, such as to identify mutually exclusive radio buttons from each other.

func (*AnnotationFreeText) WithCaption added in v0.17.0

func (aft *AnnotationFreeText) WithCaption(caption string) *AnnotationFreeText

WithCaption sets the title of push button widget annotations.

func (*AnnotationFreeText) WithChoices added in v0.17.0

func (aft *AnnotationFreeText) WithChoices(items ...obj.Object) *AnnotationFreeText

WithChoices sets an array of strings that specifies the options in either a list or a pop-up menu.

func (*AnnotationFreeText) WithColor added in v0.17.0

func (aft *AnnotationFreeText) WithColor(color unsafe.Pointer) *AnnotationFreeText

WithColor sets sets the stroke color for the annotation.

func (*AnnotationFreeText) WithComb added in v0.17.0

func (aft *AnnotationFreeText) WithComb(comb bool) *AnnotationFreeText

WithComb sets a Boolean value that indicates whether the annotation divides the text widget’s bounds into equally spaced segments, such as in a form entry field.

func (*AnnotationFreeText) WithContents added in v0.17.0

func (aft *AnnotationFreeText) WithContents(contents unsafe.Pointer) *AnnotationFreeText

WithContents sets returns the textual content (if any) associated with the annotation.

func (*AnnotationFreeText) WithDestination added in v0.17.0

func (aft *AnnotationFreeText) WithDestination(destination *Destination) *AnnotationFreeText

WithDestination sets the destination for a link annotation.

func (*AnnotationFreeText) WithEndLineStyle added in v0.17.0

func (aft *AnnotationFreeText) WithEndLineStyle(endLineStyle LineStyle) *AnnotationFreeText

WithEndLineStyle sets the style of the line annotation’s ending point, such as square or filled arrowhead.

func (*AnnotationFreeText) WithEndPoint added in v0.17.0

func (aft *AnnotationFreeText) WithEndPoint(endPoint corefoundation.CGPoint) *AnnotationFreeText

WithEndPoint sets the point where a line ends, in annotation-space coordinates.

func (*AnnotationFreeText) WithFieldName added in v0.17.0

func (aft *AnnotationFreeText) WithFieldName(fieldName string) *AnnotationFreeText

WithFieldName sets the widget identifier for form annotation actions and behaviors.

func (*AnnotationFreeText) WithFont added in v0.17.0

func (aft *AnnotationFreeText) WithFont(font obj.Object) *AnnotationFreeText

WithFont sets the font the annotation uses to display text.

func (*AnnotationFreeText) WithFontColor added in v0.17.0

func (aft *AnnotationFreeText) WithFontColor(fontColor obj.Object) *AnnotationFreeText

WithFontColor sets the font color the annotation uses to display text.

func (*AnnotationFreeText) WithHighlighted added in v0.17.0

func (aft *AnnotationFreeText) WithHighlighted(highlighted bool) *AnnotationFreeText

WithHighlighted sets a Boolean value that indicates whether the annotation is in a highlighted state, such as when the mouse is down on a link annotation.

func (*AnnotationFreeText) WithIconType added in v0.17.0

func (aft *AnnotationFreeText) WithIconType(iconType TextAnnotationIconType) *AnnotationFreeText

WithIconType sets the type of icon to display for a pop-up text annotation.

func (*AnnotationFreeText) WithInteriorColor added in v0.17.0

func (aft *AnnotationFreeText) WithInteriorColor(interiorColor obj.Object) *AnnotationFreeText

WithInteriorColor sets the fill color for drawing a circle, line, or square annotation.

func (*AnnotationFreeText) WithListChoice added in v0.17.0

func (aft *AnnotationFreeText) WithListChoice(listChoice bool) *AnnotationFreeText

WithListChoice sets a Boolean value that indicates whether the choice widget annotation is a list or a pop-up menu.

func (*AnnotationFreeText) WithMarkupType added in v0.17.0

func (aft *AnnotationFreeText) WithMarkupType(markupType MarkupType) *AnnotationFreeText

WithMarkupType sets the markup type that the annotation displays, either highlight, strikethrough, underline, or redact.

func (*AnnotationFreeText) WithMaximumLength added in v0.17.0

func (aft *AnnotationFreeText) WithMaximumLength(maximumLength int) *AnnotationFreeText

WithMaximumLength sets the maximum number of characters the text widget annotation allows.

func (*AnnotationFreeText) WithModificationDate added in v0.17.0

func (aft *AnnotationFreeText) WithModificationDate(modificationDate unsafe.Pointer) *AnnotationFreeText

WithModificationDate sets returns the modification date of the annotation.

func (*AnnotationFreeText) WithMouseUpAction added in v0.17.0

func (aft *AnnotationFreeText) WithMouseUpAction(mouseUpAction unsafe.Pointer) *AnnotationFreeText

WithMouseUpAction sets the mouse up action.

func (*AnnotationFreeText) WithMultiline added in v0.17.0

func (aft *AnnotationFreeText) WithMultiline(multiline bool) *AnnotationFreeText

WithMultiline sets a Boolean value that indicates whether the text widget annotation displays multiple lines.

func (*AnnotationFreeText) WithOpen added in v0.17.0

func (aft *AnnotationFreeText) WithOpen(open bool) *AnnotationFreeText

WithOpen sets a Boolean value that indicates whether the pop-up annotation is in an opened state, displaying its text content, or in a closed state, displaying an icon.

func (*AnnotationFreeText) WithPage added in v0.17.0

func (aft *AnnotationFreeText) WithPage(page *Page) *AnnotationFreeText

WithPage sets returns the page that the annotation is associated with.

func (*AnnotationFreeText) WithPopup added in v0.17.0

func (aft *AnnotationFreeText) WithPopup(popup unsafe.Pointer) *AnnotationFreeText

WithPopup sets returns the pop-up annotation associated with an annotation.

func (*AnnotationFreeText) WithQuadrilateralPoints added in v0.17.0

func (aft *AnnotationFreeText) WithQuadrilateralPoints(items ...obj.Object) *AnnotationFreeText

WithQuadrilateralPoints sets an array of values that represents the points bounding the marked-up text.

func (*AnnotationFreeText) WithRadiosInUnison added in v0.17.0

func (aft *AnnotationFreeText) WithRadiosInUnison(radiosInUnison bool) *AnnotationFreeText

WithRadiosInUnison sets a Boolean value that indicates whether radio buttons in a group turn on and off in unison.

func (*AnnotationFreeText) WithReadOnly added in v0.17.0

func (aft *AnnotationFreeText) WithReadOnly(readOnly bool) *AnnotationFreeText

WithReadOnly sets a Boolean value that determines whether the widget is editable.

func (*AnnotationFreeText) WithShouldDisplay added in v0.17.0

func (aft *AnnotationFreeText) WithShouldDisplay(shouldDisplay bool) *AnnotationFreeText

WithShouldDisplay sets returns a Boolean value indicating whether the annotation should be displayed.

func (*AnnotationFreeText) WithShouldPrint added in v0.17.0

func (aft *AnnotationFreeText) WithShouldPrint(shouldPrint bool) *AnnotationFreeText

WithShouldPrint sets returns a Boolean value indicating whether the annotation should appear when the document is printed.

func (*AnnotationFreeText) WithStampName added in v0.17.0

func (aft *AnnotationFreeText) WithStampName(stampName string) *AnnotationFreeText

WithStampName sets the name of the stamp, a text or graphics annotation that emulates a rubber stamp effect.

func (*AnnotationFreeText) WithStartLineStyle added in v0.17.0

func (aft *AnnotationFreeText) WithStartLineStyle(startLineStyle LineStyle) *AnnotationFreeText

WithStartLineStyle sets the style of the line annotation’s starting point, such as square or filled arrowhead.

func (*AnnotationFreeText) WithStartPoint added in v0.17.0

func (aft *AnnotationFreeText) WithStartPoint(startPoint corefoundation.CGPoint) *AnnotationFreeText

WithStartPoint sets the point where a line begins, in annotation-space coordinates.

func (*AnnotationFreeText) WithType added in v0.17.0

func (aft *AnnotationFreeText) WithType(type_ string) *AnnotationFreeText

WithType sets returns the type of the annotation.

func (*AnnotationFreeText) WithURL added in v0.17.0

func (aft *AnnotationFreeText) WithURL(url string) *AnnotationFreeText

WithURL sets a URL for a link annotation.

func (*AnnotationFreeText) WithUserName added in v0.17.0

func (aft *AnnotationFreeText) WithUserName(userName unsafe.Pointer) *AnnotationFreeText

WithUserName sets returns the name of the user who created the annotation.

func (*AnnotationFreeText) WithValues added in v0.17.0

func (aft *AnnotationFreeText) WithValues(items ...obj.Object) *AnnotationFreeText

WithValues sets an array of strings that specifies the export values for items in a list or a pop-up menu.

func (*AnnotationFreeText) WithWidgetControlType added in v0.17.0

func (aft *AnnotationFreeText) WithWidgetControlType(widgetControlType WidgetControlType) *AnnotationFreeText

WithWidgetControlType sets the type of button widget control, either radio button, push button, or checkbox.

func (*AnnotationFreeText) WithWidgetDefaultStringValue added in v0.17.0

func (aft *AnnotationFreeText) WithWidgetDefaultStringValue(widgetDefaultStringValue string) *AnnotationFreeText

WithWidgetDefaultStringValue sets the string value that the widget reverts to when performing a reset form action.

func (*AnnotationFreeText) WithWidgetFieldType added in v0.17.0

func (aft *AnnotationFreeText) WithWidgetFieldType(widgetFieldType obj.Object) *AnnotationFreeText

WithWidgetFieldType sets the type of widget annotation, such as button, choice, or text.

func (*AnnotationFreeText) WithWidgetStringValue added in v0.17.0

func (aft *AnnotationFreeText) WithWidgetStringValue(widgetStringValue string) *AnnotationFreeText

WithWidgetStringValue sets the string value of the widget annotation.

type AnnotationInk added in v0.17.0

type AnnotationInk struct {
	Annotation
}

AnnotationInk is an idiomatic wrapper over the Objective-C class PDFAnnotationInk.

It embeds Annotation, promoting that type's methods.

func AnnotationInkFromID added in v0.17.0

func AnnotationInkFromID(id objc.ID) *AnnotationInk

AnnotationInkFromID adopts an existing Objective-C object as a AnnotationInk (nil for 0), retaining it and registering a release finalizer.

func NewAnnotationInk added in v0.17.0

func NewAnnotationInk() *AnnotationInk

NewAnnotationInk creates a new AnnotationInk.

func (*AnnotationInk) WithAction added in v0.17.0

func (ai *AnnotationInk) WithAction(action unsafe.Pointer) *AnnotationInk

WithAction sets an object that represents an action for a PDF element, such as a link annotation.

func (*AnnotationInk) WithAllowsToggleToOff added in v0.17.0

func (ai *AnnotationInk) WithAllowsToggleToOff(allowsToggleToOff bool) *AnnotationInk

WithAllowsToggleToOff sets a Boolean value that indicates whether clicking or tapping a selected radio button toggles it to an unselected state.

func (*AnnotationInk) WithBackgroundColor added in v0.17.0

func (ai *AnnotationInk) WithBackgroundColor(backgroundColor obj.Object) *AnnotationInk

WithBackgroundColor sets the color of the widget’s background.

func (*AnnotationInk) WithBorder added in v0.17.0

func (ai *AnnotationInk) WithBorder(border unsafe.Pointer) *AnnotationInk

WithBorder sets sets the border style for the annotation.

func (*AnnotationInk) WithBounds added in v0.17.0

func (ai *AnnotationInk) WithBounds(bounds corefoundation.CGRect) *AnnotationInk

WithBounds sets returns the bounding box for the annotation in page space.

func (*AnnotationInk) WithButtonWidgetState added in v0.17.0

func (ai *AnnotationInk) WithButtonWidgetState(buttonWidgetState WidgetCellState) *AnnotationInk

WithButtonWidgetState sets the current state of the button widget annotation.

func (*AnnotationInk) WithButtonWidgetStateString added in v0.17.0

func (ai *AnnotationInk) WithButtonWidgetStateString(buttonWidgetStateString string) *AnnotationInk

WithButtonWidgetStateString sets a string value that differentiates button widgets in the same group, such as to identify mutually exclusive radio buttons from each other.

func (*AnnotationInk) WithCaption added in v0.17.0

func (ai *AnnotationInk) WithCaption(caption string) *AnnotationInk

WithCaption sets the title of push button widget annotations.

func (*AnnotationInk) WithChoices added in v0.17.0

func (ai *AnnotationInk) WithChoices(items ...obj.Object) *AnnotationInk

WithChoices sets an array of strings that specifies the options in either a list or a pop-up menu.

func (*AnnotationInk) WithColor added in v0.17.0

func (ai *AnnotationInk) WithColor(color unsafe.Pointer) *AnnotationInk

WithColor sets sets the stroke color for the annotation.

func (*AnnotationInk) WithComb added in v0.17.0

func (ai *AnnotationInk) WithComb(comb bool) *AnnotationInk

WithComb sets a Boolean value that indicates whether the annotation divides the text widget’s bounds into equally spaced segments, such as in a form entry field.

func (*AnnotationInk) WithContents added in v0.17.0

func (ai *AnnotationInk) WithContents(contents unsafe.Pointer) *AnnotationInk

WithContents sets returns the textual content (if any) associated with the annotation.

func (*AnnotationInk) WithDestination added in v0.17.0

func (ai *AnnotationInk) WithDestination(destination *Destination) *AnnotationInk

WithDestination sets the destination for a link annotation.

func (*AnnotationInk) WithEndLineStyle added in v0.17.0

func (ai *AnnotationInk) WithEndLineStyle(endLineStyle LineStyle) *AnnotationInk

WithEndLineStyle sets the style of the line annotation’s ending point, such as square or filled arrowhead.

func (*AnnotationInk) WithEndPoint added in v0.17.0

func (ai *AnnotationInk) WithEndPoint(endPoint corefoundation.CGPoint) *AnnotationInk

WithEndPoint sets the point where a line ends, in annotation-space coordinates.

func (*AnnotationInk) WithFieldName added in v0.17.0

func (ai *AnnotationInk) WithFieldName(fieldName string) *AnnotationInk

WithFieldName sets the widget identifier for form annotation actions and behaviors.

func (*AnnotationInk) WithFont added in v0.17.0

func (ai *AnnotationInk) WithFont(font obj.Object) *AnnotationInk

WithFont sets the font the annotation uses to display text.

func (*AnnotationInk) WithFontColor added in v0.17.0

func (ai *AnnotationInk) WithFontColor(fontColor obj.Object) *AnnotationInk

WithFontColor sets the font color the annotation uses to display text.

func (*AnnotationInk) WithHighlighted added in v0.17.0

func (ai *AnnotationInk) WithHighlighted(highlighted bool) *AnnotationInk

WithHighlighted sets a Boolean value that indicates whether the annotation is in a highlighted state, such as when the mouse is down on a link annotation.

func (*AnnotationInk) WithIconType added in v0.17.0

func (ai *AnnotationInk) WithIconType(iconType TextAnnotationIconType) *AnnotationInk

WithIconType sets the type of icon to display for a pop-up text annotation.

func (*AnnotationInk) WithInteriorColor added in v0.17.0

func (ai *AnnotationInk) WithInteriorColor(interiorColor obj.Object) *AnnotationInk

WithInteriorColor sets the fill color for drawing a circle, line, or square annotation.

func (*AnnotationInk) WithListChoice added in v0.17.0

func (ai *AnnotationInk) WithListChoice(listChoice bool) *AnnotationInk

WithListChoice sets a Boolean value that indicates whether the choice widget annotation is a list or a pop-up menu.

func (*AnnotationInk) WithMarkupType added in v0.17.0

func (ai *AnnotationInk) WithMarkupType(markupType MarkupType) *AnnotationInk

WithMarkupType sets the markup type that the annotation displays, either highlight, strikethrough, underline, or redact.

func (*AnnotationInk) WithMaximumLength added in v0.17.0

func (ai *AnnotationInk) WithMaximumLength(maximumLength int) *AnnotationInk

WithMaximumLength sets the maximum number of characters the text widget annotation allows.

func (*AnnotationInk) WithModificationDate added in v0.17.0

func (ai *AnnotationInk) WithModificationDate(modificationDate unsafe.Pointer) *AnnotationInk

WithModificationDate sets returns the modification date of the annotation.

func (*AnnotationInk) WithMouseUpAction added in v0.17.0

func (ai *AnnotationInk) WithMouseUpAction(mouseUpAction unsafe.Pointer) *AnnotationInk

WithMouseUpAction sets the mouse up action.

func (*AnnotationInk) WithMultiline added in v0.17.0

func (ai *AnnotationInk) WithMultiline(multiline bool) *AnnotationInk

WithMultiline sets a Boolean value that indicates whether the text widget annotation displays multiple lines.

func (*AnnotationInk) WithOpen added in v0.17.0

func (ai *AnnotationInk) WithOpen(open bool) *AnnotationInk

WithOpen sets a Boolean value that indicates whether the pop-up annotation is in an opened state, displaying its text content, or in a closed state, displaying an icon.

func (*AnnotationInk) WithPage added in v0.17.0

func (ai *AnnotationInk) WithPage(page *Page) *AnnotationInk

WithPage sets returns the page that the annotation is associated with.

func (*AnnotationInk) WithPopup added in v0.17.0

func (ai *AnnotationInk) WithPopup(popup unsafe.Pointer) *AnnotationInk

WithPopup sets returns the pop-up annotation associated with an annotation.

func (*AnnotationInk) WithQuadrilateralPoints added in v0.17.0

func (ai *AnnotationInk) WithQuadrilateralPoints(items ...obj.Object) *AnnotationInk

WithQuadrilateralPoints sets an array of values that represents the points bounding the marked-up text.

func (*AnnotationInk) WithRadiosInUnison added in v0.17.0

func (ai *AnnotationInk) WithRadiosInUnison(radiosInUnison bool) *AnnotationInk

WithRadiosInUnison sets a Boolean value that indicates whether radio buttons in a group turn on and off in unison.

func (*AnnotationInk) WithReadOnly added in v0.17.0

func (ai *AnnotationInk) WithReadOnly(readOnly bool) *AnnotationInk

WithReadOnly sets a Boolean value that determines whether the widget is editable.

func (*AnnotationInk) WithShouldDisplay added in v0.17.0

func (ai *AnnotationInk) WithShouldDisplay(shouldDisplay bool) *AnnotationInk

WithShouldDisplay sets returns a Boolean value indicating whether the annotation should be displayed.

func (*AnnotationInk) WithShouldPrint added in v0.17.0

func (ai *AnnotationInk) WithShouldPrint(shouldPrint bool) *AnnotationInk

WithShouldPrint sets returns a Boolean value indicating whether the annotation should appear when the document is printed.

func (*AnnotationInk) WithStampName added in v0.17.0

func (ai *AnnotationInk) WithStampName(stampName string) *AnnotationInk

WithStampName sets the name of the stamp, a text or graphics annotation that emulates a rubber stamp effect.

func (*AnnotationInk) WithStartLineStyle added in v0.17.0

func (ai *AnnotationInk) WithStartLineStyle(startLineStyle LineStyle) *AnnotationInk

WithStartLineStyle sets the style of the line annotation’s starting point, such as square or filled arrowhead.

func (*AnnotationInk) WithStartPoint added in v0.17.0

func (ai *AnnotationInk) WithStartPoint(startPoint corefoundation.CGPoint) *AnnotationInk

WithStartPoint sets the point where a line begins, in annotation-space coordinates.

func (*AnnotationInk) WithType added in v0.17.0

func (ai *AnnotationInk) WithType(type_ string) *AnnotationInk

WithType sets returns the type of the annotation.

func (*AnnotationInk) WithURL added in v0.17.0

func (ai *AnnotationInk) WithURL(url string) *AnnotationInk

WithURL sets a URL for a link annotation.

func (*AnnotationInk) WithUserName added in v0.17.0

func (ai *AnnotationInk) WithUserName(userName unsafe.Pointer) *AnnotationInk

WithUserName sets returns the name of the user who created the annotation.

func (*AnnotationInk) WithValues added in v0.17.0

func (ai *AnnotationInk) WithValues(items ...obj.Object) *AnnotationInk

WithValues sets an array of strings that specifies the export values for items in a list or a pop-up menu.

func (*AnnotationInk) WithWidgetControlType added in v0.17.0

func (ai *AnnotationInk) WithWidgetControlType(widgetControlType WidgetControlType) *AnnotationInk

WithWidgetControlType sets the type of button widget control, either radio button, push button, or checkbox.

func (*AnnotationInk) WithWidgetDefaultStringValue added in v0.17.0

func (ai *AnnotationInk) WithWidgetDefaultStringValue(widgetDefaultStringValue string) *AnnotationInk

WithWidgetDefaultStringValue sets the string value that the widget reverts to when performing a reset form action.

func (*AnnotationInk) WithWidgetFieldType added in v0.17.0

func (ai *AnnotationInk) WithWidgetFieldType(widgetFieldType obj.Object) *AnnotationInk

WithWidgetFieldType sets the type of widget annotation, such as button, choice, or text.

func (*AnnotationInk) WithWidgetStringValue added in v0.17.0

func (ai *AnnotationInk) WithWidgetStringValue(widgetStringValue string) *AnnotationInk

WithWidgetStringValue sets the string value of the widget annotation.

type AnnotationLine added in v0.17.0

type AnnotationLine struct {
	Annotation
}

AnnotationLine is an idiomatic wrapper over the Objective-C class PDFAnnotationLine.

It embeds Annotation, promoting that type's methods.

A PDFAnnotationLine object displays a single line on a page.

func AnnotationLineFromID added in v0.17.0

func AnnotationLineFromID(id objc.ID) *AnnotationLine

AnnotationLineFromID adopts an existing Objective-C object as a AnnotationLine (nil for 0), retaining it and registering a release finalizer.

func NewAnnotationLine added in v0.17.0

func NewAnnotationLine() *AnnotationLine

NewAnnotationLine creates a new AnnotationLine.

func (*AnnotationLine) WithAction added in v0.17.0

func (al *AnnotationLine) WithAction(action unsafe.Pointer) *AnnotationLine

WithAction sets an object that represents an action for a PDF element, such as a link annotation.

func (*AnnotationLine) WithAllowsToggleToOff added in v0.17.0

func (al *AnnotationLine) WithAllowsToggleToOff(allowsToggleToOff bool) *AnnotationLine

WithAllowsToggleToOff sets a Boolean value that indicates whether clicking or tapping a selected radio button toggles it to an unselected state.

func (*AnnotationLine) WithBackgroundColor added in v0.17.0

func (al *AnnotationLine) WithBackgroundColor(backgroundColor obj.Object) *AnnotationLine

WithBackgroundColor sets the color of the widget’s background.

func (*AnnotationLine) WithBorder added in v0.17.0

func (al *AnnotationLine) WithBorder(border unsafe.Pointer) *AnnotationLine

WithBorder sets sets the border style for the annotation.

func (*AnnotationLine) WithBounds added in v0.17.0

func (al *AnnotationLine) WithBounds(bounds corefoundation.CGRect) *AnnotationLine

WithBounds sets returns the bounding box for the annotation in page space.

func (*AnnotationLine) WithButtonWidgetState added in v0.17.0

func (al *AnnotationLine) WithButtonWidgetState(buttonWidgetState WidgetCellState) *AnnotationLine

WithButtonWidgetState sets the current state of the button widget annotation.

func (*AnnotationLine) WithButtonWidgetStateString added in v0.17.0

func (al *AnnotationLine) WithButtonWidgetStateString(buttonWidgetStateString string) *AnnotationLine

WithButtonWidgetStateString sets a string value that differentiates button widgets in the same group, such as to identify mutually exclusive radio buttons from each other.

func (*AnnotationLine) WithCaption added in v0.17.0

func (al *AnnotationLine) WithCaption(caption string) *AnnotationLine

WithCaption sets the title of push button widget annotations.

func (*AnnotationLine) WithChoices added in v0.17.0

func (al *AnnotationLine) WithChoices(items ...obj.Object) *AnnotationLine

WithChoices sets an array of strings that specifies the options in either a list or a pop-up menu.

func (*AnnotationLine) WithColor added in v0.17.0

func (al *AnnotationLine) WithColor(color unsafe.Pointer) *AnnotationLine

WithColor sets sets the stroke color for the annotation.

func (*AnnotationLine) WithComb added in v0.17.0

func (al *AnnotationLine) WithComb(comb bool) *AnnotationLine

WithComb sets a Boolean value that indicates whether the annotation divides the text widget’s bounds into equally spaced segments, such as in a form entry field.

func (*AnnotationLine) WithContents added in v0.17.0

func (al *AnnotationLine) WithContents(contents unsafe.Pointer) *AnnotationLine

WithContents sets returns the textual content (if any) associated with the annotation.

func (*AnnotationLine) WithDestination added in v0.17.0

func (al *AnnotationLine) WithDestination(destination *Destination) *AnnotationLine

WithDestination sets the destination for a link annotation.

func (*AnnotationLine) WithEndLineStyle added in v0.17.0

func (al *AnnotationLine) WithEndLineStyle(endLineStyle LineStyle) *AnnotationLine

WithEndLineStyle sets the style of the line annotation’s ending point, such as square or filled arrowhead.

func (*AnnotationLine) WithEndPoint added in v0.17.0

func (al *AnnotationLine) WithEndPoint(endPoint corefoundation.CGPoint) *AnnotationLine

WithEndPoint sets the point where a line ends, in annotation-space coordinates.

func (*AnnotationLine) WithFieldName added in v0.17.0

func (al *AnnotationLine) WithFieldName(fieldName string) *AnnotationLine

WithFieldName sets the widget identifier for form annotation actions and behaviors.

func (*AnnotationLine) WithFont added in v0.17.0

func (al *AnnotationLine) WithFont(font obj.Object) *AnnotationLine

WithFont sets the font the annotation uses to display text.

func (*AnnotationLine) WithFontColor added in v0.17.0

func (al *AnnotationLine) WithFontColor(fontColor obj.Object) *AnnotationLine

WithFontColor sets the font color the annotation uses to display text.

func (*AnnotationLine) WithHighlighted added in v0.17.0

func (al *AnnotationLine) WithHighlighted(highlighted bool) *AnnotationLine

WithHighlighted sets a Boolean value that indicates whether the annotation is in a highlighted state, such as when the mouse is down on a link annotation.

func (*AnnotationLine) WithIconType added in v0.17.0

func (al *AnnotationLine) WithIconType(iconType TextAnnotationIconType) *AnnotationLine

WithIconType sets the type of icon to display for a pop-up text annotation.

func (*AnnotationLine) WithInteriorColor added in v0.17.0

func (al *AnnotationLine) WithInteriorColor(interiorColor obj.Object) *AnnotationLine

WithInteriorColor sets the fill color for drawing a circle, line, or square annotation.

func (*AnnotationLine) WithListChoice added in v0.17.0

func (al *AnnotationLine) WithListChoice(listChoice bool) *AnnotationLine

WithListChoice sets a Boolean value that indicates whether the choice widget annotation is a list or a pop-up menu.

func (*AnnotationLine) WithMarkupType added in v0.17.0

func (al *AnnotationLine) WithMarkupType(markupType MarkupType) *AnnotationLine

WithMarkupType sets the markup type that the annotation displays, either highlight, strikethrough, underline, or redact.

func (*AnnotationLine) WithMaximumLength added in v0.17.0

func (al *AnnotationLine) WithMaximumLength(maximumLength int) *AnnotationLine

WithMaximumLength sets the maximum number of characters the text widget annotation allows.

func (*AnnotationLine) WithModificationDate added in v0.17.0

func (al *AnnotationLine) WithModificationDate(modificationDate unsafe.Pointer) *AnnotationLine

WithModificationDate sets returns the modification date of the annotation.

func (*AnnotationLine) WithMouseUpAction added in v0.17.0

func (al *AnnotationLine) WithMouseUpAction(mouseUpAction unsafe.Pointer) *AnnotationLine

WithMouseUpAction sets the mouse up action.

func (*AnnotationLine) WithMultiline added in v0.17.0

func (al *AnnotationLine) WithMultiline(multiline bool) *AnnotationLine

WithMultiline sets a Boolean value that indicates whether the text widget annotation displays multiple lines.

func (*AnnotationLine) WithOpen added in v0.17.0

func (al *AnnotationLine) WithOpen(open bool) *AnnotationLine

WithOpen sets a Boolean value that indicates whether the pop-up annotation is in an opened state, displaying its text content, or in a closed state, displaying an icon.

func (*AnnotationLine) WithPage added in v0.17.0

func (al *AnnotationLine) WithPage(page *Page) *AnnotationLine

WithPage sets returns the page that the annotation is associated with.

func (*AnnotationLine) WithPopup added in v0.17.0

func (al *AnnotationLine) WithPopup(popup unsafe.Pointer) *AnnotationLine

WithPopup sets returns the pop-up annotation associated with an annotation.

func (*AnnotationLine) WithQuadrilateralPoints added in v0.17.0

func (al *AnnotationLine) WithQuadrilateralPoints(items ...obj.Object) *AnnotationLine

WithQuadrilateralPoints sets an array of values that represents the points bounding the marked-up text.

func (*AnnotationLine) WithRadiosInUnison added in v0.17.0

func (al *AnnotationLine) WithRadiosInUnison(radiosInUnison bool) *AnnotationLine

WithRadiosInUnison sets a Boolean value that indicates whether radio buttons in a group turn on and off in unison.

func (*AnnotationLine) WithReadOnly added in v0.17.0

func (al *AnnotationLine) WithReadOnly(readOnly bool) *AnnotationLine

WithReadOnly sets a Boolean value that determines whether the widget is editable.

func (*AnnotationLine) WithShouldDisplay added in v0.17.0

func (al *AnnotationLine) WithShouldDisplay(shouldDisplay bool) *AnnotationLine

WithShouldDisplay sets returns a Boolean value indicating whether the annotation should be displayed.

func (*AnnotationLine) WithShouldPrint added in v0.17.0

func (al *AnnotationLine) WithShouldPrint(shouldPrint bool) *AnnotationLine

WithShouldPrint sets returns a Boolean value indicating whether the annotation should appear when the document is printed.

func (*AnnotationLine) WithStampName added in v0.17.0

func (al *AnnotationLine) WithStampName(stampName string) *AnnotationLine

WithStampName sets the name of the stamp, a text or graphics annotation that emulates a rubber stamp effect.

func (*AnnotationLine) WithStartLineStyle added in v0.17.0

func (al *AnnotationLine) WithStartLineStyle(startLineStyle LineStyle) *AnnotationLine

WithStartLineStyle sets the style of the line annotation’s starting point, such as square or filled arrowhead.

func (*AnnotationLine) WithStartPoint added in v0.17.0

func (al *AnnotationLine) WithStartPoint(startPoint corefoundation.CGPoint) *AnnotationLine

WithStartPoint sets the point where a line begins, in annotation-space coordinates.

func (*AnnotationLine) WithType added in v0.17.0

func (al *AnnotationLine) WithType(type_ string) *AnnotationLine

WithType sets returns the type of the annotation.

func (*AnnotationLine) WithURL added in v0.17.0

func (al *AnnotationLine) WithURL(url string) *AnnotationLine

WithURL sets a URL for a link annotation.

func (*AnnotationLine) WithUserName added in v0.17.0

func (al *AnnotationLine) WithUserName(userName unsafe.Pointer) *AnnotationLine

WithUserName sets returns the name of the user who created the annotation.

func (*AnnotationLine) WithValues added in v0.17.0

func (al *AnnotationLine) WithValues(items ...obj.Object) *AnnotationLine

WithValues sets an array of strings that specifies the export values for items in a list or a pop-up menu.

func (*AnnotationLine) WithWidgetControlType added in v0.17.0

func (al *AnnotationLine) WithWidgetControlType(widgetControlType WidgetControlType) *AnnotationLine

WithWidgetControlType sets the type of button widget control, either radio button, push button, or checkbox.

func (*AnnotationLine) WithWidgetDefaultStringValue added in v0.17.0

func (al *AnnotationLine) WithWidgetDefaultStringValue(widgetDefaultStringValue string) *AnnotationLine

WithWidgetDefaultStringValue sets the string value that the widget reverts to when performing a reset form action.

func (*AnnotationLine) WithWidgetFieldType added in v0.17.0

func (al *AnnotationLine) WithWidgetFieldType(widgetFieldType obj.Object) *AnnotationLine

WithWidgetFieldType sets the type of widget annotation, such as button, choice, or text.

func (*AnnotationLine) WithWidgetStringValue added in v0.17.0

func (al *AnnotationLine) WithWidgetStringValue(widgetStringValue string) *AnnotationLine

WithWidgetStringValue sets the string value of the widget annotation.

type AnnotationLink struct {
	Annotation
}

AnnotationLink is an idiomatic wrapper over the Objective-C class PDFAnnotationLink.

It embeds Annotation, promoting that type's methods.

func AnnotationLinkFromID added in v0.17.0

func AnnotationLinkFromID(id objc.ID) *AnnotationLink

AnnotationLinkFromID adopts an existing Objective-C object as a AnnotationLink (nil for 0), retaining it and registering a release finalizer.

func NewAnnotationLink() *AnnotationLink

NewAnnotationLink creates a new AnnotationLink.

func (*AnnotationLink) WithAction added in v0.17.0

func (al *AnnotationLink) WithAction(action unsafe.Pointer) *AnnotationLink

WithAction sets an object that represents an action for a PDF element, such as a link annotation.

func (*AnnotationLink) WithAllowsToggleToOff added in v0.17.0

func (al *AnnotationLink) WithAllowsToggleToOff(allowsToggleToOff bool) *AnnotationLink

WithAllowsToggleToOff sets a Boolean value that indicates whether clicking or tapping a selected radio button toggles it to an unselected state.

func (*AnnotationLink) WithBackgroundColor added in v0.17.0

func (al *AnnotationLink) WithBackgroundColor(backgroundColor obj.Object) *AnnotationLink

WithBackgroundColor sets the color of the widget’s background.

func (*AnnotationLink) WithBorder added in v0.17.0

func (al *AnnotationLink) WithBorder(border unsafe.Pointer) *AnnotationLink

WithBorder sets sets the border style for the annotation.

func (*AnnotationLink) WithBounds added in v0.17.0

func (al *AnnotationLink) WithBounds(bounds corefoundation.CGRect) *AnnotationLink

WithBounds sets returns the bounding box for the annotation in page space.

func (*AnnotationLink) WithButtonWidgetState added in v0.17.0

func (al *AnnotationLink) WithButtonWidgetState(buttonWidgetState WidgetCellState) *AnnotationLink

WithButtonWidgetState sets the current state of the button widget annotation.

func (*AnnotationLink) WithButtonWidgetStateString added in v0.17.0

func (al *AnnotationLink) WithButtonWidgetStateString(buttonWidgetStateString string) *AnnotationLink

WithButtonWidgetStateString sets a string value that differentiates button widgets in the same group, such as to identify mutually exclusive radio buttons from each other.

func (*AnnotationLink) WithCaption added in v0.17.0

func (al *AnnotationLink) WithCaption(caption string) *AnnotationLink

WithCaption sets the title of push button widget annotations.

func (*AnnotationLink) WithChoices added in v0.17.0

func (al *AnnotationLink) WithChoices(items ...obj.Object) *AnnotationLink

WithChoices sets an array of strings that specifies the options in either a list or a pop-up menu.

func (*AnnotationLink) WithColor added in v0.17.0

func (al *AnnotationLink) WithColor(color unsafe.Pointer) *AnnotationLink

WithColor sets sets the stroke color for the annotation.

func (*AnnotationLink) WithComb added in v0.17.0

func (al *AnnotationLink) WithComb(comb bool) *AnnotationLink

WithComb sets a Boolean value that indicates whether the annotation divides the text widget’s bounds into equally spaced segments, such as in a form entry field.

func (*AnnotationLink) WithContents added in v0.17.0

func (al *AnnotationLink) WithContents(contents unsafe.Pointer) *AnnotationLink

WithContents sets returns the textual content (if any) associated with the annotation.

func (*AnnotationLink) WithDestination added in v0.17.0

func (al *AnnotationLink) WithDestination(destination *Destination) *AnnotationLink

WithDestination sets the destination for a link annotation.

func (*AnnotationLink) WithEndLineStyle added in v0.17.0

func (al *AnnotationLink) WithEndLineStyle(endLineStyle LineStyle) *AnnotationLink

WithEndLineStyle sets the style of the line annotation’s ending point, such as square or filled arrowhead.

func (*AnnotationLink) WithEndPoint added in v0.17.0

func (al *AnnotationLink) WithEndPoint(endPoint corefoundation.CGPoint) *AnnotationLink

WithEndPoint sets the point where a line ends, in annotation-space coordinates.

func (*AnnotationLink) WithFieldName added in v0.17.0

func (al *AnnotationLink) WithFieldName(fieldName string) *AnnotationLink

WithFieldName sets the widget identifier for form annotation actions and behaviors.

func (*AnnotationLink) WithFont added in v0.17.0

func (al *AnnotationLink) WithFont(font obj.Object) *AnnotationLink

WithFont sets the font the annotation uses to display text.

func (*AnnotationLink) WithFontColor added in v0.17.0

func (al *AnnotationLink) WithFontColor(fontColor obj.Object) *AnnotationLink

WithFontColor sets the font color the annotation uses to display text.

func (*AnnotationLink) WithHighlighted added in v0.17.0

func (al *AnnotationLink) WithHighlighted(highlighted bool) *AnnotationLink

WithHighlighted sets a Boolean value that indicates whether the annotation is in a highlighted state, such as when the mouse is down on a link annotation.

func (*AnnotationLink) WithIconType added in v0.17.0

func (al *AnnotationLink) WithIconType(iconType TextAnnotationIconType) *AnnotationLink

WithIconType sets the type of icon to display for a pop-up text annotation.

func (*AnnotationLink) WithInteriorColor added in v0.17.0

func (al *AnnotationLink) WithInteriorColor(interiorColor obj.Object) *AnnotationLink

WithInteriorColor sets the fill color for drawing a circle, line, or square annotation.

func (*AnnotationLink) WithListChoice added in v0.17.0

func (al *AnnotationLink) WithListChoice(listChoice bool) *AnnotationLink

WithListChoice sets a Boolean value that indicates whether the choice widget annotation is a list or a pop-up menu.

func (*AnnotationLink) WithMarkupType added in v0.17.0

func (al *AnnotationLink) WithMarkupType(markupType MarkupType) *AnnotationLink

WithMarkupType sets the markup type that the annotation displays, either highlight, strikethrough, underline, or redact.

func (*AnnotationLink) WithMaximumLength added in v0.17.0

func (al *AnnotationLink) WithMaximumLength(maximumLength int) *AnnotationLink

WithMaximumLength sets the maximum number of characters the text widget annotation allows.

func (*AnnotationLink) WithModificationDate added in v0.17.0

func (al *AnnotationLink) WithModificationDate(modificationDate unsafe.Pointer) *AnnotationLink

WithModificationDate sets returns the modification date of the annotation.

func (*AnnotationLink) WithMouseUpAction added in v0.17.0

func (al *AnnotationLink) WithMouseUpAction(mouseUpAction unsafe.Pointer) *AnnotationLink

WithMouseUpAction sets the mouse up action.

func (*AnnotationLink) WithMultiline added in v0.17.0

func (al *AnnotationLink) WithMultiline(multiline bool) *AnnotationLink

WithMultiline sets a Boolean value that indicates whether the text widget annotation displays multiple lines.

func (*AnnotationLink) WithOpen added in v0.17.0

func (al *AnnotationLink) WithOpen(open bool) *AnnotationLink

WithOpen sets a Boolean value that indicates whether the pop-up annotation is in an opened state, displaying its text content, or in a closed state, displaying an icon.

func (*AnnotationLink) WithPage added in v0.17.0

func (al *AnnotationLink) WithPage(page *Page) *AnnotationLink

WithPage sets returns the page that the annotation is associated with.

func (*AnnotationLink) WithPopup added in v0.17.0

func (al *AnnotationLink) WithPopup(popup unsafe.Pointer) *AnnotationLink

WithPopup sets returns the pop-up annotation associated with an annotation.

func (*AnnotationLink) WithQuadrilateralPoints added in v0.17.0

func (al *AnnotationLink) WithQuadrilateralPoints(items ...obj.Object) *AnnotationLink

WithQuadrilateralPoints sets an array of values that represents the points bounding the marked-up text.

func (*AnnotationLink) WithRadiosInUnison added in v0.17.0

func (al *AnnotationLink) WithRadiosInUnison(radiosInUnison bool) *AnnotationLink

WithRadiosInUnison sets a Boolean value that indicates whether radio buttons in a group turn on and off in unison.

func (*AnnotationLink) WithReadOnly added in v0.17.0

func (al *AnnotationLink) WithReadOnly(readOnly bool) *AnnotationLink

WithReadOnly sets a Boolean value that determines whether the widget is editable.

func (*AnnotationLink) WithShouldDisplay added in v0.17.0

func (al *AnnotationLink) WithShouldDisplay(shouldDisplay bool) *AnnotationLink

WithShouldDisplay sets returns a Boolean value indicating whether the annotation should be displayed.

func (*AnnotationLink) WithShouldPrint added in v0.17.0

func (al *AnnotationLink) WithShouldPrint(shouldPrint bool) *AnnotationLink

WithShouldPrint sets returns a Boolean value indicating whether the annotation should appear when the document is printed.

func (*AnnotationLink) WithStampName added in v0.17.0

func (al *AnnotationLink) WithStampName(stampName string) *AnnotationLink

WithStampName sets the name of the stamp, a text or graphics annotation that emulates a rubber stamp effect.

func (*AnnotationLink) WithStartLineStyle added in v0.17.0

func (al *AnnotationLink) WithStartLineStyle(startLineStyle LineStyle) *AnnotationLink

WithStartLineStyle sets the style of the line annotation’s starting point, such as square or filled arrowhead.

func (*AnnotationLink) WithStartPoint added in v0.17.0

func (al *AnnotationLink) WithStartPoint(startPoint corefoundation.CGPoint) *AnnotationLink

WithStartPoint sets the point where a line begins, in annotation-space coordinates.

func (*AnnotationLink) WithType added in v0.17.0

func (al *AnnotationLink) WithType(type_ string) *AnnotationLink

WithType sets returns the type of the annotation.

func (*AnnotationLink) WithURL added in v0.17.0

func (al *AnnotationLink) WithURL(url string) *AnnotationLink

WithURL sets a URL for a link annotation.

func (*AnnotationLink) WithUserName added in v0.17.0

func (al *AnnotationLink) WithUserName(userName unsafe.Pointer) *AnnotationLink

WithUserName sets returns the name of the user who created the annotation.

func (*AnnotationLink) WithValues added in v0.17.0

func (al *AnnotationLink) WithValues(items ...obj.Object) *AnnotationLink

WithValues sets an array of strings that specifies the export values for items in a list or a pop-up menu.

func (*AnnotationLink) WithWidgetControlType added in v0.17.0

func (al *AnnotationLink) WithWidgetControlType(widgetControlType WidgetControlType) *AnnotationLink

WithWidgetControlType sets the type of button widget control, either radio button, push button, or checkbox.

func (*AnnotationLink) WithWidgetDefaultStringValue added in v0.17.0

func (al *AnnotationLink) WithWidgetDefaultStringValue(widgetDefaultStringValue string) *AnnotationLink

WithWidgetDefaultStringValue sets the string value that the widget reverts to when performing a reset form action.

func (*AnnotationLink) WithWidgetFieldType added in v0.17.0

func (al *AnnotationLink) WithWidgetFieldType(widgetFieldType obj.Object) *AnnotationLink

WithWidgetFieldType sets the type of widget annotation, such as button, choice, or text.

func (*AnnotationLink) WithWidgetStringValue added in v0.17.0

func (al *AnnotationLink) WithWidgetStringValue(widgetStringValue string) *AnnotationLink

WithWidgetStringValue sets the string value of the widget annotation.

type AnnotationMarkup added in v0.17.0

type AnnotationMarkup struct {
	Annotation
}

AnnotationMarkup is an idiomatic wrapper over the Objective-C class PDFAnnotationMarkup.

It embeds Annotation, promoting that type's methods.

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

func AnnotationMarkupFromID added in v0.17.0

func AnnotationMarkupFromID(id objc.ID) *AnnotationMarkup

AnnotationMarkupFromID adopts an existing Objective-C object as a AnnotationMarkup (nil for 0), retaining it and registering a release finalizer.

func NewAnnotationMarkup added in v0.17.0

func NewAnnotationMarkup() *AnnotationMarkup

NewAnnotationMarkup creates a new AnnotationMarkup.

func (*AnnotationMarkup) WithAction added in v0.17.0

func (am *AnnotationMarkup) WithAction(action unsafe.Pointer) *AnnotationMarkup

WithAction sets an object that represents an action for a PDF element, such as a link annotation.

func (*AnnotationMarkup) WithAllowsToggleToOff added in v0.17.0

func (am *AnnotationMarkup) WithAllowsToggleToOff(allowsToggleToOff bool) *AnnotationMarkup

WithAllowsToggleToOff sets a Boolean value that indicates whether clicking or tapping a selected radio button toggles it to an unselected state.

func (*AnnotationMarkup) WithBackgroundColor added in v0.17.0

func (am *AnnotationMarkup) WithBackgroundColor(backgroundColor obj.Object) *AnnotationMarkup

WithBackgroundColor sets the color of the widget’s background.

func (*AnnotationMarkup) WithBorder added in v0.17.0

func (am *AnnotationMarkup) WithBorder(border unsafe.Pointer) *AnnotationMarkup

WithBorder sets sets the border style for the annotation.

func (*AnnotationMarkup) WithBounds added in v0.17.0

func (am *AnnotationMarkup) WithBounds(bounds corefoundation.CGRect) *AnnotationMarkup

WithBounds sets returns the bounding box for the annotation in page space.

func (*AnnotationMarkup) WithButtonWidgetState added in v0.17.0

func (am *AnnotationMarkup) WithButtonWidgetState(buttonWidgetState WidgetCellState) *AnnotationMarkup

WithButtonWidgetState sets the current state of the button widget annotation.

func (*AnnotationMarkup) WithButtonWidgetStateString added in v0.17.0

func (am *AnnotationMarkup) WithButtonWidgetStateString(buttonWidgetStateString string) *AnnotationMarkup

WithButtonWidgetStateString sets a string value that differentiates button widgets in the same group, such as to identify mutually exclusive radio buttons from each other.

func (*AnnotationMarkup) WithCaption added in v0.17.0

func (am *AnnotationMarkup) WithCaption(caption string) *AnnotationMarkup

WithCaption sets the title of push button widget annotations.

func (*AnnotationMarkup) WithChoices added in v0.17.0

func (am *AnnotationMarkup) WithChoices(items ...obj.Object) *AnnotationMarkup

WithChoices sets an array of strings that specifies the options in either a list or a pop-up menu.

func (*AnnotationMarkup) WithColor added in v0.17.0

func (am *AnnotationMarkup) WithColor(color unsafe.Pointer) *AnnotationMarkup

WithColor sets sets the stroke color for the annotation.

func (*AnnotationMarkup) WithComb added in v0.17.0

func (am *AnnotationMarkup) WithComb(comb bool) *AnnotationMarkup

WithComb sets a Boolean value that indicates whether the annotation divides the text widget’s bounds into equally spaced segments, such as in a form entry field.

func (*AnnotationMarkup) WithContents added in v0.17.0

func (am *AnnotationMarkup) WithContents(contents unsafe.Pointer) *AnnotationMarkup

WithContents sets returns the textual content (if any) associated with the annotation.

func (*AnnotationMarkup) WithDestination added in v0.17.0

func (am *AnnotationMarkup) WithDestination(destination *Destination) *AnnotationMarkup

WithDestination sets the destination for a link annotation.

func (*AnnotationMarkup) WithEndLineStyle added in v0.17.0

func (am *AnnotationMarkup) WithEndLineStyle(endLineStyle LineStyle) *AnnotationMarkup

WithEndLineStyle sets the style of the line annotation’s ending point, such as square or filled arrowhead.

func (*AnnotationMarkup) WithEndPoint added in v0.17.0

func (am *AnnotationMarkup) WithEndPoint(endPoint corefoundation.CGPoint) *AnnotationMarkup

WithEndPoint sets the point where a line ends, in annotation-space coordinates.

func (*AnnotationMarkup) WithFieldName added in v0.17.0

func (am *AnnotationMarkup) WithFieldName(fieldName string) *AnnotationMarkup

WithFieldName sets the widget identifier for form annotation actions and behaviors.

func (*AnnotationMarkup) WithFont added in v0.17.0

func (am *AnnotationMarkup) WithFont(font obj.Object) *AnnotationMarkup

WithFont sets the font the annotation uses to display text.

func (*AnnotationMarkup) WithFontColor added in v0.17.0

func (am *AnnotationMarkup) WithFontColor(fontColor obj.Object) *AnnotationMarkup

WithFontColor sets the font color the annotation uses to display text.

func (*AnnotationMarkup) WithHighlighted added in v0.17.0

func (am *AnnotationMarkup) WithHighlighted(highlighted bool) *AnnotationMarkup

WithHighlighted sets a Boolean value that indicates whether the annotation is in a highlighted state, such as when the mouse is down on a link annotation.

func (*AnnotationMarkup) WithIconType added in v0.17.0

func (am *AnnotationMarkup) WithIconType(iconType TextAnnotationIconType) *AnnotationMarkup

WithIconType sets the type of icon to display for a pop-up text annotation.

func (*AnnotationMarkup) WithInteriorColor added in v0.17.0

func (am *AnnotationMarkup) WithInteriorColor(interiorColor obj.Object) *AnnotationMarkup

WithInteriorColor sets the fill color for drawing a circle, line, or square annotation.

func (*AnnotationMarkup) WithListChoice added in v0.17.0

func (am *AnnotationMarkup) WithListChoice(listChoice bool) *AnnotationMarkup

WithListChoice sets a Boolean value that indicates whether the choice widget annotation is a list or a pop-up menu.

func (*AnnotationMarkup) WithMarkupType added in v0.17.0

func (am *AnnotationMarkup) WithMarkupType(markupType MarkupType) *AnnotationMarkup

WithMarkupType sets the markup type that the annotation displays, either highlight, strikethrough, underline, or redact.

func (*AnnotationMarkup) WithMaximumLength added in v0.17.0

func (am *AnnotationMarkup) WithMaximumLength(maximumLength int) *AnnotationMarkup

WithMaximumLength sets the maximum number of characters the text widget annotation allows.

func (*AnnotationMarkup) WithModificationDate added in v0.17.0

func (am *AnnotationMarkup) WithModificationDate(modificationDate unsafe.Pointer) *AnnotationMarkup

WithModificationDate sets returns the modification date of the annotation.

func (*AnnotationMarkup) WithMouseUpAction added in v0.17.0

func (am *AnnotationMarkup) WithMouseUpAction(mouseUpAction unsafe.Pointer) *AnnotationMarkup

WithMouseUpAction sets the mouse up action.

func (*AnnotationMarkup) WithMultiline added in v0.17.0

func (am *AnnotationMarkup) WithMultiline(multiline bool) *AnnotationMarkup

WithMultiline sets a Boolean value that indicates whether the text widget annotation displays multiple lines.

func (*AnnotationMarkup) WithOpen added in v0.17.0

func (am *AnnotationMarkup) WithOpen(open bool) *AnnotationMarkup

WithOpen sets a Boolean value that indicates whether the pop-up annotation is in an opened state, displaying its text content, or in a closed state, displaying an icon.

func (*AnnotationMarkup) WithPage added in v0.17.0

func (am *AnnotationMarkup) WithPage(page *Page) *AnnotationMarkup

WithPage sets returns the page that the annotation is associated with.

func (*AnnotationMarkup) WithPopup added in v0.17.0

func (am *AnnotationMarkup) WithPopup(popup unsafe.Pointer) *AnnotationMarkup

WithPopup sets returns the pop-up annotation associated with an annotation.

func (*AnnotationMarkup) WithQuadrilateralPoints added in v0.17.0

func (am *AnnotationMarkup) WithQuadrilateralPoints(items ...obj.Object) *AnnotationMarkup

WithQuadrilateralPoints sets an array of values that represents the points bounding the marked-up text.

func (*AnnotationMarkup) WithRadiosInUnison added in v0.17.0

func (am *AnnotationMarkup) WithRadiosInUnison(radiosInUnison bool) *AnnotationMarkup

WithRadiosInUnison sets a Boolean value that indicates whether radio buttons in a group turn on and off in unison.

func (*AnnotationMarkup) WithReadOnly added in v0.17.0

func (am *AnnotationMarkup) WithReadOnly(readOnly bool) *AnnotationMarkup

WithReadOnly sets a Boolean value that determines whether the widget is editable.

func (*AnnotationMarkup) WithShouldDisplay added in v0.17.0

func (am *AnnotationMarkup) WithShouldDisplay(shouldDisplay bool) *AnnotationMarkup

WithShouldDisplay sets returns a Boolean value indicating whether the annotation should be displayed.

func (*AnnotationMarkup) WithShouldPrint added in v0.17.0

func (am *AnnotationMarkup) WithShouldPrint(shouldPrint bool) *AnnotationMarkup

WithShouldPrint sets returns a Boolean value indicating whether the annotation should appear when the document is printed.

func (*AnnotationMarkup) WithStampName added in v0.17.0

func (am *AnnotationMarkup) WithStampName(stampName string) *AnnotationMarkup

WithStampName sets the name of the stamp, a text or graphics annotation that emulates a rubber stamp effect.

func (*AnnotationMarkup) WithStartLineStyle added in v0.17.0

func (am *AnnotationMarkup) WithStartLineStyle(startLineStyle LineStyle) *AnnotationMarkup

WithStartLineStyle sets the style of the line annotation’s starting point, such as square or filled arrowhead.

func (*AnnotationMarkup) WithStartPoint added in v0.17.0

func (am *AnnotationMarkup) WithStartPoint(startPoint corefoundation.CGPoint) *AnnotationMarkup

WithStartPoint sets the point where a line begins, in annotation-space coordinates.

func (*AnnotationMarkup) WithType added in v0.17.0

func (am *AnnotationMarkup) WithType(type_ string) *AnnotationMarkup

WithType sets returns the type of the annotation.

func (*AnnotationMarkup) WithURL added in v0.17.0

func (am *AnnotationMarkup) WithURL(url string) *AnnotationMarkup

WithURL sets a URL for a link annotation.

func (*AnnotationMarkup) WithUserName added in v0.17.0

func (am *AnnotationMarkup) WithUserName(userName unsafe.Pointer) *AnnotationMarkup

WithUserName sets returns the name of the user who created the annotation.

func (*AnnotationMarkup) WithValues added in v0.17.0

func (am *AnnotationMarkup) WithValues(items ...obj.Object) *AnnotationMarkup

WithValues sets an array of strings that specifies the export values for items in a list or a pop-up menu.

func (*AnnotationMarkup) WithWidgetControlType added in v0.17.0

func (am *AnnotationMarkup) WithWidgetControlType(widgetControlType WidgetControlType) *AnnotationMarkup

WithWidgetControlType sets the type of button widget control, either radio button, push button, or checkbox.

func (*AnnotationMarkup) WithWidgetDefaultStringValue added in v0.17.0

func (am *AnnotationMarkup) WithWidgetDefaultStringValue(widgetDefaultStringValue string) *AnnotationMarkup

WithWidgetDefaultStringValue sets the string value that the widget reverts to when performing a reset form action.

func (*AnnotationMarkup) WithWidgetFieldType added in v0.17.0

func (am *AnnotationMarkup) WithWidgetFieldType(widgetFieldType obj.Object) *AnnotationMarkup

WithWidgetFieldType sets the type of widget annotation, such as button, choice, or text.

func (*AnnotationMarkup) WithWidgetStringValue added in v0.17.0

func (am *AnnotationMarkup) WithWidgetStringValue(widgetStringValue string) *AnnotationMarkup

WithWidgetStringValue sets the string value of the widget annotation.

type AnnotationPopup added in v0.17.0

type AnnotationPopup struct {
	Annotation
}

AnnotationPopup is an idiomatic wrapper over the Objective-C class PDFAnnotationPopup.

It embeds Annotation, promoting that type's methods.

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

func AnnotationPopupFromID added in v0.17.0

func AnnotationPopupFromID(id objc.ID) *AnnotationPopup

AnnotationPopupFromID adopts an existing Objective-C object as a AnnotationPopup (nil for 0), retaining it and registering a release finalizer.

func NewAnnotationPopup added in v0.17.0

func NewAnnotationPopup() *AnnotationPopup

NewAnnotationPopup creates a new AnnotationPopup.

func (*AnnotationPopup) SetIsOpen added in v0.17.0

func (ap *AnnotationPopup) SetIsOpen(isOpen bool)

SetIsOpen sets the open state of the pop-up menu.

func (*AnnotationPopup) WithAction added in v0.17.0

func (ap *AnnotationPopup) WithAction(action unsafe.Pointer) *AnnotationPopup

WithAction sets an object that represents an action for a PDF element, such as a link annotation.

func (*AnnotationPopup) WithAllowsToggleToOff added in v0.17.0

func (ap *AnnotationPopup) WithAllowsToggleToOff(allowsToggleToOff bool) *AnnotationPopup

WithAllowsToggleToOff sets a Boolean value that indicates whether clicking or tapping a selected radio button toggles it to an unselected state.

func (*AnnotationPopup) WithBackgroundColor added in v0.17.0

func (ap *AnnotationPopup) WithBackgroundColor(backgroundColor obj.Object) *AnnotationPopup

WithBackgroundColor sets the color of the widget’s background.

func (*AnnotationPopup) WithBorder added in v0.17.0

func (ap *AnnotationPopup) WithBorder(border unsafe.Pointer) *AnnotationPopup

WithBorder sets sets the border style for the annotation.

func (*AnnotationPopup) WithBounds added in v0.17.0

func (ap *AnnotationPopup) WithBounds(bounds corefoundation.CGRect) *AnnotationPopup

WithBounds sets returns the bounding box for the annotation in page space.

func (*AnnotationPopup) WithButtonWidgetState added in v0.17.0

func (ap *AnnotationPopup) WithButtonWidgetState(buttonWidgetState WidgetCellState) *AnnotationPopup

WithButtonWidgetState sets the current state of the button widget annotation.

func (*AnnotationPopup) WithButtonWidgetStateString added in v0.17.0

func (ap *AnnotationPopup) WithButtonWidgetStateString(buttonWidgetStateString string) *AnnotationPopup

WithButtonWidgetStateString sets a string value that differentiates button widgets in the same group, such as to identify mutually exclusive radio buttons from each other.

func (*AnnotationPopup) WithCaption added in v0.17.0

func (ap *AnnotationPopup) WithCaption(caption string) *AnnotationPopup

WithCaption sets the title of push button widget annotations.

func (*AnnotationPopup) WithChoices added in v0.17.0

func (ap *AnnotationPopup) WithChoices(items ...obj.Object) *AnnotationPopup

WithChoices sets an array of strings that specifies the options in either a list or a pop-up menu.

func (*AnnotationPopup) WithColor added in v0.17.0

func (ap *AnnotationPopup) WithColor(color unsafe.Pointer) *AnnotationPopup

WithColor sets sets the stroke color for the annotation.

func (*AnnotationPopup) WithComb added in v0.17.0

func (ap *AnnotationPopup) WithComb(comb bool) *AnnotationPopup

WithComb sets a Boolean value that indicates whether the annotation divides the text widget’s bounds into equally spaced segments, such as in a form entry field.

func (*AnnotationPopup) WithContents added in v0.17.0

func (ap *AnnotationPopup) WithContents(contents unsafe.Pointer) *AnnotationPopup

WithContents sets returns the textual content (if any) associated with the annotation.

func (*AnnotationPopup) WithDestination added in v0.17.0

func (ap *AnnotationPopup) WithDestination(destination *Destination) *AnnotationPopup

WithDestination sets the destination for a link annotation.

func (*AnnotationPopup) WithEndLineStyle added in v0.17.0

func (ap *AnnotationPopup) WithEndLineStyle(endLineStyle LineStyle) *AnnotationPopup

WithEndLineStyle sets the style of the line annotation’s ending point, such as square or filled arrowhead.

func (*AnnotationPopup) WithEndPoint added in v0.17.0

func (ap *AnnotationPopup) WithEndPoint(endPoint corefoundation.CGPoint) *AnnotationPopup

WithEndPoint sets the point where a line ends, in annotation-space coordinates.

func (*AnnotationPopup) WithFieldName added in v0.17.0

func (ap *AnnotationPopup) WithFieldName(fieldName string) *AnnotationPopup

WithFieldName sets the widget identifier for form annotation actions and behaviors.

func (*AnnotationPopup) WithFont added in v0.17.0

func (ap *AnnotationPopup) WithFont(font obj.Object) *AnnotationPopup

WithFont sets the font the annotation uses to display text.

func (*AnnotationPopup) WithFontColor added in v0.17.0

func (ap *AnnotationPopup) WithFontColor(fontColor obj.Object) *AnnotationPopup

WithFontColor sets the font color the annotation uses to display text.

func (*AnnotationPopup) WithHighlighted added in v0.17.0

func (ap *AnnotationPopup) WithHighlighted(highlighted bool) *AnnotationPopup

WithHighlighted sets a Boolean value that indicates whether the annotation is in a highlighted state, such as when the mouse is down on a link annotation.

func (*AnnotationPopup) WithIconType added in v0.17.0

func (ap *AnnotationPopup) WithIconType(iconType TextAnnotationIconType) *AnnotationPopup

WithIconType sets the type of icon to display for a pop-up text annotation.

func (*AnnotationPopup) WithInteriorColor added in v0.17.0

func (ap *AnnotationPopup) WithInteriorColor(interiorColor obj.Object) *AnnotationPopup

WithInteriorColor sets the fill color for drawing a circle, line, or square annotation.

func (*AnnotationPopup) WithListChoice added in v0.17.0

func (ap *AnnotationPopup) WithListChoice(listChoice bool) *AnnotationPopup

WithListChoice sets a Boolean value that indicates whether the choice widget annotation is a list or a pop-up menu.

func (*AnnotationPopup) WithMarkupType added in v0.17.0

func (ap *AnnotationPopup) WithMarkupType(markupType MarkupType) *AnnotationPopup

WithMarkupType sets the markup type that the annotation displays, either highlight, strikethrough, underline, or redact.

func (*AnnotationPopup) WithMaximumLength added in v0.17.0

func (ap *AnnotationPopup) WithMaximumLength(maximumLength int) *AnnotationPopup

WithMaximumLength sets the maximum number of characters the text widget annotation allows.

func (*AnnotationPopup) WithModificationDate added in v0.17.0

func (ap *AnnotationPopup) WithModificationDate(modificationDate unsafe.Pointer) *AnnotationPopup

WithModificationDate sets returns the modification date of the annotation.

func (*AnnotationPopup) WithMouseUpAction added in v0.17.0

func (ap *AnnotationPopup) WithMouseUpAction(mouseUpAction unsafe.Pointer) *AnnotationPopup

WithMouseUpAction sets the mouse up action.

func (*AnnotationPopup) WithMultiline added in v0.17.0

func (ap *AnnotationPopup) WithMultiline(multiline bool) *AnnotationPopup

WithMultiline sets a Boolean value that indicates whether the text widget annotation displays multiple lines.

func (*AnnotationPopup) WithOpen added in v0.17.0

func (ap *AnnotationPopup) WithOpen(open bool) *AnnotationPopup

WithOpen sets a Boolean value that indicates whether the pop-up annotation is in an opened state, displaying its text content, or in a closed state, displaying an icon.

func (*AnnotationPopup) WithPage added in v0.17.0

func (ap *AnnotationPopup) WithPage(page *Page) *AnnotationPopup

WithPage sets returns the page that the annotation is associated with.

func (*AnnotationPopup) WithPopup added in v0.17.0

func (ap *AnnotationPopup) WithPopup(popup unsafe.Pointer) *AnnotationPopup

WithPopup sets returns the pop-up annotation associated with an annotation.

func (*AnnotationPopup) WithQuadrilateralPoints added in v0.17.0

func (ap *AnnotationPopup) WithQuadrilateralPoints(items ...obj.Object) *AnnotationPopup

WithQuadrilateralPoints sets an array of values that represents the points bounding the marked-up text.

func (*AnnotationPopup) WithRadiosInUnison added in v0.17.0

func (ap *AnnotationPopup) WithRadiosInUnison(radiosInUnison bool) *AnnotationPopup

WithRadiosInUnison sets a Boolean value that indicates whether radio buttons in a group turn on and off in unison.

func (*AnnotationPopup) WithReadOnly added in v0.17.0

func (ap *AnnotationPopup) WithReadOnly(readOnly bool) *AnnotationPopup

WithReadOnly sets a Boolean value that determines whether the widget is editable.

func (*AnnotationPopup) WithShouldDisplay added in v0.17.0

func (ap *AnnotationPopup) WithShouldDisplay(shouldDisplay bool) *AnnotationPopup

WithShouldDisplay sets returns a Boolean value indicating whether the annotation should be displayed.

func (*AnnotationPopup) WithShouldPrint added in v0.17.0

func (ap *AnnotationPopup) WithShouldPrint(shouldPrint bool) *AnnotationPopup

WithShouldPrint sets returns a Boolean value indicating whether the annotation should appear when the document is printed.

func (*AnnotationPopup) WithStampName added in v0.17.0

func (ap *AnnotationPopup) WithStampName(stampName string) *AnnotationPopup

WithStampName sets the name of the stamp, a text or graphics annotation that emulates a rubber stamp effect.

func (*AnnotationPopup) WithStartLineStyle added in v0.17.0

func (ap *AnnotationPopup) WithStartLineStyle(startLineStyle LineStyle) *AnnotationPopup

WithStartLineStyle sets the style of the line annotation’s starting point, such as square or filled arrowhead.

func (*AnnotationPopup) WithStartPoint added in v0.17.0

func (ap *AnnotationPopup) WithStartPoint(startPoint corefoundation.CGPoint) *AnnotationPopup

WithStartPoint sets the point where a line begins, in annotation-space coordinates.

func (*AnnotationPopup) WithType added in v0.17.0

func (ap *AnnotationPopup) WithType(type_ string) *AnnotationPopup

WithType sets returns the type of the annotation.

func (*AnnotationPopup) WithURL added in v0.17.0

func (ap *AnnotationPopup) WithURL(url string) *AnnotationPopup

WithURL sets a URL for a link annotation.

func (*AnnotationPopup) WithUserName added in v0.17.0

func (ap *AnnotationPopup) WithUserName(userName unsafe.Pointer) *AnnotationPopup

WithUserName sets returns the name of the user who created the annotation.

func (*AnnotationPopup) WithValues added in v0.17.0

func (ap *AnnotationPopup) WithValues(items ...obj.Object) *AnnotationPopup

WithValues sets an array of strings that specifies the export values for items in a list or a pop-up menu.

func (*AnnotationPopup) WithWidgetControlType added in v0.17.0

func (ap *AnnotationPopup) WithWidgetControlType(widgetControlType WidgetControlType) *AnnotationPopup

WithWidgetControlType sets the type of button widget control, either radio button, push button, or checkbox.

func (*AnnotationPopup) WithWidgetDefaultStringValue added in v0.17.0

func (ap *AnnotationPopup) WithWidgetDefaultStringValue(widgetDefaultStringValue string) *AnnotationPopup

WithWidgetDefaultStringValue sets the string value that the widget reverts to when performing a reset form action.

func (*AnnotationPopup) WithWidgetFieldType added in v0.17.0

func (ap *AnnotationPopup) WithWidgetFieldType(widgetFieldType obj.Object) *AnnotationPopup

WithWidgetFieldType sets the type of widget annotation, such as button, choice, or text.

func (*AnnotationPopup) WithWidgetStringValue added in v0.17.0

func (ap *AnnotationPopup) WithWidgetStringValue(widgetStringValue string) *AnnotationPopup

WithWidgetStringValue sets the string value of the widget annotation.

type AnnotationProvider added in v0.17.0

type AnnotationProvider interface {
	objref.Object
	// contains filtered or unexported methods
}

AnnotationProvider is accepted wherever a PDFAnnotation (or one of its subclasses) is expected.

type AnnotationSquare added in v0.17.0

type AnnotationSquare struct {
	Annotation
}

AnnotationSquare is an idiomatic wrapper over the Objective-C class PDFAnnotationSquare.

It embeds Annotation, promoting that type's methods.

A rectangle annotation on a page.

func AnnotationSquareFromID added in v0.17.0

func AnnotationSquareFromID(id objc.ID) *AnnotationSquare

AnnotationSquareFromID adopts an existing Objective-C object as a AnnotationSquare (nil for 0), retaining it and registering a release finalizer.

func NewAnnotationSquare added in v0.17.0

func NewAnnotationSquare() *AnnotationSquare

NewAnnotationSquare creates a new AnnotationSquare.

func (*AnnotationSquare) WithAction added in v0.17.0

func (as *AnnotationSquare) WithAction(action unsafe.Pointer) *AnnotationSquare

WithAction sets an object that represents an action for a PDF element, such as a link annotation.

func (*AnnotationSquare) WithAllowsToggleToOff added in v0.17.0

func (as *AnnotationSquare) WithAllowsToggleToOff(allowsToggleToOff bool) *AnnotationSquare

WithAllowsToggleToOff sets a Boolean value that indicates whether clicking or tapping a selected radio button toggles it to an unselected state.

func (*AnnotationSquare) WithBackgroundColor added in v0.17.0

func (as *AnnotationSquare) WithBackgroundColor(backgroundColor obj.Object) *AnnotationSquare

WithBackgroundColor sets the color of the widget’s background.

func (*AnnotationSquare) WithBorder added in v0.17.0

func (as *AnnotationSquare) WithBorder(border unsafe.Pointer) *AnnotationSquare

WithBorder sets sets the border style for the annotation.

func (*AnnotationSquare) WithBounds added in v0.17.0

func (as *AnnotationSquare) WithBounds(bounds corefoundation.CGRect) *AnnotationSquare

WithBounds sets returns the bounding box for the annotation in page space.

func (*AnnotationSquare) WithButtonWidgetState added in v0.17.0

func (as *AnnotationSquare) WithButtonWidgetState(buttonWidgetState WidgetCellState) *AnnotationSquare

WithButtonWidgetState sets the current state of the button widget annotation.

func (*AnnotationSquare) WithButtonWidgetStateString added in v0.17.0

func (as *AnnotationSquare) WithButtonWidgetStateString(buttonWidgetStateString string) *AnnotationSquare

WithButtonWidgetStateString sets a string value that differentiates button widgets in the same group, such as to identify mutually exclusive radio buttons from each other.

func (*AnnotationSquare) WithCaption added in v0.17.0

func (as *AnnotationSquare) WithCaption(caption string) *AnnotationSquare

WithCaption sets the title of push button widget annotations.

func (*AnnotationSquare) WithChoices added in v0.17.0

func (as *AnnotationSquare) WithChoices(items ...obj.Object) *AnnotationSquare

WithChoices sets an array of strings that specifies the options in either a list or a pop-up menu.

func (*AnnotationSquare) WithColor added in v0.17.0

func (as *AnnotationSquare) WithColor(color unsafe.Pointer) *AnnotationSquare

WithColor sets sets the stroke color for the annotation.

func (*AnnotationSquare) WithComb added in v0.17.0

func (as *AnnotationSquare) WithComb(comb bool) *AnnotationSquare

WithComb sets a Boolean value that indicates whether the annotation divides the text widget’s bounds into equally spaced segments, such as in a form entry field.

func (*AnnotationSquare) WithContents added in v0.17.0

func (as *AnnotationSquare) WithContents(contents unsafe.Pointer) *AnnotationSquare

WithContents sets returns the textual content (if any) associated with the annotation.

func (*AnnotationSquare) WithDestination added in v0.17.0

func (as *AnnotationSquare) WithDestination(destination *Destination) *AnnotationSquare

WithDestination sets the destination for a link annotation.

func (*AnnotationSquare) WithEndLineStyle added in v0.17.0

func (as *AnnotationSquare) WithEndLineStyle(endLineStyle LineStyle) *AnnotationSquare

WithEndLineStyle sets the style of the line annotation’s ending point, such as square or filled arrowhead.

func (*AnnotationSquare) WithEndPoint added in v0.17.0

func (as *AnnotationSquare) WithEndPoint(endPoint corefoundation.CGPoint) *AnnotationSquare

WithEndPoint sets the point where a line ends, in annotation-space coordinates.

func (*AnnotationSquare) WithFieldName added in v0.17.0

func (as *AnnotationSquare) WithFieldName(fieldName string) *AnnotationSquare

WithFieldName sets the widget identifier for form annotation actions and behaviors.

func (*AnnotationSquare) WithFont added in v0.17.0

func (as *AnnotationSquare) WithFont(font obj.Object) *AnnotationSquare

WithFont sets the font the annotation uses to display text.

func (*AnnotationSquare) WithFontColor added in v0.17.0

func (as *AnnotationSquare) WithFontColor(fontColor obj.Object) *AnnotationSquare

WithFontColor sets the font color the annotation uses to display text.

func (*AnnotationSquare) WithHighlighted added in v0.17.0

func (as *AnnotationSquare) WithHighlighted(highlighted bool) *AnnotationSquare

WithHighlighted sets a Boolean value that indicates whether the annotation is in a highlighted state, such as when the mouse is down on a link annotation.

func (*AnnotationSquare) WithIconType added in v0.17.0

func (as *AnnotationSquare) WithIconType(iconType TextAnnotationIconType) *AnnotationSquare

WithIconType sets the type of icon to display for a pop-up text annotation.

func (*AnnotationSquare) WithInteriorColor added in v0.17.0

func (as *AnnotationSquare) WithInteriorColor(interiorColor obj.Object) *AnnotationSquare

WithInteriorColor sets the fill color for drawing a circle, line, or square annotation.

func (*AnnotationSquare) WithListChoice added in v0.17.0

func (as *AnnotationSquare) WithListChoice(listChoice bool) *AnnotationSquare

WithListChoice sets a Boolean value that indicates whether the choice widget annotation is a list or a pop-up menu.

func (*AnnotationSquare) WithMarkupType added in v0.17.0

func (as *AnnotationSquare) WithMarkupType(markupType MarkupType) *AnnotationSquare

WithMarkupType sets the markup type that the annotation displays, either highlight, strikethrough, underline, or redact.

func (*AnnotationSquare) WithMaximumLength added in v0.17.0

func (as *AnnotationSquare) WithMaximumLength(maximumLength int) *AnnotationSquare

WithMaximumLength sets the maximum number of characters the text widget annotation allows.

func (*AnnotationSquare) WithModificationDate added in v0.17.0

func (as *AnnotationSquare) WithModificationDate(modificationDate unsafe.Pointer) *AnnotationSquare

WithModificationDate sets returns the modification date of the annotation.

func (*AnnotationSquare) WithMouseUpAction added in v0.17.0

func (as *AnnotationSquare) WithMouseUpAction(mouseUpAction unsafe.Pointer) *AnnotationSquare

WithMouseUpAction sets the mouse up action.

func (*AnnotationSquare) WithMultiline added in v0.17.0

func (as *AnnotationSquare) WithMultiline(multiline bool) *AnnotationSquare

WithMultiline sets a Boolean value that indicates whether the text widget annotation displays multiple lines.

func (*AnnotationSquare) WithOpen added in v0.17.0

func (as *AnnotationSquare) WithOpen(open bool) *AnnotationSquare

WithOpen sets a Boolean value that indicates whether the pop-up annotation is in an opened state, displaying its text content, or in a closed state, displaying an icon.

func (*AnnotationSquare) WithPage added in v0.17.0

func (as *AnnotationSquare) WithPage(page *Page) *AnnotationSquare

WithPage sets returns the page that the annotation is associated with.

func (*AnnotationSquare) WithPopup added in v0.17.0

func (as *AnnotationSquare) WithPopup(popup unsafe.Pointer) *AnnotationSquare

WithPopup sets returns the pop-up annotation associated with an annotation.

func (*AnnotationSquare) WithQuadrilateralPoints added in v0.17.0

func (as *AnnotationSquare) WithQuadrilateralPoints(items ...obj.Object) *AnnotationSquare

WithQuadrilateralPoints sets an array of values that represents the points bounding the marked-up text.

func (*AnnotationSquare) WithRadiosInUnison added in v0.17.0

func (as *AnnotationSquare) WithRadiosInUnison(radiosInUnison bool) *AnnotationSquare

WithRadiosInUnison sets a Boolean value that indicates whether radio buttons in a group turn on and off in unison.

func (*AnnotationSquare) WithReadOnly added in v0.17.0

func (as *AnnotationSquare) WithReadOnly(readOnly bool) *AnnotationSquare

WithReadOnly sets a Boolean value that determines whether the widget is editable.

func (*AnnotationSquare) WithShouldDisplay added in v0.17.0

func (as *AnnotationSquare) WithShouldDisplay(shouldDisplay bool) *AnnotationSquare

WithShouldDisplay sets returns a Boolean value indicating whether the annotation should be displayed.

func (*AnnotationSquare) WithShouldPrint added in v0.17.0

func (as *AnnotationSquare) WithShouldPrint(shouldPrint bool) *AnnotationSquare

WithShouldPrint sets returns a Boolean value indicating whether the annotation should appear when the document is printed.

func (*AnnotationSquare) WithStampName added in v0.17.0

func (as *AnnotationSquare) WithStampName(stampName string) *AnnotationSquare

WithStampName sets the name of the stamp, a text or graphics annotation that emulates a rubber stamp effect.

func (*AnnotationSquare) WithStartLineStyle added in v0.17.0

func (as *AnnotationSquare) WithStartLineStyle(startLineStyle LineStyle) *AnnotationSquare

WithStartLineStyle sets the style of the line annotation’s starting point, such as square or filled arrowhead.

func (*AnnotationSquare) WithStartPoint added in v0.17.0

func (as *AnnotationSquare) WithStartPoint(startPoint corefoundation.CGPoint) *AnnotationSquare

WithStartPoint sets the point where a line begins, in annotation-space coordinates.

func (*AnnotationSquare) WithType added in v0.17.0

func (as *AnnotationSquare) WithType(type_ string) *AnnotationSquare

WithType sets returns the type of the annotation.

func (*AnnotationSquare) WithURL added in v0.17.0

func (as *AnnotationSquare) WithURL(url string) *AnnotationSquare

WithURL sets a URL for a link annotation.

func (*AnnotationSquare) WithUserName added in v0.17.0

func (as *AnnotationSquare) WithUserName(userName unsafe.Pointer) *AnnotationSquare

WithUserName sets returns the name of the user who created the annotation.

func (*AnnotationSquare) WithValues added in v0.17.0

func (as *AnnotationSquare) WithValues(items ...obj.Object) *AnnotationSquare

WithValues sets an array of strings that specifies the export values for items in a list or a pop-up menu.

func (*AnnotationSquare) WithWidgetControlType added in v0.17.0

func (as *AnnotationSquare) WithWidgetControlType(widgetControlType WidgetControlType) *AnnotationSquare

WithWidgetControlType sets the type of button widget control, either radio button, push button, or checkbox.

func (*AnnotationSquare) WithWidgetDefaultStringValue added in v0.17.0

func (as *AnnotationSquare) WithWidgetDefaultStringValue(widgetDefaultStringValue string) *AnnotationSquare

WithWidgetDefaultStringValue sets the string value that the widget reverts to when performing a reset form action.

func (*AnnotationSquare) WithWidgetFieldType added in v0.17.0

func (as *AnnotationSquare) WithWidgetFieldType(widgetFieldType obj.Object) *AnnotationSquare

WithWidgetFieldType sets the type of widget annotation, such as button, choice, or text.

func (*AnnotationSquare) WithWidgetStringValue added in v0.17.0

func (as *AnnotationSquare) WithWidgetStringValue(widgetStringValue string) *AnnotationSquare

WithWidgetStringValue sets the string value of the widget annotation.

type AnnotationStamp added in v0.17.0

type AnnotationStamp struct {
	Annotation
}

AnnotationStamp is an idiomatic wrapper over the Objective-C class PDFAnnotationStamp.

It embeds Annotation, promoting that type's methods.

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

func AnnotationStampFromID added in v0.17.0

func AnnotationStampFromID(id objc.ID) *AnnotationStamp

AnnotationStampFromID adopts an existing Objective-C object as a AnnotationStamp (nil for 0), retaining it and registering a release finalizer.

func NewAnnotationStamp added in v0.17.0

func NewAnnotationStamp() *AnnotationStamp

NewAnnotationStamp creates a new AnnotationStamp.

func (*AnnotationStamp) Name added in v0.17.0

func (as *AnnotationStamp) Name() string

Name returns name associated with the stamp annotation.

func (*AnnotationStamp) SetName added in v0.17.0

func (as *AnnotationStamp) SetName(name string)

SetName sets the name associated with the stamp annotation.

func (*AnnotationStamp) WithAction added in v0.17.0

func (as *AnnotationStamp) WithAction(action unsafe.Pointer) *AnnotationStamp

WithAction sets an object that represents an action for a PDF element, such as a link annotation.

func (*AnnotationStamp) WithAllowsToggleToOff added in v0.17.0

func (as *AnnotationStamp) WithAllowsToggleToOff(allowsToggleToOff bool) *AnnotationStamp

WithAllowsToggleToOff sets a Boolean value that indicates whether clicking or tapping a selected radio button toggles it to an unselected state.

func (*AnnotationStamp) WithBackgroundColor added in v0.17.0

func (as *AnnotationStamp) WithBackgroundColor(backgroundColor obj.Object) *AnnotationStamp

WithBackgroundColor sets the color of the widget’s background.

func (*AnnotationStamp) WithBorder added in v0.17.0

func (as *AnnotationStamp) WithBorder(border unsafe.Pointer) *AnnotationStamp

WithBorder sets sets the border style for the annotation.

func (*AnnotationStamp) WithBounds added in v0.17.0

func (as *AnnotationStamp) WithBounds(bounds corefoundation.CGRect) *AnnotationStamp

WithBounds sets returns the bounding box for the annotation in page space.

func (*AnnotationStamp) WithButtonWidgetState added in v0.17.0

func (as *AnnotationStamp) WithButtonWidgetState(buttonWidgetState WidgetCellState) *AnnotationStamp

WithButtonWidgetState sets the current state of the button widget annotation.

func (*AnnotationStamp) WithButtonWidgetStateString added in v0.17.0

func (as *AnnotationStamp) WithButtonWidgetStateString(buttonWidgetStateString string) *AnnotationStamp

WithButtonWidgetStateString sets a string value that differentiates button widgets in the same group, such as to identify mutually exclusive radio buttons from each other.

func (*AnnotationStamp) WithCaption added in v0.17.0

func (as *AnnotationStamp) WithCaption(caption string) *AnnotationStamp

WithCaption sets the title of push button widget annotations.

func (*AnnotationStamp) WithChoices added in v0.17.0

func (as *AnnotationStamp) WithChoices(items ...obj.Object) *AnnotationStamp

WithChoices sets an array of strings that specifies the options in either a list or a pop-up menu.

func (*AnnotationStamp) WithColor added in v0.17.0

func (as *AnnotationStamp) WithColor(color unsafe.Pointer) *AnnotationStamp

WithColor sets sets the stroke color for the annotation.

func (*AnnotationStamp) WithComb added in v0.17.0

func (as *AnnotationStamp) WithComb(comb bool) *AnnotationStamp

WithComb sets a Boolean value that indicates whether the annotation divides the text widget’s bounds into equally spaced segments, such as in a form entry field.

func (*AnnotationStamp) WithContents added in v0.17.0

func (as *AnnotationStamp) WithContents(contents unsafe.Pointer) *AnnotationStamp

WithContents sets returns the textual content (if any) associated with the annotation.

func (*AnnotationStamp) WithDestination added in v0.17.0

func (as *AnnotationStamp) WithDestination(destination *Destination) *AnnotationStamp

WithDestination sets the destination for a link annotation.

func (*AnnotationStamp) WithEndLineStyle added in v0.17.0

func (as *AnnotationStamp) WithEndLineStyle(endLineStyle LineStyle) *AnnotationStamp

WithEndLineStyle sets the style of the line annotation’s ending point, such as square or filled arrowhead.

func (*AnnotationStamp) WithEndPoint added in v0.17.0

func (as *AnnotationStamp) WithEndPoint(endPoint corefoundation.CGPoint) *AnnotationStamp

WithEndPoint sets the point where a line ends, in annotation-space coordinates.

func (*AnnotationStamp) WithFieldName added in v0.17.0

func (as *AnnotationStamp) WithFieldName(fieldName string) *AnnotationStamp

WithFieldName sets the widget identifier for form annotation actions and behaviors.

func (*AnnotationStamp) WithFont added in v0.17.0

func (as *AnnotationStamp) WithFont(font obj.Object) *AnnotationStamp

WithFont sets the font the annotation uses to display text.

func (*AnnotationStamp) WithFontColor added in v0.17.0

func (as *AnnotationStamp) WithFontColor(fontColor obj.Object) *AnnotationStamp

WithFontColor sets the font color the annotation uses to display text.

func (*AnnotationStamp) WithHighlighted added in v0.17.0

func (as *AnnotationStamp) WithHighlighted(highlighted bool) *AnnotationStamp

WithHighlighted sets a Boolean value that indicates whether the annotation is in a highlighted state, such as when the mouse is down on a link annotation.

func (*AnnotationStamp) WithIconType added in v0.17.0

func (as *AnnotationStamp) WithIconType(iconType TextAnnotationIconType) *AnnotationStamp

WithIconType sets the type of icon to display for a pop-up text annotation.

func (*AnnotationStamp) WithInteriorColor added in v0.17.0

func (as *AnnotationStamp) WithInteriorColor(interiorColor obj.Object) *AnnotationStamp

WithInteriorColor sets the fill color for drawing a circle, line, or square annotation.

func (*AnnotationStamp) WithListChoice added in v0.17.0

func (as *AnnotationStamp) WithListChoice(listChoice bool) *AnnotationStamp

WithListChoice sets a Boolean value that indicates whether the choice widget annotation is a list or a pop-up menu.

func (*AnnotationStamp) WithMarkupType added in v0.17.0

func (as *AnnotationStamp) WithMarkupType(markupType MarkupType) *AnnotationStamp

WithMarkupType sets the markup type that the annotation displays, either highlight, strikethrough, underline, or redact.

func (*AnnotationStamp) WithMaximumLength added in v0.17.0

func (as *AnnotationStamp) WithMaximumLength(maximumLength int) *AnnotationStamp

WithMaximumLength sets the maximum number of characters the text widget annotation allows.

func (*AnnotationStamp) WithModificationDate added in v0.17.0

func (as *AnnotationStamp) WithModificationDate(modificationDate unsafe.Pointer) *AnnotationStamp

WithModificationDate sets returns the modification date of the annotation.

func (*AnnotationStamp) WithMouseUpAction added in v0.17.0

func (as *AnnotationStamp) WithMouseUpAction(mouseUpAction unsafe.Pointer) *AnnotationStamp

WithMouseUpAction sets the mouse up action.

func (*AnnotationStamp) WithMultiline added in v0.17.0

func (as *AnnotationStamp) WithMultiline(multiline bool) *AnnotationStamp

WithMultiline sets a Boolean value that indicates whether the text widget annotation displays multiple lines.

func (*AnnotationStamp) WithOpen added in v0.17.0

func (as *AnnotationStamp) WithOpen(open bool) *AnnotationStamp

WithOpen sets a Boolean value that indicates whether the pop-up annotation is in an opened state, displaying its text content, or in a closed state, displaying an icon.

func (*AnnotationStamp) WithPage added in v0.17.0

func (as *AnnotationStamp) WithPage(page *Page) *AnnotationStamp

WithPage sets returns the page that the annotation is associated with.

func (*AnnotationStamp) WithPopup added in v0.17.0

func (as *AnnotationStamp) WithPopup(popup unsafe.Pointer) *AnnotationStamp

WithPopup sets returns the pop-up annotation associated with an annotation.

func (*AnnotationStamp) WithQuadrilateralPoints added in v0.17.0

func (as *AnnotationStamp) WithQuadrilateralPoints(items ...obj.Object) *AnnotationStamp

WithQuadrilateralPoints sets an array of values that represents the points bounding the marked-up text.

func (*AnnotationStamp) WithRadiosInUnison added in v0.17.0

func (as *AnnotationStamp) WithRadiosInUnison(radiosInUnison bool) *AnnotationStamp

WithRadiosInUnison sets a Boolean value that indicates whether radio buttons in a group turn on and off in unison.

func (*AnnotationStamp) WithReadOnly added in v0.17.0

func (as *AnnotationStamp) WithReadOnly(readOnly bool) *AnnotationStamp

WithReadOnly sets a Boolean value that determines whether the widget is editable.

func (*AnnotationStamp) WithShouldDisplay added in v0.17.0

func (as *AnnotationStamp) WithShouldDisplay(shouldDisplay bool) *AnnotationStamp

WithShouldDisplay sets returns a Boolean value indicating whether the annotation should be displayed.

func (*AnnotationStamp) WithShouldPrint added in v0.17.0

func (as *AnnotationStamp) WithShouldPrint(shouldPrint bool) *AnnotationStamp

WithShouldPrint sets returns a Boolean value indicating whether the annotation should appear when the document is printed.

func (*AnnotationStamp) WithStampName added in v0.17.0

func (as *AnnotationStamp) WithStampName(stampName string) *AnnotationStamp

WithStampName sets the name of the stamp, a text or graphics annotation that emulates a rubber stamp effect.

func (*AnnotationStamp) WithStartLineStyle added in v0.17.0

func (as *AnnotationStamp) WithStartLineStyle(startLineStyle LineStyle) *AnnotationStamp

WithStartLineStyle sets the style of the line annotation’s starting point, such as square or filled arrowhead.

func (*AnnotationStamp) WithStartPoint added in v0.17.0

func (as *AnnotationStamp) WithStartPoint(startPoint corefoundation.CGPoint) *AnnotationStamp

WithStartPoint sets the point where a line begins, in annotation-space coordinates.

func (*AnnotationStamp) WithType added in v0.17.0

func (as *AnnotationStamp) WithType(type_ string) *AnnotationStamp

WithType sets returns the type of the annotation.

func (*AnnotationStamp) WithURL added in v0.17.0

func (as *AnnotationStamp) WithURL(url string) *AnnotationStamp

WithURL sets a URL for a link annotation.

func (*AnnotationStamp) WithUserName added in v0.17.0

func (as *AnnotationStamp) WithUserName(userName unsafe.Pointer) *AnnotationStamp

WithUserName sets returns the name of the user who created the annotation.

func (*AnnotationStamp) WithValues added in v0.17.0

func (as *AnnotationStamp) WithValues(items ...obj.Object) *AnnotationStamp

WithValues sets an array of strings that specifies the export values for items in a list or a pop-up menu.

func (*AnnotationStamp) WithWidgetControlType added in v0.17.0

func (as *AnnotationStamp) WithWidgetControlType(widgetControlType WidgetControlType) *AnnotationStamp

WithWidgetControlType sets the type of button widget control, either radio button, push button, or checkbox.

func (*AnnotationStamp) WithWidgetDefaultStringValue added in v0.17.0

func (as *AnnotationStamp) WithWidgetDefaultStringValue(widgetDefaultStringValue string) *AnnotationStamp

WithWidgetDefaultStringValue sets the string value that the widget reverts to when performing a reset form action.

func (*AnnotationStamp) WithWidgetFieldType added in v0.17.0

func (as *AnnotationStamp) WithWidgetFieldType(widgetFieldType obj.Object) *AnnotationStamp

WithWidgetFieldType sets the type of widget annotation, such as button, choice, or text.

func (*AnnotationStamp) WithWidgetStringValue added in v0.17.0

func (as *AnnotationStamp) WithWidgetStringValue(widgetStringValue string) *AnnotationStamp

WithWidgetStringValue sets the string value of the widget annotation.

type AnnotationText added in v0.17.0

type AnnotationText struct {
	Annotation
}

AnnotationText is an idiomatic wrapper over the Objective-C class PDFAnnotationText.

It embeds Annotation, promoting that type's methods.

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

func AnnotationTextFromID added in v0.17.0

func AnnotationTextFromID(id objc.ID) *AnnotationText

AnnotationTextFromID adopts an existing Objective-C object as a AnnotationText (nil for 0), retaining it and registering a release finalizer.

func NewAnnotationText added in v0.17.0

func NewAnnotationText() *AnnotationText

NewAnnotationText creates a new AnnotationText.

func (*AnnotationText) WithAction added in v0.17.0

func (at *AnnotationText) WithAction(action unsafe.Pointer) *AnnotationText

WithAction sets an object that represents an action for a PDF element, such as a link annotation.

func (*AnnotationText) WithAllowsToggleToOff added in v0.17.0

func (at *AnnotationText) WithAllowsToggleToOff(allowsToggleToOff bool) *AnnotationText

WithAllowsToggleToOff sets a Boolean value that indicates whether clicking or tapping a selected radio button toggles it to an unselected state.

func (*AnnotationText) WithBackgroundColor added in v0.17.0

func (at *AnnotationText) WithBackgroundColor(backgroundColor obj.Object) *AnnotationText

WithBackgroundColor sets the color of the widget’s background.

func (*AnnotationText) WithBorder added in v0.17.0

func (at *AnnotationText) WithBorder(border unsafe.Pointer) *AnnotationText

WithBorder sets sets the border style for the annotation.

func (*AnnotationText) WithBounds added in v0.17.0

func (at *AnnotationText) WithBounds(bounds corefoundation.CGRect) *AnnotationText

WithBounds sets returns the bounding box for the annotation in page space.

func (*AnnotationText) WithButtonWidgetState added in v0.17.0

func (at *AnnotationText) WithButtonWidgetState(buttonWidgetState WidgetCellState) *AnnotationText

WithButtonWidgetState sets the current state of the button widget annotation.

func (*AnnotationText) WithButtonWidgetStateString added in v0.17.0

func (at *AnnotationText) WithButtonWidgetStateString(buttonWidgetStateString string) *AnnotationText

WithButtonWidgetStateString sets a string value that differentiates button widgets in the same group, such as to identify mutually exclusive radio buttons from each other.

func (*AnnotationText) WithCaption added in v0.17.0

func (at *AnnotationText) WithCaption(caption string) *AnnotationText

WithCaption sets the title of push button widget annotations.

func (*AnnotationText) WithChoices added in v0.17.0

func (at *AnnotationText) WithChoices(items ...obj.Object) *AnnotationText

WithChoices sets an array of strings that specifies the options in either a list or a pop-up menu.

func (*AnnotationText) WithColor added in v0.17.0

func (at *AnnotationText) WithColor(color unsafe.Pointer) *AnnotationText

WithColor sets sets the stroke color for the annotation.

func (*AnnotationText) WithComb added in v0.17.0

func (at *AnnotationText) WithComb(comb bool) *AnnotationText

WithComb sets a Boolean value that indicates whether the annotation divides the text widget’s bounds into equally spaced segments, such as in a form entry field.

func (*AnnotationText) WithContents added in v0.17.0

func (at *AnnotationText) WithContents(contents unsafe.Pointer) *AnnotationText

WithContents sets returns the textual content (if any) associated with the annotation.

func (*AnnotationText) WithDestination added in v0.17.0

func (at *AnnotationText) WithDestination(destination *Destination) *AnnotationText

WithDestination sets the destination for a link annotation.

func (*AnnotationText) WithEndLineStyle added in v0.17.0

func (at *AnnotationText) WithEndLineStyle(endLineStyle LineStyle) *AnnotationText

WithEndLineStyle sets the style of the line annotation’s ending point, such as square or filled arrowhead.

func (*AnnotationText) WithEndPoint added in v0.17.0

func (at *AnnotationText) WithEndPoint(endPoint corefoundation.CGPoint) *AnnotationText

WithEndPoint sets the point where a line ends, in annotation-space coordinates.

func (*AnnotationText) WithFieldName added in v0.17.0

func (at *AnnotationText) WithFieldName(fieldName string) *AnnotationText

WithFieldName sets the widget identifier for form annotation actions and behaviors.

func (*AnnotationText) WithFont added in v0.17.0

func (at *AnnotationText) WithFont(font obj.Object) *AnnotationText

WithFont sets the font the annotation uses to display text.

func (*AnnotationText) WithFontColor added in v0.17.0

func (at *AnnotationText) WithFontColor(fontColor obj.Object) *AnnotationText

WithFontColor sets the font color the annotation uses to display text.

func (*AnnotationText) WithHighlighted added in v0.17.0

func (at *AnnotationText) WithHighlighted(highlighted bool) *AnnotationText

WithHighlighted sets a Boolean value that indicates whether the annotation is in a highlighted state, such as when the mouse is down on a link annotation.

func (*AnnotationText) WithIconType added in v0.17.0

func (at *AnnotationText) WithIconType(iconType TextAnnotationIconType) *AnnotationText

WithIconType sets the type of icon to display for a pop-up text annotation.

func (*AnnotationText) WithInteriorColor added in v0.17.0

func (at *AnnotationText) WithInteriorColor(interiorColor obj.Object) *AnnotationText

WithInteriorColor sets the fill color for drawing a circle, line, or square annotation.

func (*AnnotationText) WithListChoice added in v0.17.0

func (at *AnnotationText) WithListChoice(listChoice bool) *AnnotationText

WithListChoice sets a Boolean value that indicates whether the choice widget annotation is a list or a pop-up menu.

func (*AnnotationText) WithMarkupType added in v0.17.0

func (at *AnnotationText) WithMarkupType(markupType MarkupType) *AnnotationText

WithMarkupType sets the markup type that the annotation displays, either highlight, strikethrough, underline, or redact.

func (*AnnotationText) WithMaximumLength added in v0.17.0

func (at *AnnotationText) WithMaximumLength(maximumLength int) *AnnotationText

WithMaximumLength sets the maximum number of characters the text widget annotation allows.

func (*AnnotationText) WithModificationDate added in v0.17.0

func (at *AnnotationText) WithModificationDate(modificationDate unsafe.Pointer) *AnnotationText

WithModificationDate sets returns the modification date of the annotation.

func (*AnnotationText) WithMouseUpAction added in v0.17.0

func (at *AnnotationText) WithMouseUpAction(mouseUpAction unsafe.Pointer) *AnnotationText

WithMouseUpAction sets the mouse up action.

func (*AnnotationText) WithMultiline added in v0.17.0

func (at *AnnotationText) WithMultiline(multiline bool) *AnnotationText

WithMultiline sets a Boolean value that indicates whether the text widget annotation displays multiple lines.

func (*AnnotationText) WithOpen added in v0.17.0

func (at *AnnotationText) WithOpen(open bool) *AnnotationText

WithOpen sets a Boolean value that indicates whether the pop-up annotation is in an opened state, displaying its text content, or in a closed state, displaying an icon.

func (*AnnotationText) WithPage added in v0.17.0

func (at *AnnotationText) WithPage(page *Page) *AnnotationText

WithPage sets returns the page that the annotation is associated with.

func (*AnnotationText) WithPopup added in v0.17.0

func (at *AnnotationText) WithPopup(popup unsafe.Pointer) *AnnotationText

WithPopup sets returns the pop-up annotation associated with an annotation.

func (*AnnotationText) WithQuadrilateralPoints added in v0.17.0

func (at *AnnotationText) WithQuadrilateralPoints(items ...obj.Object) *AnnotationText

WithQuadrilateralPoints sets an array of values that represents the points bounding the marked-up text.

func (*AnnotationText) WithRadiosInUnison added in v0.17.0

func (at *AnnotationText) WithRadiosInUnison(radiosInUnison bool) *AnnotationText

WithRadiosInUnison sets a Boolean value that indicates whether radio buttons in a group turn on and off in unison.

func (*AnnotationText) WithReadOnly added in v0.17.0

func (at *AnnotationText) WithReadOnly(readOnly bool) *AnnotationText

WithReadOnly sets a Boolean value that determines whether the widget is editable.

func (*AnnotationText) WithShouldDisplay added in v0.17.0

func (at *AnnotationText) WithShouldDisplay(shouldDisplay bool) *AnnotationText

WithShouldDisplay sets returns a Boolean value indicating whether the annotation should be displayed.

func (*AnnotationText) WithShouldPrint added in v0.17.0

func (at *AnnotationText) WithShouldPrint(shouldPrint bool) *AnnotationText

WithShouldPrint sets returns a Boolean value indicating whether the annotation should appear when the document is printed.

func (*AnnotationText) WithStampName added in v0.17.0

func (at *AnnotationText) WithStampName(stampName string) *AnnotationText

WithStampName sets the name of the stamp, a text or graphics annotation that emulates a rubber stamp effect.

func (*AnnotationText) WithStartLineStyle added in v0.17.0

func (at *AnnotationText) WithStartLineStyle(startLineStyle LineStyle) *AnnotationText

WithStartLineStyle sets the style of the line annotation’s starting point, such as square or filled arrowhead.

func (*AnnotationText) WithStartPoint added in v0.17.0

func (at *AnnotationText) WithStartPoint(startPoint corefoundation.CGPoint) *AnnotationText

WithStartPoint sets the point where a line begins, in annotation-space coordinates.

func (*AnnotationText) WithType added in v0.17.0

func (at *AnnotationText) WithType(type_ string) *AnnotationText

WithType sets returns the type of the annotation.

func (*AnnotationText) WithURL added in v0.17.0

func (at *AnnotationText) WithURL(url string) *AnnotationText

WithURL sets a URL for a link annotation.

func (*AnnotationText) WithUserName added in v0.17.0

func (at *AnnotationText) WithUserName(userName unsafe.Pointer) *AnnotationText

WithUserName sets returns the name of the user who created the annotation.

func (*AnnotationText) WithValues added in v0.17.0

func (at *AnnotationText) WithValues(items ...obj.Object) *AnnotationText

WithValues sets an array of strings that specifies the export values for items in a list or a pop-up menu.

func (*AnnotationText) WithWidgetControlType added in v0.17.0

func (at *AnnotationText) WithWidgetControlType(widgetControlType WidgetControlType) *AnnotationText

WithWidgetControlType sets the type of button widget control, either radio button, push button, or checkbox.

func (*AnnotationText) WithWidgetDefaultStringValue added in v0.17.0

func (at *AnnotationText) WithWidgetDefaultStringValue(widgetDefaultStringValue string) *AnnotationText

WithWidgetDefaultStringValue sets the string value that the widget reverts to when performing a reset form action.

func (*AnnotationText) WithWidgetFieldType added in v0.17.0

func (at *AnnotationText) WithWidgetFieldType(widgetFieldType obj.Object) *AnnotationText

WithWidgetFieldType sets the type of widget annotation, such as button, choice, or text.

func (*AnnotationText) WithWidgetStringValue added in v0.17.0

func (at *AnnotationText) WithWidgetStringValue(widgetStringValue string) *AnnotationText

WithWidgetStringValue sets the string value of the widget annotation.

type AnnotationTextWidget added in v0.17.0

type AnnotationTextWidget struct {
	Annotation
}

AnnotationTextWidget is an idiomatic wrapper over the Objective-C class PDFAnnotationTextWidget.

It embeds Annotation, promoting that type's methods.

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

func AnnotationTextWidgetFromID added in v0.17.0

func AnnotationTextWidgetFromID(id objc.ID) *AnnotationTextWidget

AnnotationTextWidgetFromID adopts an existing Objective-C object as a AnnotationTextWidget (nil for 0), retaining it and registering a release finalizer.

func NewAnnotationTextWidget added in v0.17.0

func NewAnnotationTextWidget() *AnnotationTextWidget

NewAnnotationTextWidget creates a new AnnotationTextWidget.

func (*AnnotationTextWidget) AttributedStringValue added in v0.17.0

func (atw *AnnotationTextWidget) AttributedStringValue() *foundation.AttributedString

AttributedStringValue returns the attributed string value.

func (*AnnotationTextWidget) Rotation added in v0.17.0

func (atw *AnnotationTextWidget) Rotation() int

Rotation returns the rotation angle of the annotation text field in degrees.

func (*AnnotationTextWidget) SetAttributedStringValue added in v0.17.0

func (atw *AnnotationTextWidget) SetAttributedStringValue(value obj.Object)

SetAttributedStringValue wraps the corresponding Objective-C method.

func (*AnnotationTextWidget) SetIsMultiline added in v0.17.0

func (atw *AnnotationTextWidget) SetIsMultiline(multiline bool)

SetIsMultiline wraps the corresponding Objective-C method.

func (*AnnotationTextWidget) SetRotation added in v0.17.0

func (atw *AnnotationTextWidget) SetRotation(rotation int)

SetRotation sets the rotation angle of the annotation text field in degrees.

func (*AnnotationTextWidget) SetStringValue added in v0.17.0

func (atw *AnnotationTextWidget) SetStringValue(value string)

SetStringValue sets the string for the annotation.

func (*AnnotationTextWidget) StringValue added in v0.17.0

func (atw *AnnotationTextWidget) StringValue() string

StringValue returns the string assigned to the annotation.

func (*AnnotationTextWidget) WithAction added in v0.17.0

func (atw *AnnotationTextWidget) WithAction(action unsafe.Pointer) *AnnotationTextWidget

WithAction sets an object that represents an action for a PDF element, such as a link annotation.

func (*AnnotationTextWidget) WithAllowsToggleToOff added in v0.17.0

func (atw *AnnotationTextWidget) WithAllowsToggleToOff(allowsToggleToOff bool) *AnnotationTextWidget

WithAllowsToggleToOff sets a Boolean value that indicates whether clicking or tapping a selected radio button toggles it to an unselected state.

func (*AnnotationTextWidget) WithBackgroundColor added in v0.17.0

func (atw *AnnotationTextWidget) WithBackgroundColor(backgroundColor obj.Object) *AnnotationTextWidget

WithBackgroundColor sets the color of the widget’s background.

func (*AnnotationTextWidget) WithBorder added in v0.17.0

func (atw *AnnotationTextWidget) WithBorder(border unsafe.Pointer) *AnnotationTextWidget

WithBorder sets sets the border style for the annotation.

func (*AnnotationTextWidget) WithBounds added in v0.17.0

WithBounds sets returns the bounding box for the annotation in page space.

func (*AnnotationTextWidget) WithButtonWidgetState added in v0.17.0

func (atw *AnnotationTextWidget) WithButtonWidgetState(buttonWidgetState WidgetCellState) *AnnotationTextWidget

WithButtonWidgetState sets the current state of the button widget annotation.

func (*AnnotationTextWidget) WithButtonWidgetStateString added in v0.17.0

func (atw *AnnotationTextWidget) WithButtonWidgetStateString(buttonWidgetStateString string) *AnnotationTextWidget

WithButtonWidgetStateString sets a string value that differentiates button widgets in the same group, such as to identify mutually exclusive radio buttons from each other.

func (*AnnotationTextWidget) WithCaption added in v0.17.0

func (atw *AnnotationTextWidget) WithCaption(caption string) *AnnotationTextWidget

WithCaption sets the title of push button widget annotations.

func (*AnnotationTextWidget) WithChoices added in v0.17.0

func (atw *AnnotationTextWidget) WithChoices(items ...obj.Object) *AnnotationTextWidget

WithChoices sets an array of strings that specifies the options in either a list or a pop-up menu.

func (*AnnotationTextWidget) WithColor added in v0.17.0

WithColor sets sets the stroke color for the annotation.

func (*AnnotationTextWidget) WithComb added in v0.17.0

func (atw *AnnotationTextWidget) WithComb(comb bool) *AnnotationTextWidget

WithComb sets a Boolean value that indicates whether the annotation divides the text widget’s bounds into equally spaced segments, such as in a form entry field.

func (*AnnotationTextWidget) WithContents added in v0.17.0

func (atw *AnnotationTextWidget) WithContents(contents unsafe.Pointer) *AnnotationTextWidget

WithContents sets returns the textual content (if any) associated with the annotation.

func (*AnnotationTextWidget) WithDestination added in v0.17.0

func (atw *AnnotationTextWidget) WithDestination(destination *Destination) *AnnotationTextWidget

WithDestination sets the destination for a link annotation.

func (*AnnotationTextWidget) WithEndLineStyle added in v0.17.0

func (atw *AnnotationTextWidget) WithEndLineStyle(endLineStyle LineStyle) *AnnotationTextWidget

WithEndLineStyle sets the style of the line annotation’s ending point, such as square or filled arrowhead.

func (*AnnotationTextWidget) WithEndPoint added in v0.17.0

func (atw *AnnotationTextWidget) WithEndPoint(endPoint corefoundation.CGPoint) *AnnotationTextWidget

WithEndPoint sets the point where a line ends, in annotation-space coordinates.

func (*AnnotationTextWidget) WithFieldName added in v0.17.0

func (atw *AnnotationTextWidget) WithFieldName(fieldName string) *AnnotationTextWidget

WithFieldName sets the widget identifier for form annotation actions and behaviors.

func (*AnnotationTextWidget) WithFont added in v0.17.0

func (atw *AnnotationTextWidget) WithFont(font obj.Object) *AnnotationTextWidget

WithFont sets the font the annotation uses to display text.

func (*AnnotationTextWidget) WithFontColor added in v0.17.0

func (atw *AnnotationTextWidget) WithFontColor(fontColor obj.Object) *AnnotationTextWidget

WithFontColor sets the font color the annotation uses to display text.

func (*AnnotationTextWidget) WithHighlighted added in v0.17.0

func (atw *AnnotationTextWidget) WithHighlighted(highlighted bool) *AnnotationTextWidget

WithHighlighted sets a Boolean value that indicates whether the annotation is in a highlighted state, such as when the mouse is down on a link annotation.

func (*AnnotationTextWidget) WithIconType added in v0.17.0

WithIconType sets the type of icon to display for a pop-up text annotation.

func (*AnnotationTextWidget) WithInteriorColor added in v0.17.0

func (atw *AnnotationTextWidget) WithInteriorColor(interiorColor obj.Object) *AnnotationTextWidget

WithInteriorColor sets the fill color for drawing a circle, line, or square annotation.

func (*AnnotationTextWidget) WithListChoice added in v0.17.0

func (atw *AnnotationTextWidget) WithListChoice(listChoice bool) *AnnotationTextWidget

WithListChoice sets a Boolean value that indicates whether the choice widget annotation is a list or a pop-up menu.

func (*AnnotationTextWidget) WithMarkupType added in v0.17.0

func (atw *AnnotationTextWidget) WithMarkupType(markupType MarkupType) *AnnotationTextWidget

WithMarkupType sets the markup type that the annotation displays, either highlight, strikethrough, underline, or redact.

func (*AnnotationTextWidget) WithMaximumLength added in v0.17.0

func (atw *AnnotationTextWidget) WithMaximumLength(maximumLength int) *AnnotationTextWidget

WithMaximumLength sets the maximum number of characters the text widget annotation allows.

func (*AnnotationTextWidget) WithModificationDate added in v0.17.0

func (atw *AnnotationTextWidget) WithModificationDate(modificationDate unsafe.Pointer) *AnnotationTextWidget

WithModificationDate sets returns the modification date of the annotation.

func (*AnnotationTextWidget) WithMouseUpAction added in v0.17.0

func (atw *AnnotationTextWidget) WithMouseUpAction(mouseUpAction unsafe.Pointer) *AnnotationTextWidget

WithMouseUpAction sets the mouse up action.

func (*AnnotationTextWidget) WithMultiline added in v0.17.0

func (atw *AnnotationTextWidget) WithMultiline(multiline bool) *AnnotationTextWidget

WithMultiline sets a Boolean value that indicates whether the text widget annotation displays multiple lines.

func (*AnnotationTextWidget) WithOpen added in v0.17.0

func (atw *AnnotationTextWidget) WithOpen(open bool) *AnnotationTextWidget

WithOpen sets a Boolean value that indicates whether the pop-up annotation is in an opened state, displaying its text content, or in a closed state, displaying an icon.

func (*AnnotationTextWidget) WithPage added in v0.17.0

func (atw *AnnotationTextWidget) WithPage(page *Page) *AnnotationTextWidget

WithPage sets returns the page that the annotation is associated with.

func (*AnnotationTextWidget) WithPopup added in v0.17.0

WithPopup sets returns the pop-up annotation associated with an annotation.

func (*AnnotationTextWidget) WithQuadrilateralPoints added in v0.17.0

func (atw *AnnotationTextWidget) WithQuadrilateralPoints(items ...obj.Object) *AnnotationTextWidget

WithQuadrilateralPoints sets an array of values that represents the points bounding the marked-up text.

func (*AnnotationTextWidget) WithRadiosInUnison added in v0.17.0

func (atw *AnnotationTextWidget) WithRadiosInUnison(radiosInUnison bool) *AnnotationTextWidget

WithRadiosInUnison sets a Boolean value that indicates whether radio buttons in a group turn on and off in unison.

func (*AnnotationTextWidget) WithReadOnly added in v0.17.0

func (atw *AnnotationTextWidget) WithReadOnly(readOnly bool) *AnnotationTextWidget

WithReadOnly sets a Boolean value that determines whether the widget is editable.

func (*AnnotationTextWidget) WithShouldDisplay added in v0.17.0

func (atw *AnnotationTextWidget) WithShouldDisplay(shouldDisplay bool) *AnnotationTextWidget

WithShouldDisplay sets returns a Boolean value indicating whether the annotation should be displayed.

func (*AnnotationTextWidget) WithShouldPrint added in v0.17.0

func (atw *AnnotationTextWidget) WithShouldPrint(shouldPrint bool) *AnnotationTextWidget

WithShouldPrint sets returns a Boolean value indicating whether the annotation should appear when the document is printed.

func (*AnnotationTextWidget) WithStampName added in v0.17.0

func (atw *AnnotationTextWidget) WithStampName(stampName string) *AnnotationTextWidget

WithStampName sets the name of the stamp, a text or graphics annotation that emulates a rubber stamp effect.

func (*AnnotationTextWidget) WithStartLineStyle added in v0.17.0

func (atw *AnnotationTextWidget) WithStartLineStyle(startLineStyle LineStyle) *AnnotationTextWidget

WithStartLineStyle sets the style of the line annotation’s starting point, such as square or filled arrowhead.

func (*AnnotationTextWidget) WithStartPoint added in v0.17.0

func (atw *AnnotationTextWidget) WithStartPoint(startPoint corefoundation.CGPoint) *AnnotationTextWidget

WithStartPoint sets the point where a line begins, in annotation-space coordinates.

func (*AnnotationTextWidget) WithType added in v0.17.0

func (atw *AnnotationTextWidget) WithType(type_ string) *AnnotationTextWidget

WithType sets returns the type of the annotation.

func (*AnnotationTextWidget) WithURL added in v0.17.0

WithURL sets a URL for a link annotation.

func (*AnnotationTextWidget) WithUserName added in v0.17.0

func (atw *AnnotationTextWidget) WithUserName(userName unsafe.Pointer) *AnnotationTextWidget

WithUserName sets returns the name of the user who created the annotation.

func (*AnnotationTextWidget) WithValues added in v0.17.0

func (atw *AnnotationTextWidget) WithValues(items ...obj.Object) *AnnotationTextWidget

WithValues sets an array of strings that specifies the export values for items in a list or a pop-up menu.

func (*AnnotationTextWidget) WithWidgetControlType added in v0.17.0

func (atw *AnnotationTextWidget) WithWidgetControlType(widgetControlType WidgetControlType) *AnnotationTextWidget

WithWidgetControlType sets the type of button widget control, either radio button, push button, or checkbox.

func (*AnnotationTextWidget) WithWidgetDefaultStringValue added in v0.17.0

func (atw *AnnotationTextWidget) WithWidgetDefaultStringValue(widgetDefaultStringValue string) *AnnotationTextWidget

WithWidgetDefaultStringValue sets the string value that the widget reverts to when performing a reset form action.

func (*AnnotationTextWidget) WithWidgetFieldType added in v0.17.0

func (atw *AnnotationTextWidget) WithWidgetFieldType(widgetFieldType obj.Object) *AnnotationTextWidget

WithWidgetFieldType sets the type of widget annotation, such as button, choice, or text.

func (*AnnotationTextWidget) WithWidgetStringValue added in v0.17.0

func (atw *AnnotationTextWidget) WithWidgetStringValue(widgetStringValue string) *AnnotationTextWidget

WithWidgetStringValue sets the string value of the widget annotation.

type AppearanceCharacteristics added in v0.17.0

type AppearanceCharacteristics struct {
	objref.Handle
}

AppearanceCharacteristics is an idiomatic wrapper over the Objective-C class PDFAppearanceCharacteristics.

An object that represents appearance characteristics of a widget annotation.

func AppearanceCharacteristicsFromID added in v0.17.0

func AppearanceCharacteristicsFromID(id objc.ID) *AppearanceCharacteristics

AppearanceCharacteristicsFromID adopts an existing Objective-C object as a AppearanceCharacteristics (nil for 0), retaining it and registering a release finalizer.

func NewAppearanceCharacteristics added in v0.17.0

func NewAppearanceCharacteristics() *AppearanceCharacteristics

NewAppearanceCharacteristics creates a new AppearanceCharacteristics.

func (*AppearanceCharacteristics) AppearanceCharacteristicsKeyValues added in v0.17.0

func (ac *AppearanceCharacteristics) AppearanceCharacteristicsKeyValues() obj.Object

AppearanceCharacteristicsKeyValues returns the appearance characteristics key values.

func (*AppearanceCharacteristics) BackgroundColor added in v0.17.0

func (ac *AppearanceCharacteristics) BackgroundColor() obj.Object

BackgroundColor returns the background color.

func (*AppearanceCharacteristics) BorderColor added in v0.17.0

func (ac *AppearanceCharacteristics) BorderColor() obj.Object

BorderColor returns the border color.

func (*AppearanceCharacteristics) Caption added in v0.17.0

func (ac *AppearanceCharacteristics) Caption() string

Caption returns the caption.

func (*AppearanceCharacteristics) ControlType added in v0.17.0

func (ac *AppearanceCharacteristics) ControlType() WidgetControlType

ControlType returns the control type.

func (*AppearanceCharacteristics) Description added in v0.17.0

func (ac *AppearanceCharacteristics) Description() string

Description returns the object's -description text.

func (*AppearanceCharacteristics) DownCaption added in v0.17.0

func (ac *AppearanceCharacteristics) DownCaption() string

DownCaption returns the down caption.

func (*AppearanceCharacteristics) IsEqual added in v0.17.0

func (ac *AppearanceCharacteristics) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*AppearanceCharacteristics) IsKind added in v0.17.0

func (ac *AppearanceCharacteristics) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*AppearanceCharacteristics) RolloverCaption added in v0.17.0

func (ac *AppearanceCharacteristics) RolloverCaption() string

RolloverCaption returns the rollover caption.

func (*AppearanceCharacteristics) Rotation added in v0.17.0

func (ac *AppearanceCharacteristics) Rotation() int

Rotation returns the rotation.

func (*AppearanceCharacteristics) String added in v0.17.0

func (ac *AppearanceCharacteristics) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*AppearanceCharacteristics) WithBackgroundColor added in v0.17.0

func (ac *AppearanceCharacteristics) WithBackgroundColor(backgroundColor obj.Object) *AppearanceCharacteristics

WithBackgroundColor sets the background color of the widget annotation.

func (*AppearanceCharacteristics) WithBorderColor added in v0.17.0

func (ac *AppearanceCharacteristics) WithBorderColor(borderColor obj.Object) *AppearanceCharacteristics

WithBorderColor sets the border color of the widget annotation.

func (*AppearanceCharacteristics) WithCaption added in v0.17.0

WithCaption sets the text that the button widget annotation displays when the user isn’t interacting with it.

func (*AppearanceCharacteristics) WithControlType added in v0.17.0

func (ac *AppearanceCharacteristics) WithControlType(controlType WidgetControlType) *AppearanceCharacteristics

WithControlType sets the type of button widget annotation.

func (*AppearanceCharacteristics) WithDownCaption added in v0.17.0

func (ac *AppearanceCharacteristics) WithDownCaption(downCaption string) *AppearanceCharacteristics

WithDownCaption sets the text that the button widget annotation displays when the user holds down on it.

func (*AppearanceCharacteristics) WithRolloverCaption added in v0.17.0

func (ac *AppearanceCharacteristics) WithRolloverCaption(rolloverCaption string) *AppearanceCharacteristics

WithRolloverCaption sets the text that the widget annotation displays when the user hovers the pointer over it.

func (*AppearanceCharacteristics) WithRotation added in v0.17.0

func (ac *AppearanceCharacteristics) WithRotation(rotation int) *AppearanceCharacteristics

WithRotation sets the number of degrees, in multiples of 90, that the widget annotation rotates counterclockwise relative to the page.

type AreaOfInterest added in v0.17.0

type AreaOfInterest uint64

The mouse position over PDF view areas. Bitmask — values may be combined with |.

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

func (AreaOfInterest) String added in v0.17.0

func (e AreaOfInterest) String() string

String returns the AreaOfInterest constant's name, or its numeric form when the value is not a known constant.

type Border added in v0.17.0

type Border struct {
	objref.Handle
}

Border is an idiomatic wrapper over the Objective-C class PDFBorder.

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

func BorderFromID added in v0.17.0

func BorderFromID(id objc.ID) *Border

BorderFromID adopts an existing Objective-C object as a Border (nil for 0), retaining it and registering a release finalizer.

func NewBorder added in v0.17.0

func NewBorder() *Border

NewBorder creates a new Border.

func (*Border) BorderKeyValues added in v0.17.0

func (b *Border) BorderKeyValues() obj.Object

BorderKeyValues returns the border key values.

func (*Border) DashPattern added in v0.17.0

func (b *Border) DashPattern() obj.Object

DashPattern returns the dash pattern.

func (*Border) Description added in v0.17.0

func (b *Border) Description() string

Description returns the object's -description text.

func (*Border) DrawInRect added in v0.17.0

func (b *Border) DrawInRect(rect corefoundation.CGRect)

DrawInRect draws the border.

func (*Border) IsEqual added in v0.17.0

func (b *Border) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*Border) IsKind added in v0.17.0

func (b *Border) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*Border) LineWidth added in v0.17.0

func (b *Border) LineWidth() float64

LineWidth returns the line width.

func (*Border) SetDashPattern added in v0.17.0

func (b *Border) SetDashPattern(dashPattern obj.Object)

SetDashPattern wraps the corresponding Objective-C method.

func (*Border) String added in v0.17.0

func (b *Border) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*Border) Style added in v0.17.0

func (b *Border) Style() BorderStyle

Style returns the style.

func (*Border) WithLineWidth added in v0.17.0

func (b *Border) WithLineWidth(lineWidth float64) *Border

WithLineWidth sets sets the line width (in points) for the border.

func (*Border) WithStyle added in v0.17.0

func (b *Border) WithStyle(style BorderStyle) *Border

WithStyle sets sets the border style.

type BorderStyle added in v0.17.0

type BorderStyle int64

PDF Kit annotation borders may have the following styles.

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

func (BorderStyle) String added in v0.17.0

func (e BorderStyle) String() string

String returns the BorderStyle constant's name, or its numeric form when the value is not a known constant.

type CGLCPContextPriorityRequest

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

func (CGLCPContextPriorityRequest) String

String returns the CGLCPContextPriorityRequest constant's name, or its numeric form when the value is not a known constant.

type Clockid added in v0.17.0

type Clockid int32
const (
	ClockidRealtime           Clockid = 0
	ClockidMonotonic          Clockid = 6
	ClockidMonotonicRaw       Clockid = 4
	ClockidMonotonicRawApprox Clockid = 5
	ClockidUptimeRaw          Clockid = 8
	ClockidUptimeRawApprox    Clockid = 9
	ClockidProcessCputimeID   Clockid = 12
	ClockidThreadCputimeID    Clockid = 16
)

func (Clockid) String added in v0.17.0

func (e Clockid) String() string

String returns the Clockid constant's name, or its numeric form when the value is not a known constant.

type Destination added in v0.17.0

type Destination struct {
	objref.Handle
}

Destination is an idiomatic wrapper over the Objective-C class PDFDestination.

A PDFDestination object describes a point on a PDF page.

func DestinationFromID added in v0.17.0

func DestinationFromID(id objc.ID) *Destination

DestinationFromID adopts an existing Objective-C object as a Destination (nil for 0), retaining it and registering a release finalizer.

func NewDestinationWithPageAtPoint added in v0.17.0

func NewDestinationWithPageAtPoint(page *Page, point corefoundation.CGPoint) *Destination

NewDestinationWithPageAtPoint initializes the destination.

func (*Destination) Description added in v0.17.0

func (d *Destination) Description() string

Description returns the object's -description text.

func (*Destination) IsEqual added in v0.17.0

func (d *Destination) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*Destination) IsKind added in v0.17.0

func (d *Destination) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*Destination) Page added in v0.17.0

func (d *Destination) Page() *Page

Page returns the page.

func (*Destination) Point added in v0.17.0

func (d *Destination) Point() corefoundation.CGPoint

Point returns the point.

func (*Destination) String added in v0.17.0

func (d *Destination) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*Destination) WithZoom added in v0.17.0

func (d *Destination) WithZoom(zoom float64) *Destination

WithZoom sets the zoom.

func (*Destination) Zoom added in v0.17.0

func (d *Destination) Zoom() float64

Zoom returns the zoom.

type DispatchAutoreleaseFrequency added in v0.17.0

type DispatchAutoreleaseFrequency uint64
const (
	DispatchAutoreleaseFrequencyInherit  DispatchAutoreleaseFrequency = 0
	DispatchAutoreleaseFrequencyWorkItem DispatchAutoreleaseFrequency = 1
	DispatchAutoreleaseFrequencyNever    DispatchAutoreleaseFrequency = 2
)

func (DispatchAutoreleaseFrequency) String added in v0.17.0

String returns the DispatchAutoreleaseFrequency constant's name, or its numeric form when the value is not a known constant.

type DispatchBlockFlags added in v0.17.0

type DispatchBlockFlags uint64

Bitmask — values may be combined with |.

const (
	DispatchBlockFlagsBarrier         DispatchBlockFlags = 1
	DispatchBlockFlagsDetached        DispatchBlockFlags = 2
	DispatchBlockFlagsAssignCurrent   DispatchBlockFlags = 4
	DispatchBlockFlagsNoQosClass      DispatchBlockFlags = 8
	DispatchBlockFlagsInheritQosClass DispatchBlockFlags = 16
	DispatchBlockFlagsEnforceQosClass DispatchBlockFlags = 32
)

func (DispatchBlockFlags) String added in v0.17.0

func (e DispatchBlockFlags) String() string

String returns the DispatchBlockFlags constant's name, or its numeric form when the value is not a known constant.

type DisplayBox added in v0.17.0

type DisplayBox 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 DisplayBox = 0
	// A rectangle defining the boundaries of the visible region , expressed in default user-space units. Default value equal to kPDFDisplayBoxMediaBox.
	KPDFDisplayBoxCropBox DisplayBox = 1
	// A rectangle defining the boundaries of the clip region for the page contents in a production environment. Default value equal to kPDFDisplayBoxCropBox.
	KPDFDisplayBoxBleedBox DisplayBox = 2
	// A rectangle defining the intended boundaries of the finished page. Default value equal to kPDFDisplayBoxCropBox.
	KPDFDisplayBoxTrimBox DisplayBox = 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 DisplayBox = 4
)

func (DisplayBox) String added in v0.17.0

func (e DisplayBox) String() string

String returns the DisplayBox constant's name, or its numeric form when the value is not a known constant.

type DisplayDirection added in v0.17.0

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

func (DisplayDirection) String added in v0.17.0

func (e DisplayDirection) String() string

String returns the DisplayDirection constant's name, or its numeric form when the value is not a known constant.

type DisplayMode added in v0.17.0

type DisplayMode 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 DisplayMode = 0
	// A display mode where the document displays in continuous mode vertically, with single-page width horizontally.
	KPDFDisplaySinglePageContinuous DisplayMode = 1
	// A display mode where the document displays two pages side-by-side.
	KPDFDisplayTwoUp DisplayMode = 2
	// A display mode where the document displays in continuous mode vertically and displays two pages side-by-side horizontally.
	KPDFDisplayTwoUpContinuous DisplayMode = 3
)

func (DisplayMode) String added in v0.17.0

func (e DisplayMode) String() string

String returns the DisplayMode constant's name, or its numeric form when the value is not a known constant.

type Document added in v0.17.0

type Document struct {
	objref.Handle
}

Document is an idiomatic wrapper over the Objective-C class PDFDocument.

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

func DocumentFromID added in v0.17.0

func DocumentFromID(id objc.ID) *Document

DocumentFromID adopts an existing Objective-C object as a Document (nil for 0), retaining it and registering a release finalizer.

func NewDocument added in v0.17.0

func NewDocument() *Document

NewDocument creates a new Document.

func NewDocumentWithData added in v0.17.0

func NewDocumentWithData(data []byte) *Document

NewDocumentWithData initializes a PDFDocument object with the passed-in data.

func NewDocumentWithURL added in v0.17.0

func NewDocumentWithURL(url string) *Document

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

func (*Document) AccessPermissions added in v0.17.0

func (d *Document) AccessPermissions() AccessPermissions

AccessPermissions returns the access permissions.

func (*Document) AllowsCommenting added in v0.17.0

func (d *Document) AllowsCommenting() bool

AllowsCommenting wraps the corresponding Objective-C method.

func (*Document) AllowsContentAccessibility added in v0.17.0

func (d *Document) AllowsContentAccessibility() bool

AllowsContentAccessibility wraps the corresponding Objective-C method.

func (*Document) AllowsCopying added in v0.17.0

func (d *Document) AllowsCopying() bool

AllowsCopying wraps the corresponding Objective-C method.

func (*Document) AllowsDocumentAssembly added in v0.17.0

func (d *Document) AllowsDocumentAssembly() bool

AllowsDocumentAssembly wraps the corresponding Objective-C method.

func (*Document) AllowsDocumentChanges added in v0.17.0

func (d *Document) AllowsDocumentChanges() bool

AllowsDocumentChanges wraps the corresponding Objective-C method.

func (*Document) AllowsFormFieldEntry added in v0.17.0

func (d *Document) AllowsFormFieldEntry() bool

AllowsFormFieldEntry wraps the corresponding Objective-C method.

func (*Document) AllowsPrinting added in v0.17.0

func (d *Document) AllowsPrinting() bool

AllowsPrinting wraps the corresponding Objective-C method.

func (*Document) CancelFindString added in v0.17.0

func (d *Document) CancelFindString()

CancelFindString cancels find string.

func (*Document) DataRepresentation added in v0.17.0

func (d *Document) DataRepresentation() []byte

DataRepresentation returns the data representation.

func (*Document) DataRepresentationWithOptions added in v0.17.0

func (d *Document) DataRepresentationWithOptions(options obj.Object) []byte

DataRepresentationWithOptions wraps the corresponding Objective-C method.

func (*Document) Description added in v0.17.0

func (d *Document) Description() string

Description returns the object's -description text.

func (*Document) DocumentAttributes added in v0.17.0

func (d *Document) DocumentAttributes() obj.Object

DocumentAttributes returns the document attributes.

func (*Document) DocumentRef added in v0.17.0

func (d *Document) DocumentRef() coregraphics.CGPDFDocumentRef

DocumentRef returns the document ref.

func (*Document) DocumentURL added in v0.17.0

func (d *Document) DocumentURL() string

DocumentURL returns the document URL.

func (*Document) ExchangePageAtIndexWithPageAtIndex added in v0.17.0

func (d *Document) ExchangePageAtIndexWithPageAtIndex(indexA int, indexB int)

ExchangePageAtIndexWithPageAtIndex wraps the corresponding Objective-C method.

func (*Document) IndexForPage added in v0.17.0

func (d *Document) IndexForPage(page *Page) int

IndexForPage wraps the corresponding Objective-C method.

func (*Document) InsertPageAtIndex added in v0.17.0

func (d *Document) InsertPageAtIndex(page *Page, index int)

InsertPageAtIndex inserts page at index.

func (*Document) IsEncrypted added in v0.17.0

func (d *Document) IsEncrypted() bool

IsEncrypted reports whether the object is encrypted.

func (*Document) IsEqual added in v0.17.0

func (d *Document) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*Document) IsFinding added in v0.17.0

func (d *Document) IsFinding() bool

IsFinding reports whether the object is finding.

func (*Document) IsKind added in v0.17.0

func (d *Document) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*Document) IsLocked added in v0.17.0

func (d *Document) IsLocked() bool

IsLocked reports whether the object is locked.

func (*Document) MajorVersion added in v0.17.0

func (d *Document) MajorVersion() int

MajorVersion returns the major version.

func (*Document) MinorVersion added in v0.17.0

func (d *Document) MinorVersion() int

MinorVersion returns the minor version.

func (*Document) OutlineItemForSelection added in v0.17.0

func (d *Document) OutlineItemForSelection(selection *Selection) *Outline

OutlineItemForSelection wraps the corresponding Objective-C method.

func (*Document) OutlineRoot added in v0.18.0

func (d *Document) OutlineRoot() unsafe.Pointer

OutlineRoot returns the outline root.

func (*Document) PageAtIndex added in v0.17.0

func (d *Document) PageAtIndex(index int) *Page

PageAtIndex wraps the corresponding Objective-C method.

func (*Document) PageCount added in v0.17.0

func (d *Document) PageCount() int

PageCount returns the page count.

func (*Document) PermissionsStatus added in v0.17.0

func (d *Document) PermissionsStatus() DocumentPermissions

PermissionsStatus returns the permissions status.

func (*Document) PrintOperationForPrintInfoScalingModeAutoRotate added in v0.17.0

func (d *Document) PrintOperationForPrintInfoScalingModeAutoRotate(printInfo obj.Object, scaleMode PrintScalingMode, doRotate bool) obj.Object

PrintOperationForPrintInfoScalingModeAutoRotate wraps the corresponding Objective-C method.

func (*Document) RemovePageAtIndex added in v0.17.0

func (d *Document) RemovePageAtIndex(index int)

RemovePageAtIndex removes page at index.

func (*Document) SelectionForEntireDocument added in v0.17.0

func (d *Document) SelectionForEntireDocument() *Selection

SelectionForEntireDocument returns the selection for entire document.

func (*Document) SelectionFromPageAtCharacterIndexToPageAtCharacterIndex added in v0.17.0

func (d *Document) SelectionFromPageAtCharacterIndexToPageAtCharacterIndex(startPage *Page, startCharacter int, endPage *Page, endCharacter int) *Selection

SelectionFromPageAtCharacterIndexToPageAtCharacterIndex wraps the corresponding Objective-C method.

func (*Document) SelectionFromPageAtPointToPageAtPoint added in v0.17.0

func (d *Document) SelectionFromPageAtPointToPageAtPoint(startPage *Page, startPoint corefoundation.CGPoint, endPage *Page, endPoint corefoundation.CGPoint) *Selection

SelectionFromPageAtPointToPageAtPoint wraps the corresponding Objective-C method.

func (*Document) SelectionFromPageAtPointToPageAtPointWithGranularity added in v0.17.0

func (d *Document) SelectionFromPageAtPointToPageAtPointWithGranularity(startPage *Page, startPoint corefoundation.CGPoint, endPage *Page, endPoint corefoundation.CGPoint, granularity SelectionGranularity) *Selection

SelectionFromPageAtPointToPageAtPointWithGranularity wraps the corresponding Objective-C method.

func (*Document) String added in v0.17.0

func (d *Document) String() string

String returns the string.

func (*Document) UnlockWithPassword added in v0.17.0

func (d *Document) UnlockWithPassword(password string) bool

UnlockWithPassword attempts to unlock an encrypted document.

func (*Document) WithDelegate added in v0.17.0

func (d *Document) WithDelegate(delegate DocumentDelegate) *Document

WithDelegate sets the object acting as the delegate for the PDFDocument object.

func (*Document) WithDocumentAttributes added in v0.17.0

func (d *Document) WithDocumentAttributes(documentAttributes obj.Object) *Document

WithDocumentAttributes sets the document attributes.

func (*Document) WithOutlineRoot added in v0.17.0

func (d *Document) WithOutlineRoot(outlineRoot unsafe.Pointer) *Document

WithOutlineRoot sets the outline root.

func (*Document) WriteToFile added in v0.17.0

func (d *Document) WriteToFile(path string) bool

WriteToFile writes to file.

func (*Document) WriteToFileWithOptions added in v0.17.0

func (d *Document) WriteToFileWithOptions(path string, options obj.Object) bool

WriteToFileWithOptions writes to file with options.

func (*Document) WriteToURL added in v0.17.0

func (d *Document) WriteToURL(url string) bool

WriteToURL writes to URL.

func (*Document) WriteToURLWithOptions added in v0.17.0

func (d *Document) WriteToURLWithOptions(url string, options obj.Object) bool

WriteToURLWithOptions writes to URL with options.

type DocumentDelegate added in v0.17.0

type DocumentDelegate interface {
}

DocumentDelegate receives the callbacks of the Objective-C protocol PDFDocumentDelegate. Pass an implementation to the matching With… setter; the wrapper builds the Objective-C delegate object for you. Every method listed here is required. The protocol's optional methods are separate one-method interfaces (DocumentDelegate…Handler): implement the ones you need on the same value and the framework will call them too.

type DocumentDelegateDidMatchStringHandler added in v0.17.0

type DocumentDelegateDidMatchStringHandler interface {
	DidMatchString(instance *Selection)
}

DocumentDelegateDidMatchStringHandler is the optional PDFDocumentDelegate method didMatchString:. Implement it on a DocumentDelegate value to receive that callback; a value without it is simply never sent one.

type DocumentDelegateDocumentDidBeginDocumentFindHandler added in v0.17.0

type DocumentDelegateDocumentDidBeginDocumentFindHandler interface {
	DocumentDidBeginDocumentFind(notification obj.Object)
}

DocumentDelegateDocumentDidBeginDocumentFindHandler is the optional PDFDocumentDelegate method documentDidBeginDocumentFind:. Implement it on a DocumentDelegate value to receive that callback; a value without it is simply never sent one.

type DocumentDelegateDocumentDidBeginPageFindHandler added in v0.17.0

type DocumentDelegateDocumentDidBeginPageFindHandler interface {
	DocumentDidBeginPageFind(notification obj.Object)
}

DocumentDelegateDocumentDidBeginPageFindHandler is the optional PDFDocumentDelegate method documentDidBeginPageFind:. Implement it on a DocumentDelegate value to receive that callback; a value without it is simply never sent one.

type DocumentDelegateDocumentDidEndDocumentFindHandler added in v0.17.0

type DocumentDelegateDocumentDidEndDocumentFindHandler interface {
	DocumentDidEndDocumentFind(notification obj.Object)
}

DocumentDelegateDocumentDidEndDocumentFindHandler is the optional PDFDocumentDelegate method documentDidEndDocumentFind:. Implement it on a DocumentDelegate value to receive that callback; a value without it is simply never sent one.

type DocumentDelegateDocumentDidEndPageFindHandler added in v0.17.0

type DocumentDelegateDocumentDidEndPageFindHandler interface {
	DocumentDidEndPageFind(notification obj.Object)
}

DocumentDelegateDocumentDidEndPageFindHandler is the optional PDFDocumentDelegate method documentDidEndPageFind:. Implement it on a DocumentDelegate value to receive that callback; a value without it is simply never sent one.

type DocumentDelegateDocumentDidFindMatchHandler added in v0.17.0

type DocumentDelegateDocumentDidFindMatchHandler interface {
	DocumentDidFindMatch(notification obj.Object)
}

DocumentDelegateDocumentDidFindMatchHandler is the optional PDFDocumentDelegate method documentDidFindMatch:. Implement it on a DocumentDelegate value to receive that callback; a value without it is simply never sent one.

type DocumentDelegateDocumentDidUnlockHandler added in v0.17.0

type DocumentDelegateDocumentDidUnlockHandler interface {
	DocumentDidUnlock(notification obj.Object)
}

DocumentDelegateDocumentDidUnlockHandler is the optional PDFDocumentDelegate method documentDidUnlock:. Implement it on a DocumentDelegate value to receive that callback; a value without it is simply never sent one.

type DocumentPermissions added in v0.17.0

type DocumentPermissions int64

An enumeration that specifies document permissions status.

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

func (DocumentPermissions) String added in v0.17.0

func (e DocumentPermissions) String() string

String returns the DocumentPermissions constant's name, or its numeric form when the value is not a known constant.

type EntryID added in v0.17.0

type EntryID int32
const (
	EntryIDFirstEntry EntryID = 0
	EntryIDNextEntry  EntryID = -1
	EntryIDLastEntry  EntryID = -2
)

func (EntryID) String added in v0.17.0

func (e EntryID) String() string

String returns the EntryID constant's name, or its numeric form when the value is not a known constant.

type EvCmd

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

func (EvCmd) String

func (e EvCmd) String() string

String returns the EvCmd constant's name, or its numeric form when the value is not a known constant.

type FilesecProperty added in v0.17.0

type FilesecProperty int32
const (
	FilesecPropertyOwner        FilesecProperty = 1
	FilesecPropertyGroup        FilesecProperty = 2
	FilesecPropertyUUID         FilesecProperty = 3
	FilesecPropertyMode         FilesecProperty = 4
	FilesecPropertyACL          FilesecProperty = 5
	FilesecPropertyGrpuuid      FilesecProperty = 6
	FilesecPropertyACLRaw       FilesecProperty = 100
	FilesecPropertyACLAllocsize FilesecProperty = 101
)

func (FilesecProperty) String added in v0.17.0

func (e FilesecProperty) String() string

String returns the FilesecProperty constant's name, or its numeric form when the value is not a known constant.

type Flag added in v0.17.0

type Flag int32
const (
	FlagFlagDeferInherit      Flag = 1
	FlagFlagNoInherit         Flag = 131072
	FlagEntryInherited        Flag = 16
	FlagEntryFileInherit      Flag = 32
	FlagEntryDirectoryInherit Flag = 64
	FlagEntryLimitInherit     Flag = 128
	FlagEntryOnlyInherit      Flag = 256
)

func (Flag) String added in v0.17.0

func (e Flag) String() string

String returns the Flag constant's name, or its numeric form when the value is not a known constant.

type Idtype added in v0.17.0

type Idtype int32
const (
	IdtypeAll  Idtype = 0
	IdtypePid  Idtype = 1
	IdtypePgid Idtype = 2
)

func (Idtype) String added in v0.17.0

func (e Idtype) String() string

String returns the Idtype constant's name, or its numeric form when the value is not a known constant.

type InterpolationQuality added in v0.17.0

type InterpolationQuality int64

A wrapper for the specified interpolation quality.

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

func (InterpolationQuality) String added in v0.17.0

func (e InterpolationQuality) String() string

String returns the InterpolationQuality constant's name, or its numeric form when the value is not a known constant.

type IpcInfoObjectType added in v0.17.0

type IpcInfoObjectType uint32
const (
	IpcInfoObjectTypeNone               IpcInfoObjectType = 0
	IpcInfoObjectTypeThreadControl      IpcInfoObjectType = 1
	IpcInfoObjectTypeTaskControl        IpcInfoObjectType = 2
	IpcInfoObjectTypeHost               IpcInfoObjectType = 3
	IpcInfoObjectTypeHostPriv           IpcInfoObjectType = 4
	IpcInfoObjectTypeProcessor          IpcInfoObjectType = 5
	IpcInfoObjectTypeProcessorSet       IpcInfoObjectType = 6
	IpcInfoObjectTypeProcessorSetName   IpcInfoObjectType = 7
	IpcInfoObjectTypeTimer              IpcInfoObjectType = 8
	IpcInfoObjectTypePortSubstOnce      IpcInfoObjectType = 9
	IpcInfoObjectTypeMig                IpcInfoObjectType = 10
	IpcInfoObjectTypeMemoryObject       IpcInfoObjectType = 11
	IpcInfoObjectTypeXmmPager           IpcInfoObjectType = 12
	IpcInfoObjectTypeXmmKernel          IpcInfoObjectType = 13
	IpcInfoObjectTypeXmmReply           IpcInfoObjectType = 14
	IpcInfoObjectTypeUndReply           IpcInfoObjectType = 15
	IpcInfoObjectTypeHostNotify         IpcInfoObjectType = 16
	IpcInfoObjectTypeHostSecurity       IpcInfoObjectType = 17
	IpcInfoObjectTypeLedger             IpcInfoObjectType = 18
	IpcInfoObjectTypeMainDevice         IpcInfoObjectType = 19
	IpcInfoObjectTypeTaskName           IpcInfoObjectType = 20
	IpcInfoObjectTypeSubsystem          IpcInfoObjectType = 21
	IpcInfoObjectTypeIODoneQueue        IpcInfoObjectType = 22
	IpcInfoObjectTypeSemaphore          IpcInfoObjectType = 23
	IpcInfoObjectTypeLockSet            IpcInfoObjectType = 24
	IpcInfoObjectTypeClock              IpcInfoObjectType = 25
	IpcInfoObjectTypeClockCtrl          IpcInfoObjectType = 26
	IpcInfoObjectTypeIokitIdent         IpcInfoObjectType = 27
	IpcInfoObjectTypeNamedEntry         IpcInfoObjectType = 28
	IpcInfoObjectTypeIokitConnect       IpcInfoObjectType = 29
	IpcInfoObjectTypeIokitObject        IpcInfoObjectType = 30
	IpcInfoObjectTypeUpl                IpcInfoObjectType = 31
	IpcInfoObjectTypeMemObjControl      IpcInfoObjectType = 32
	IpcInfoObjectTypeAuSessionport      IpcInfoObjectType = 33
	IpcInfoObjectTypeFileport           IpcInfoObjectType = 34
	IpcInfoObjectTypeLabelh             IpcInfoObjectType = 35
	IpcInfoObjectTypeTaskResume         IpcInfoObjectType = 36
	IpcInfoObjectTypeVoucher            IpcInfoObjectType = 37
	IpcInfoObjectTypeVoucherAttrControl IpcInfoObjectType = 38
	IpcInfoObjectTypeWorkInterval       IpcInfoObjectType = 39
	IpcInfoObjectTypeUxHandler          IpcInfoObjectType = 40
	IpcInfoObjectTypeUextObject         IpcInfoObjectType = 41
	IpcInfoObjectTypeArcadeReg          IpcInfoObjectType = 42
	IpcInfoObjectTypeEventlink          IpcInfoObjectType = 43
	IpcInfoObjectTypeTaskInspect        IpcInfoObjectType = 44
	IpcInfoObjectTypeTaskRead           IpcInfoObjectType = 45
	IpcInfoObjectTypeThreadInspect      IpcInfoObjectType = 46
	IpcInfoObjectTypeThreadRead         IpcInfoObjectType = 47
	IpcInfoObjectTypeSuidCred           IpcInfoObjectType = 48
	IpcInfoObjectTypeHypervisor         IpcInfoObjectType = 49
	IpcInfoObjectTypeTaskIDToken        IpcInfoObjectType = 50
	IpcInfoObjectTypeTaskFatal          IpcInfoObjectType = 51
	IpcInfoObjectTypeKcdata             IpcInfoObjectType = 52
	IpcInfoObjectTypeExclavesResource   IpcInfoObjectType = 53
	IpcInfoObjectTypeThreadResume       IpcInfoObjectType = 54
	IpcInfoObjectTypeUnknown            IpcInfoObjectType = 4294967295
)

func (IpcInfoObjectType) String added in v0.17.0

func (e IpcInfoObjectType) String() string

String returns the IpcInfoObjectType constant's name, or its numeric form when the value is not a known constant.

type LaunchDataType added in v0.17.0

type LaunchDataType int32
const (
	LaunchDataTypeDictionary LaunchDataType = 1
	LaunchDataTypeArray      LaunchDataType = 2
	LaunchDataTypeFd         LaunchDataType = 3
	LaunchDataTypeInteger    LaunchDataType = 4
	LaunchDataTypeReal       LaunchDataType = 5
	LaunchDataTypeBool       LaunchDataType = 6
	LaunchDataTypeString     LaunchDataType = 7
	LaunchDataTypeOpaque     LaunchDataType = 8
	LaunchDataTypeErrno      LaunchDataType = 9
	LaunchDataTypeMachport   LaunchDataType = 10
)

func (LaunchDataType) String added in v0.17.0

func (e LaunchDataType) String() string

String returns the LaunchDataType constant's name, or its numeric form when the value is not a known constant.

type LineStyle added in v0.17.0

type LineStyle int64

The following constants specify the available line ending styles.

const (
	// No line ending.
	KPDFLineStyleNone LineStyle = 0
	// A square line ending filled with the annotation’s interior color, if any.
	KPDFLineStyleSquare LineStyle = 1
	// A circular line ending filled with the annotation’s interior color, if any.
	KPDFLineStyleCircle LineStyle = 2
	// A diamond-shaped line ending filled with the annotation’s interior color, if any.
	KPDFLineStyleDiamond LineStyle = 3
	// An open arrowhead line ending, composed from two short lines meeting in an acute angle at the line end.
	KPDFLineStyleOpenArrow LineStyle = 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 LineStyle = 5
)

func LineStyleFromName added in v0.17.0

func LineStyleFromName(name string) LineStyle

LineStyleFromName returns a line style that corresponds to the specified name.

func (LineStyle) String added in v0.17.0

func (e LineStyle) String() string

String returns the LineStyle constant's name, or its numeric form when the value is not a known constant.

type MDLabelDomain

type MDLabelDomain int32

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

String returns the MDLabelDomain constant's name, or its numeric form when the value is not a known constant.

type MDQueryOptionFlags

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

func (MDQueryOptionFlags) String

func (e MDQueryOptionFlags) String() string

String returns the MDQueryOptionFlags constant's name, or its numeric form when the value is not a known constant.

type MDQuerySortOptionFlags

type MDQuerySortOptionFlags int32
const (
	KMDQueryReverseSortOrderFlag MDQuerySortOptionFlags = 1
)

func (MDQuerySortOptionFlags) String

func (e MDQuerySortOptionFlags) String() string

String returns the MDQuerySortOptionFlags constant's name, or its numeric form when the value is not a known constant.

type MachVMRangeFlags added in v0.17.0

type MachVMRangeFlags uint64

Bitmask — values may be combined with |.

const (
	MachVMRangeFlagsNone MachVMRangeFlags = 0
)

func (MachVMRangeFlags) String added in v0.17.0

func (e MachVMRangeFlags) String() string

String returns the MachVMRangeFlags constant's name, or its numeric form when the value is not a known constant.

type MachVMRangeFlavor added in v0.17.0

type MachVMRangeFlavor uint32
const (
	MachVMRangeFlavorInvalid MachVMRangeFlavor = 0
	MachVMRangeFlavorV1      MachVMRangeFlavor = 1
)

func (MachVMRangeFlavor) String added in v0.17.0

func (e MachVMRangeFlavor) String() string

String returns the MachVMRangeFlavor constant's name, or its numeric form when the value is not a known constant.

type MachVMRangeTag added in v0.17.0

type MachVMRangeTag uint16
const (
	MachVMRangeTagDefault MachVMRangeTag = 0
	MachVMRangeTagData    MachVMRangeTag = 1
	MachVMRangeTagFixed   MachVMRangeTag = 2
)

func (MachVMRangeTag) String added in v0.17.0

func (e MachVMRangeTag) String() string

String returns the MachVMRangeTag constant's name, or its numeric form when the value is not a known constant.

type MarkupType added in v0.17.0

type MarkupType int64

The styles available for markup annotations in PDFKit.

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

func (MarkupType) String added in v0.17.0

func (e MarkupType) String() string

String returns the MarkupType constant's name, or its numeric form when the value is not a known constant.

type MpoFlags added in v0.17.0

type MpoFlags uint32

Bitmask — values may be combined with |.

const (
	MpoFlagsPort                        MpoFlags = 0
	MpoFlagsServicePort                 MpoFlags = 1024
	MpoFlagsConnectionPort              MpoFlags = 2048
	MpoFlagsReplyPort                   MpoFlags = 4096
	MpoFlagsWeakReplyPort               MpoFlags = 16384
	MpoFlagsNotificationPort            MpoFlags = 17408
	MpoFlagsExceptionPort               MpoFlags = 32768
	MpoFlagsConnectionPortWithPortArray MpoFlags = 65536
)

func (MpoFlags) String added in v0.17.0

func (e MpoFlags) String() string

String returns the MpoFlags constant's name, or its numeric form when the value is not a known constant.

type NXMouseButton

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

func (NXMouseButton) String

func (e NXMouseButton) String() string

String returns the NXMouseButton constant's name, or its numeric form when the value is not a known constant.

type OSClockid added in v0.17.0

type OSClockid uint32
const (
	OSClockidTime OSClockid = 32
)

func (OSClockid) String added in v0.17.0

func (e OSClockid) String() string

String returns the OSClockid constant's name, or its numeric form when the value is not a known constant.

type OSUnfairLockFlags added in v0.17.0

type OSUnfairLockFlags uint32

Bitmask — values may be combined with |.

const (
	OSUnfairLockFlagsNone         OSUnfairLockFlags = 0
	OSUnfairLockFlagsAdaptiveSpin OSUnfairLockFlags = 262144
)

func (OSUnfairLockFlags) String added in v0.17.0

func (e OSUnfairLockFlags) String() string

String returns the OSUnfairLockFlags constant's name, or its numeric form when the value is not a known constant.

type Outline added in v0.17.0

type Outline struct {
	objref.Handle
}

Outline is an idiomatic wrapper over the Objective-C class PDFOutline.

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

func NewOutline added in v0.17.0

func NewOutline() *Outline

NewOutline creates a new Outline.

func OutlineFromID added in v0.17.0

func OutlineFromID(id objc.ID) *Outline

OutlineFromID adopts an existing Objective-C object as a Outline (nil for 0), retaining it and registering a release finalizer.

func (*Outline) Action added in v0.18.0

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

Action returns the action.

func (*Outline) ChildAtIndex added in v0.17.0

func (o *Outline) ChildAtIndex(index int) *Outline

ChildAtIndex returns the child outline object at the specified index.

func (*Outline) Description added in v0.17.0

func (o *Outline) Description() string

Description returns the object's -description text.

func (*Outline) Destination added in v0.17.0

func (o *Outline) Destination() *Destination

Destination returns the destination.

func (*Outline) Document added in v0.17.0

func (o *Outline) Document() *Document

Document returns the document.

func (*Outline) Index added in v0.17.0

func (o *Outline) Index() int

Index returns the index.

func (*Outline) InsertChildAtIndex added in v0.17.0

func (o *Outline) InsertChildAtIndex(child *Outline, index int)

InsertChildAtIndex inserts the specified outline object at the specified index.

func (*Outline) IsEqual added in v0.17.0

func (o *Outline) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*Outline) IsKind added in v0.17.0

func (o *Outline) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*Outline) IsOpen added in v0.17.0

func (o *Outline) IsOpen() bool

IsOpen reports whether the object is open.

func (*Outline) Label added in v0.17.0

func (o *Outline) Label() string

Label returns the label.

func (*Outline) NumberOfChildren added in v0.17.0

func (o *Outline) NumberOfChildren() int

NumberOfChildren returns the number of children.

func (*Outline) Parent added in v0.18.0

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

Parent returns the parent.

func (*Outline) RemoveFromParent added in v0.17.0

func (o *Outline) RemoveFromParent()

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

func (*Outline) String added in v0.17.0

func (o *Outline) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*Outline) WithAction added in v0.17.0

func (o *Outline) WithAction(action unsafe.Pointer) *Outline

WithAction sets returns the action performed when users click the outline.

func (*Outline) WithDestination added in v0.17.0

func (o *Outline) WithDestination(destination *Destination) *Outline

WithDestination sets returns the destination associated with the outline.

func (*Outline) WithIsOpen added in v0.17.0

func (o *Outline) WithIsOpen(isOpen bool) *Outline

WithIsOpen sets returns a Boolean value that indicates whether the outline object is initially disclosed.

func (*Outline) WithLabel added in v0.17.0

func (o *Outline) WithLabel(label string) *Outline

WithLabel sets returns the label for the outline.

type PMPageToPaperMappingType

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

func (PMPageToPaperMappingType) String

func (e PMPageToPaperMappingType) String() string

String returns the PMPageToPaperMappingType constant's name, or its numeric form when the value is not a known constant.

type Page added in v0.17.0

type Page struct {
	objref.Handle
}

Page is an idiomatic wrapper over the Objective-C class PDFPage.

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

func NewPage added in v0.17.0

func NewPage() *Page

NewPage creates a new Page.

func NewPageWithImage added in v0.17.0

func NewPageWithImage(image obj.Object) *Page

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

func NewPageWithImageOptions added in v0.17.0

func NewPageWithImageOptions(image obj.Object, options obj.Object) *Page

NewPageWithImageOptions creates a new Page.

func PageFromID added in v0.17.0

func PageFromID(id objc.ID) *Page

PageFromID adopts an existing Objective-C object as a Page (nil for 0), retaining it and registering a release finalizer.

func (*Page) AddAnnotation added in v0.17.0

func (p *Page) AddAnnotation(annotation *Annotation)

AddAnnotation adds the specified annotation object to the page.

func (*Page) AnnotationAtPoint added in v0.17.0

func (p *Page) AnnotationAtPoint(point corefoundation.CGPoint) *Annotation

AnnotationAtPoint returns the annotation, if there is one, at the specified point.

func (*Page) Annotations added in v0.17.0

func (p *Page) Annotations() []*Annotation

Annotations returns the annotations.

Annotations returns the collection as a Go slice.

func (*Page) AttributedString added in v0.17.0

func (p *Page) AttributedString() *foundation.AttributedString

AttributedString returns the attributed string.

func (*Page) BoundsForBox added in v0.17.0

func (p *Page) BoundsForBox(box DisplayBox) corefoundation.CGRect

BoundsForBox returns the bounds for the specified PDF display box.

func (*Page) CharacterBoundsAtIndex added in v0.17.0

func (p *Page) CharacterBoundsAtIndex(index int) corefoundation.CGRect

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

func (*Page) CharacterIndexAtPoint added in v0.17.0

func (p *Page) CharacterIndexAtPoint(point corefoundation.CGPoint) int

CharacterIndexAtPoint returns the character index value for the specified point in page space.

func (*Page) DataRepresentation added in v0.17.0

func (p *Page) DataRepresentation() []byte

DataRepresentation returns the data representation.

func (*Page) Description added in v0.17.0

func (p *Page) Description() string

Description returns the object's -description text.

func (*Page) DisplaysAnnotations added in v0.17.0

func (p *Page) DisplaysAnnotations() bool

DisplaysAnnotations wraps the corresponding Objective-C method.

func (*Page) Document added in v0.17.0

func (p *Page) Document() *Document

Document returns the document.

func (*Page) DrawWithBox added in v0.17.0

func (p *Page) DrawWithBox(box DisplayBox)

DrawWithBox draws the page within the specified box.

func (*Page) DrawWithBoxToContext added in v0.17.0

func (p *Page) DrawWithBoxToContext(box DisplayBox, context_ coregraphics.CGContextRef)

DrawWithBoxToContext draws with box to context.

func (*Page) IsEqual added in v0.17.0

func (p *Page) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*Page) IsKind added in v0.17.0

func (p *Page) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*Page) Label added in v0.17.0

func (p *Page) Label() string

Label returns the label.

func (*Page) NumberOfCharacters added in v0.17.0

func (p *Page) NumberOfCharacters() int

NumberOfCharacters returns the number of characters.

func (*Page) PageRef added in v0.17.0

func (p *Page) PageRef() coregraphics.CGPDFPageRef

PageRef returns the page ref.

func (*Page) RemoveAnnotation added in v0.17.0

func (p *Page) RemoveAnnotation(annotation *Annotation)

RemoveAnnotation removes the specified annotation from the page.

func (*Page) Rotation added in v0.17.0

func (p *Page) Rotation() int

Rotation returns the rotation.

func (*Page) SelectionForLineAtPoint added in v0.17.0

func (p *Page) SelectionForLineAtPoint(point corefoundation.CGPoint) *Selection

SelectionForLineAtPoint returns the whole line of text that includes the specified point.

func (*Page) SelectionForRange added in v0.17.0

func (p *Page) SelectionForRange(range_ foundation.NSRange) *Selection

SelectionForRange returns the text contained within the specified range.

func (*Page) SelectionForRect added in v0.17.0

func (p *Page) SelectionForRect(rect corefoundation.CGRect) *Selection

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

func (*Page) SelectionForWordAtPoint added in v0.17.0

func (p *Page) SelectionForWordAtPoint(point corefoundation.CGPoint) *Selection

SelectionForWordAtPoint returns the whole word that includes the specified point.

func (*Page) SelectionFromPointToPoint added in v0.17.0

func (p *Page) SelectionFromPointToPoint(startPoint corefoundation.CGPoint, endPoint corefoundation.CGPoint) *Selection

SelectionFromPointToPoint returns the text between the two specified points in page space.

func (*Page) SetBoundsForBox added in v0.17.0

func (p *Page) SetBoundsForBox(bounds corefoundation.CGRect, box DisplayBox)

SetBoundsForBox sets the bounds for the specified box.

func (*Page) String added in v0.17.0

func (p *Page) String() string

String returns the string.

func (*Page) ThumbnailOfSizeForBox added in v0.17.0

func (p *Page) ThumbnailOfSizeForBox(size corefoundation.CGSize, box DisplayBox) obj.Object

ThumbnailOfSizeForBox wraps the corresponding Objective-C method.

func (*Page) TransformContextForBox added in v0.17.0

func (p *Page) TransformContextForBox(context_ coregraphics.CGContextRef, box DisplayBox)

TransformContextForBox wraps the corresponding Objective-C method.

func (*Page) TransformContextForBox2 added in v0.17.0

func (p *Page) TransformContextForBox2(box DisplayBox)

TransformContextForBox2 transforms the current context, given the specified box.

func (*Page) TransformForBox added in v0.17.0

func (p *Page) TransformForBox(box DisplayBox) corefoundation.CGAffineTransform

TransformForBox wraps the corresponding Objective-C method.

func (*Page) WithDisplaysAnnotations added in v0.17.0

func (p *Page) WithDisplaysAnnotations(displaysAnnotations bool) *Page

WithDisplaysAnnotations sets returns a Boolean value indicating whether annotations are displayed for the page.

func (*Page) WithRotation added in v0.17.0

func (p *Page) WithRotation(rotation int) *Page

WithRotation sets sets the rotation angle for the page in degrees.

type PageOverlayViewProvider added in v0.17.0

type PageOverlayViewProvider interface {
	PdfViewOverlayViewForPage(view *View, page *Page) obj.Object
}

PageOverlayViewProvider is the Go form of the Objective-C protocol PDFPageOverlayViewProvider.

type Perm added in v0.17.0

type Perm int32
const (
	PermReadData           Perm = 2
	PermListDirectory      Perm = 2
	PermWriteData          Perm = 4
	PermAddFile            Perm = 4
	PermExecute            Perm = 8
	PermSearch             Perm = 8
	PermDelete             Perm = 16
	PermAppendData         Perm = 32
	PermAddSubdirectory    Perm = 32
	PermDeleteChild        Perm = 64
	PermReadAttributes     Perm = 128
	PermWriteAttributes    Perm = 256
	PermReadExtattributes  Perm = 512
	PermWriteExtattributes Perm = 1024
	PermReadSecurity       Perm = 2048
	PermWriteSecurity      Perm = 4096
	PermChangeOwner        Perm = 8192
	PermSynchronize        Perm = 1048576
)

func (Perm) String added in v0.17.0

func (e Perm) String() string

String returns the Perm constant's name, or its numeric form when the value is not a known constant.

type PrintScalingMode added in v0.17.0

type PrintScalingMode 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 PrintScalingMode = 0
	// Scale each page up or down to best fit the paper size.
	KPDFPrintPageScaleToFit PrintScalingMode = 1
	// Scale large pages down to fit the paper size (smaller pages do not get scaled up).
	KPDFPrintPageScaleDownToFit PrintScalingMode = 2
)

func (PrintScalingMode) String added in v0.17.0

func (e PrintScalingMode) String() string

String returns the PrintScalingMode constant's name, or its numeric form when the value is not a known constant.

type PtrauthKey added in v0.17.0

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

func (PtrauthKey) String added in v0.17.0

func (e PtrauthKey) String() string

String returns the PtrauthKey constant's name, or its numeric form when the value is not a known constant.

type QosClass added in v0.17.0

type QosClass uint32
const (
	QosClassUserInteractive QosClass = 33
	QosClassUserInitiated   QosClass = 25
	QosClassDefault         QosClass = 21
	QosClassUtility         QosClass = 17
	QosClassBackground      QosClass = 9
	QosClassUnspecified     QosClass = 0
)

func (QosClass) String added in v0.17.0

func (e QosClass) String() string

String returns the QosClass constant's name, or its numeric form when the value is not a known constant.

type Selection added in v0.17.0

type Selection struct {
	objref.Handle
}

Selection is an idiomatic wrapper over the Objective-C class PDFSelection.

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

func NewSelectionWithDocument added in v0.17.0

func NewSelectionWithDocument(document *Document) *Selection

NewSelectionWithDocument returns an empty PDFSelection object.

func SelectionFromID added in v0.17.0

func SelectionFromID(id objc.ID) *Selection

SelectionFromID adopts an existing Objective-C object as a Selection (nil for 0), retaining it and registering a release finalizer.

func (*Selection) AddSelection added in v0.17.0

func (s *Selection) AddSelection(selection *Selection)

AddSelection adds the specified selection to the receiving selection.

func (*Selection) AddSelections added in v0.17.0

func (s *Selection) AddSelections(selections []*Selection)

AddSelections adds the specified array of selections to the receiving selection.

func (*Selection) AttributedString added in v0.17.0

func (s *Selection) AttributedString() *foundation.AttributedString

AttributedString returns the attributed string.

func (*Selection) BoundsForPage added in v0.17.0

func (s *Selection) BoundsForPage(page *Page) corefoundation.CGRect

BoundsForPage returns the bounds of the selection on the specified page.

func (*Selection) Color added in v0.18.0

func (s *Selection) Color() unsafe.Pointer

Color returns the color.

func (*Selection) Description added in v0.17.0

func (s *Selection) Description() string

Description returns the object's -description text.

func (*Selection) DrawForPageActive added in v0.17.0

func (s *Selection) DrawForPageActive(page *Page, active bool)

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

func (*Selection) DrawForPageWithBoxActive added in v0.17.0

func (s *Selection) DrawForPageWithBoxActive(page *Page, box DisplayBox, active bool)

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

func (*Selection) ExtendSelectionAtEnd added in v0.17.0

func (s *Selection) ExtendSelectionAtEnd(succeed int)

ExtendSelectionAtEnd extends the selection from its end toward the end of the document.

func (*Selection) ExtendSelectionAtStart added in v0.17.0

func (s *Selection) ExtendSelectionAtStart(precede int)

ExtendSelectionAtStart extends the selection from its start toward the beginning of the document.

func (*Selection) ExtendSelectionForLineBoundaries added in v0.17.0

func (s *Selection) ExtendSelectionForLineBoundaries()

ExtendSelectionForLineBoundaries wraps the corresponding Objective-C method.

func (*Selection) IsEqual added in v0.17.0

func (s *Selection) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*Selection) IsKind added in v0.17.0

func (s *Selection) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*Selection) NumberOfTextRangesOnPage added in v0.17.0

func (s *Selection) NumberOfTextRangesOnPage(page *Page) int

NumberOfTextRangesOnPage wraps the corresponding Objective-C method.

func (*Selection) Pages added in v0.17.0

func (s *Selection) Pages() []*Page

Pages returns the pages.

Pages returns the collection as a Go slice.

func (*Selection) RangeAtIndexOnPage added in v0.17.0

func (s *Selection) RangeAtIndexOnPage(index int, page *Page) foundation.NSRange

RangeAtIndexOnPage wraps the corresponding Objective-C method.

func (*Selection) SelectionsByLine added in v0.17.0

func (s *Selection) SelectionsByLine() []*Selection

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

SelectionsByLine returns the collection as a Go slice.

func (*Selection) String added in v0.17.0

func (s *Selection) String() string

String returns the string.

func (*Selection) WithColor added in v0.17.0

func (s *Selection) WithColor(color unsafe.Pointer) *Selection

WithColor sets sets the color used for the drawing of a selection in both active and inactive states.

type SelectionGranularity added in v0.17.0

type SelectionGranularity uint64
const (
	SelectionGranularityCharacter SelectionGranularity = 0
	SelectionGranularityWord      SelectionGranularity = 1
	SelectionGranularityLine      SelectionGranularity = 2
)

func (SelectionGranularity) String added in v0.17.0

func (e SelectionGranularity) String() string

String returns the SelectionGranularity constant's name, or its numeric form when the value is not a known constant.

type Tag added in v0.17.0

type Tag int32
const (
	TagUndefinedTag  Tag = 0
	TagExtendedAllow Tag = 1
	TagExtendedDeny  Tag = 2
)

func (Tag) String added in v0.17.0

func (e Tag) String() string

String returns the Tag constant's name, or its numeric form when the value is not a known constant.

type TextAnnotationIconType added in v0.17.0

type TextAnnotationIconType int64

The types of icons that a text annotation can use.

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

func (TextAnnotationIconType) String added in v0.17.0

func (e TextAnnotationIconType) String() string

String returns the TextAnnotationIconType constant's name, or its numeric form when the value is not a known constant.

type ThumbnailView added in v0.17.0

type ThumbnailView struct {
	objref.Handle
}

ThumbnailView is an idiomatic wrapper over the Objective-C class PDFThumbnailView.

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

func NewThumbnailView added in v0.17.0

func NewThumbnailView() *ThumbnailView

NewThumbnailView creates a new ThumbnailView.

func ThumbnailViewFromID added in v0.17.0

func ThumbnailViewFromID(id objc.ID) *ThumbnailView

ThumbnailViewFromID adopts an existing Objective-C object as a ThumbnailView (nil for 0), retaining it and registering a release finalizer.

func (*ThumbnailView) AllowsDragging added in v0.17.0

func (tv *ThumbnailView) AllowsDragging() bool

AllowsDragging wraps the corresponding Objective-C method.

func (*ThumbnailView) AllowsMultipleSelection added in v0.17.0

func (tv *ThumbnailView) AllowsMultipleSelection() bool

AllowsMultipleSelection wraps the corresponding Objective-C method.

func (*ThumbnailView) BackgroundColor added in v0.17.0

func (tv *ThumbnailView) BackgroundColor() obj.Object

BackgroundColor returns the background color.

func (*ThumbnailView) Description added in v0.17.0

func (tv *ThumbnailView) Description() string

Description returns the object's -description text.

func (*ThumbnailView) IsEqual added in v0.17.0

func (tv *ThumbnailView) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*ThumbnailView) IsKind added in v0.17.0

func (tv *ThumbnailView) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*ThumbnailView) LabelFont added in v0.17.0

func (tv *ThumbnailView) LabelFont() obj.Object

LabelFont returns the label font.

func (*ThumbnailView) MaximumNumberOfColumns added in v0.17.0

func (tv *ThumbnailView) MaximumNumberOfColumns() int

MaximumNumberOfColumns returns the maximum number of columns.

func (*ThumbnailView) PDFView added in v0.17.0

func (tv *ThumbnailView) PDFView() *View

PDFView returns the pdf view.

func (*ThumbnailView) SelectedPages added in v0.17.0

func (tv *ThumbnailView) SelectedPages() []*Page

SelectedPages returns the selected pages.

SelectedPages returns the collection as a Go slice.

func (*ThumbnailView) String added in v0.17.0

func (tv *ThumbnailView) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*ThumbnailView) ThumbnailSize added in v0.17.0

func (tv *ThumbnailView) ThumbnailSize() corefoundation.CGSize

ThumbnailSize returns the thumbnail size.

func (*ThumbnailView) WithAllowsDragging added in v0.17.0

func (tv *ThumbnailView) WithAllowsDragging(allowsDragging bool) *ThumbnailView

WithAllowsDragging sets returns a Boolean value indicating whether users can drag thumbnails (that is, re-order pages in the document) within the thumbnail view.

func (*ThumbnailView) WithAllowsMultipleSelection added in v0.17.0

func (tv *ThumbnailView) WithAllowsMultipleSelection(allowsMultipleSelection bool) *ThumbnailView

WithAllowsMultipleSelection sets returns a Boolean value indicating whether users can select multiple thumbnails in the thumbnail view at one time.

func (*ThumbnailView) WithBackgroundColor added in v0.17.0

func (tv *ThumbnailView) WithBackgroundColor(backgroundColor obj.Object) *ThumbnailView

WithBackgroundColor sets returns the color used in the background of the thumbnail view.

func (*ThumbnailView) WithLabelFont added in v0.17.0

func (tv *ThumbnailView) WithLabelFont(labelFont obj.Object) *ThumbnailView

WithLabelFont sets returns the font used to label the thumbnails.

func (*ThumbnailView) WithMaximumNumberOfColumns added in v0.17.0

func (tv *ThumbnailView) WithMaximumNumberOfColumns(maximumNumberOfColumns int) *ThumbnailView

WithMaximumNumberOfColumns sets returns the maximum number of columns of thumbnails the thumbnail view can display.

func (*ThumbnailView) WithPDFView added in v0.17.0

func (tv *ThumbnailView) WithPDFView(pdfView *View) *ThumbnailView

WithPDFView sets returns the PDFView object associated with the thumbnail view.

func (*ThumbnailView) WithThumbnailSize added in v0.17.0

func (tv *ThumbnailView) WithThumbnailSize(thumbnailSize corefoundation.CGSize) *ThumbnailView

WithThumbnailSize sets returns the maximum width and height of the thumbnails in the thumbnail view.

type Type added in v0.17.0

type Type int32
const (
	TypeExtended Type = 256
	TypeAccess   Type = 0
	TypeDefault  Type = 1
	TypeAfs      Type = 2
	TypeCoda     Type = 3
	TypeNtfs     Type = 4
	TypeNwfs     Type = 5
)

func (Type) String added in v0.17.0

func (e Type) String() string

String returns the Type constant's name, or its numeric form when the value is not a known constant.

type View added in v0.17.0

type View struct {
	objref.Handle
}

View is an idiomatic wrapper over the Objective-C class PDFView.

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

func NewView added in v0.17.0

func NewView() *View

NewView creates a new View.

func ViewFromID added in v0.17.0

func ViewFromID(id objc.ID) *View

ViewFromID adopts an existing Objective-C object as a View (nil for 0), retaining it and registering a release finalizer.

func (*View) AcceptsDraggedFiles added in v0.17.0

func (v_ *View) AcceptsDraggedFiles() bool

AcceptsDraggedFiles wraps the corresponding Objective-C method.

func (*View) AllowsDragging added in v0.17.0

func (v_ *View) AllowsDragging() bool

AllowsDragging wraps the corresponding Objective-C method.

func (*View) AnnotationsChangedOnPage added in v0.17.0

func (v_ *View) AnnotationsChangedOnPage(page *Page)

AnnotationsChangedOnPage wraps the corresponding Objective-C method.

func (*View) AreaOfInterestForMouse added in v0.17.0

func (v_ *View) AreaOfInterestForMouse(event obj.Object) AreaOfInterest

AreaOfInterestForMouse wraps the corresponding Objective-C method.

func (*View) AreaOfInterestForPoint added in v0.17.0

func (v_ *View) AreaOfInterestForPoint(cursorLocation corefoundation.CGPoint) AreaOfInterest

AreaOfInterestForPoint wraps the corresponding Objective-C method.

func (*View) AutoScales added in v0.17.0

func (v_ *View) AutoScales() bool

AutoScales wraps the corresponding Objective-C method.

func (*View) BackgroundColor added in v0.17.0

func (v_ *View) BackgroundColor() obj.Object

BackgroundColor returns the background color.

func (*View) CanGoBack added in v0.17.0

func (v_ *View) CanGoBack() bool

CanGoBack wraps the corresponding Objective-C method.

func (*View) CanGoForward added in v0.17.0

func (v_ *View) CanGoForward() bool

CanGoForward wraps the corresponding Objective-C method.

func (*View) CanGoToFirstPage added in v0.17.0

func (v_ *View) CanGoToFirstPage() bool

CanGoToFirstPage wraps the corresponding Objective-C method.

func (*View) CanGoToLastPage added in v0.17.0

func (v_ *View) CanGoToLastPage() bool

CanGoToLastPage wraps the corresponding Objective-C method.

func (*View) CanGoToNextPage added in v0.17.0

func (v_ *View) CanGoToNextPage() bool

CanGoToNextPage wraps the corresponding Objective-C method.

func (*View) CanGoToPreviousPage added in v0.17.0

func (v_ *View) CanGoToPreviousPage() bool

CanGoToPreviousPage wraps the corresponding Objective-C method.

func (*View) CanZoomIn added in v0.17.0

func (v_ *View) CanZoomIn() bool

CanZoomIn wraps the corresponding Objective-C method.

func (*View) CanZoomOut added in v0.17.0

func (v_ *View) CanZoomOut() bool

CanZoomOut wraps the corresponding Objective-C method.

func (*View) ClearSelection added in v0.17.0

func (v_ *View) ClearSelection()

ClearSelection clears selection.

func (*View) ConvertPointFromPage added in v0.17.0

func (v_ *View) ConvertPointFromPage(point corefoundation.CGPoint, page *Page) corefoundation.CGPoint

ConvertPointFromPage wraps the corresponding Objective-C method.

func (*View) ConvertPointToPage added in v0.17.0

func (v_ *View) ConvertPointToPage(point corefoundation.CGPoint, page *Page) corefoundation.CGPoint

ConvertPointToPage wraps the corresponding Objective-C method.

func (*View) ConvertRectFromPage added in v0.17.0

func (v_ *View) ConvertRectFromPage(rect corefoundation.CGRect, page *Page) corefoundation.CGRect

ConvertRectFromPage wraps the corresponding Objective-C method.

func (*View) ConvertRectToPage added in v0.17.0

func (v_ *View) ConvertRectToPage(rect corefoundation.CGRect, page *Page) corefoundation.CGRect

ConvertRectToPage wraps the corresponding Objective-C method.

func (*View) Copy added in v0.17.0

func (v_ *View) Copy(sender obj.Object)

Copy wraps the corresponding Objective-C method.

func (*View) CurrentDestination added in v0.17.0

func (v_ *View) CurrentDestination() *Destination

CurrentDestination returns the current destination.

func (*View) CurrentPage added in v0.17.0

func (v_ *View) CurrentPage() *Page

CurrentPage returns the current page.

func (*View) CurrentSelection added in v0.17.0

func (v_ *View) CurrentSelection() *Selection

CurrentSelection returns the current selection.

func (*View) Description added in v0.17.0

func (v_ *View) Description() string

Description returns the object's -description text.

func (*View) DisplayBox added in v0.17.0

func (v_ *View) DisplayBox() DisplayBox

DisplayBox returns the display box.

func (*View) DisplayDirection added in v0.17.0

func (v_ *View) DisplayDirection() DisplayDirection

DisplayDirection returns the display direction.

func (*View) DisplayMode added in v0.17.0

func (v_ *View) DisplayMode() DisplayMode

DisplayMode returns the display mode.

func (*View) DisplaysAsBook added in v0.17.0

func (v_ *View) DisplaysAsBook() bool

DisplaysAsBook wraps the corresponding Objective-C method.

func (*View) DisplaysPageBreaks added in v0.17.0

func (v_ *View) DisplaysPageBreaks() bool

DisplaysPageBreaks wraps the corresponding Objective-C method.

func (*View) DisplaysRTL added in v0.17.0

func (v_ *View) DisplaysRTL() bool

DisplaysRTL wraps the corresponding Objective-C method.

func (*View) Document added in v0.17.0

func (v_ *View) Document() *Document

Document returns the document.

func (*View) DocumentView added in v0.17.0

func (v_ *View) DocumentView() obj.Object

DocumentView returns the document view.

func (*View) DrawPage added in v0.17.0

func (v_ *View) DrawPage(page *Page)

DrawPage draws page.

func (*View) DrawPagePost added in v0.17.0

func (v_ *View) DrawPagePost(page *Page)

DrawPagePost draws page post.

func (*View) DrawPagePostToContext added in v0.17.0

func (v_ *View) DrawPagePostToContext(page *Page, context_ coregraphics.CGContextRef)

DrawPagePostToContext draws page post to context.

func (*View) DrawPageToContext added in v0.17.0

func (v_ *View) DrawPageToContext(page *Page, context_ coregraphics.CGContextRef)

DrawPageToContext draws page to context.

func (*View) EnableDataDetectors added in v0.17.0

func (v_ *View) EnableDataDetectors() bool

EnableDataDetectors wraps the corresponding Objective-C method.

func (*View) GoBack added in v0.17.0

func (v_ *View) GoBack(sender obj.Object)

GoBack wraps the corresponding Objective-C method.

func (*View) GoForward added in v0.17.0

func (v_ *View) GoForward(sender obj.Object)

GoForward wraps the corresponding Objective-C method.

func (*View) GoToDestination added in v0.17.0

func (v_ *View) GoToDestination(destination *Destination)

GoToDestination wraps the corresponding Objective-C method.

func (*View) GoToFirstPage added in v0.17.0

func (v_ *View) GoToFirstPage(sender obj.Object)

GoToFirstPage wraps the corresponding Objective-C method.

func (*View) GoToLastPage added in v0.17.0

func (v_ *View) GoToLastPage(sender obj.Object)

GoToLastPage wraps the corresponding Objective-C method.

func (*View) GoToNextPage added in v0.17.0

func (v_ *View) GoToNextPage(sender obj.Object)

GoToNextPage wraps the corresponding Objective-C method.

func (*View) GoToPage added in v0.17.0

func (v_ *View) GoToPage(page *Page)

GoToPage wraps the corresponding Objective-C method.

func (*View) GoToPreviousPage added in v0.17.0

func (v_ *View) GoToPreviousPage(sender obj.Object)

GoToPreviousPage wraps the corresponding Objective-C method.

func (*View) GoToRectOnPage added in v0.17.0

func (v_ *View) GoToRectOnPage(rect corefoundation.CGRect, page *Page)

GoToRectOnPage wraps the corresponding Objective-C method.

func (*View) GoToSelection added in v0.17.0

func (v_ *View) GoToSelection(selection *Selection)

GoToSelection wraps the corresponding Objective-C method.

func (*View) GreekingThreshold added in v0.17.0

func (v_ *View) GreekingThreshold() float64

GreekingThreshold returns the greeking threshold.

func (*View) HighlightedSelections added in v0.18.0

func (v_ *View) HighlightedSelections() unsafe.Pointer

HighlightedSelections returns the highlighted selections.

func (*View) InterpolationQuality added in v0.17.0

func (v_ *View) InterpolationQuality() InterpolationQuality

InterpolationQuality returns the interpolation quality.

func (*View) IsEqual added in v0.17.0

func (v_ *View) IsEqual(other obj.Object) bool

IsEqual reports Objective-C equality (isEqual:) with another object.

func (*View) IsInMarkupMode added in v0.17.0

func (v_ *View) IsInMarkupMode() bool

IsInMarkupMode reports whether the object is in markup mode.

func (*View) IsKind added in v0.17.0

func (v_ *View) IsKind(className string) bool

IsKind reports whether the object is an instance of the named class or a subclass.

func (*View) LayoutDocumentView added in v0.17.0

func (v_ *View) LayoutDocumentView()

LayoutDocumentView wraps the corresponding Objective-C method.

func (*View) MaxScaleFactor added in v0.17.0

func (v_ *View) MaxScaleFactor() float64

MaxScaleFactor returns the max scale factor.

func (*View) MinScaleFactor added in v0.17.0

func (v_ *View) MinScaleFactor() float64

MinScaleFactor returns the min scale factor.

func (*View) PageBreakMargins added in v0.17.0

func (v_ *View) PageBreakMargins() foundation.NSEdgeInsets

PageBreakMargins returns the page break margins.

func (*View) PageForPointNearest added in v0.17.0

func (v_ *View) PageForPointNearest(point corefoundation.CGPoint, nearest bool) *Page

PageForPointNearest wraps the corresponding Objective-C method.

func (*View) PageOverlayViewProvider added in v0.18.0

func (v_ *View) PageOverlayViewProvider() unsafe.Pointer

PageOverlayViewProvider returns the page overlay view provider.

func (*View) PageShadowsEnabled added in v0.17.0

func (v_ *View) PageShadowsEnabled() bool

PageShadowsEnabled wraps the corresponding Objective-C method.

func (*View) PerformAction added in v0.17.0

func (v_ *View) PerformAction(action *Action)

PerformAction performs action.

func (*View) PrintWithInfoAutoRotate added in v0.17.0

func (v_ *View) PrintWithInfoAutoRotate(printInfo obj.Object, doRotate bool)

PrintWithInfoAutoRotate wraps the corresponding Objective-C method.

func (*View) PrintWithInfoAutoRotatePageScaling added in v0.17.0

func (v_ *View) PrintWithInfoAutoRotatePageScaling(printInfo obj.Object, doRotate bool, scale PrintScalingMode)

PrintWithInfoAutoRotatePageScaling wraps the corresponding Objective-C method.

func (*View) RowSizeForPage added in v0.17.0

func (v_ *View) RowSizeForPage(page *Page) corefoundation.CGSize

RowSizeForPage wraps the corresponding Objective-C method.

func (*View) ScaleFactor added in v0.17.0

func (v_ *View) ScaleFactor() float64

ScaleFactor returns the scale factor.

func (*View) ScaleFactorForSizeToFit added in v0.17.0

func (v_ *View) ScaleFactorForSizeToFit() float64

ScaleFactorForSizeToFit returns the scale factor for size to fit.

func (*View) ScrollSelectionToVisible added in v0.17.0

func (v_ *View) ScrollSelectionToVisible(sender obj.Object)

ScrollSelectionToVisible scrolls selection to visible.

func (*View) SelectAll added in v0.17.0

func (v_ *View) SelectAll(sender obj.Object)

SelectAll selects all.

func (*View) SetCurrentSelectionAnimate added in v0.17.0

func (v_ *View) SetCurrentSelectionAnimate(selection *Selection, animate bool)

SetCurrentSelectionAnimate wraps the corresponding Objective-C method.

func (*View) SetCursorForAreaOfInterest added in v0.17.0

func (v_ *View) SetCursorForAreaOfInterest(area AreaOfInterest)

SetCursorForAreaOfInterest wraps the corresponding Objective-C method.

func (*View) ShouldAntiAlias added in v0.17.0

func (v_ *View) ShouldAntiAlias() bool

ShouldAntiAlias wraps the corresponding Objective-C method.

func (*View) String added in v0.17.0

func (v_ *View) String() string

String returns the object's -description text, so a wrapper prints usefully under fmt.

func (*View) TakeBackgroundColorFrom added in v0.17.0

func (v_ *View) TakeBackgroundColorFrom(sender obj.Object)

TakeBackgroundColorFrom wraps the corresponding Objective-C method.

func (*View) TakePasswordFrom added in v0.17.0

func (v_ *View) TakePasswordFrom(sender obj.Object)

TakePasswordFrom unlocks with the password from the specified sender.

func (*View) VisiblePages added in v0.18.0

func (v_ *View) VisiblePages() unsafe.Pointer

VisiblePages returns the visible pages.

func (*View) WithAcceptsDraggedFiles added in v0.17.0

func (v_ *View) WithAcceptsDraggedFiles(acceptsDraggedFiles bool) *View

WithAcceptsDraggedFiles sets the accepts dragged files.

func (*View) WithAllowsDragging added in v0.17.0

func (v_ *View) WithAllowsDragging(allowsDragging bool) *View

WithAllowsDragging sets the allows dragging.

func (*View) WithAutoScales added in v0.17.0

func (v_ *View) WithAutoScales(autoScales bool) *View

WithAutoScales sets the auto scales.

func (*View) WithBackgroundColor added in v0.17.0

func (v_ *View) WithBackgroundColor(backgroundColor obj.Object) *View

WithBackgroundColor sets the background color.

func (*View) WithCurrentSelection added in v0.17.0

func (v_ *View) WithCurrentSelection(currentSelection *Selection) *View

WithCurrentSelection sets the current selection.

func (*View) WithDelegate added in v0.17.0

func (v_ *View) WithDelegate(delegate ViewDelegate) *View

WithDelegate sets returns the view’s delegate.

func (*View) WithDisplayBox added in v0.17.0

func (v_ *View) WithDisplayBox(displayBox DisplayBox) *View

WithDisplayBox sets the display box.

func (*View) WithDisplayDirection added in v0.17.0

func (v_ *View) WithDisplayDirection(displayDirection DisplayDirection) *View

WithDisplayDirection sets the display direction.

func (*View) WithDisplayMode added in v0.17.0

func (v_ *View) WithDisplayMode(displayMode DisplayMode) *View

WithDisplayMode sets the display mode.

func (*View) WithDisplaysAsBook added in v0.17.0

func (v_ *View) WithDisplaysAsBook(displaysAsBook bool) *View

WithDisplaysAsBook sets the displays as book.

func (*View) WithDisplaysPageBreaks added in v0.17.0

func (v_ *View) WithDisplaysPageBreaks(displaysPageBreaks bool) *View

WithDisplaysPageBreaks sets the displays page breaks.

func (*View) WithDisplaysRTL added in v0.17.0

func (v_ *View) WithDisplaysRTL(displaysRTL bool) *View

WithDisplaysRTL sets the displays rtl.

func (*View) WithDocument added in v0.17.0

func (v_ *View) WithDocument(document *Document) *View

WithDocument sets returns the document associated with a PDFView object.

func (*View) WithEnableDataDetectors added in v0.17.0

func (v_ *View) WithEnableDataDetectors(enableDataDetectors bool) *View

WithEnableDataDetectors sets the enable data detectors.

func (*View) WithGreekingThreshold added in v0.17.0

func (v_ *View) WithGreekingThreshold(greekingThreshold float64) *View

WithGreekingThreshold sets the greeking threshold.

func (*View) WithHighlightedSelections added in v0.17.0

func (v_ *View) WithHighlightedSelections(highlightedSelections unsafe.Pointer) *View

WithHighlightedSelections sets the highlighted selections.

func (*View) WithInMarkupMode added in v0.17.0

func (v_ *View) WithInMarkupMode(inMarkupMode bool) *View

WithInMarkupMode sets the in markup mode.

func (*View) WithInterpolationQuality added in v0.17.0

func (v_ *View) WithInterpolationQuality(interpolationQuality InterpolationQuality) *View

WithInterpolationQuality sets the interpolation quality.

func (*View) WithMaxScaleFactor added in v0.17.0

func (v_ *View) WithMaxScaleFactor(maxScaleFactor float64) *View

WithMaxScaleFactor sets the max scale factor.

func (*View) WithMinScaleFactor added in v0.17.0

func (v_ *View) WithMinScaleFactor(minScaleFactor float64) *View

WithMinScaleFactor sets the min scale factor.

func (*View) WithPageBreakMargins added in v0.17.0

func (v_ *View) WithPageBreakMargins(pageBreakMargins foundation.NSEdgeInsets) *View

WithPageBreakMargins sets the page break margins.

func (*View) WithPageOverlayViewProvider added in v0.17.0

func (v_ *View) WithPageOverlayViewProvider(pageOverlayViewProvider unsafe.Pointer) *View

WithPageOverlayViewProvider sets the page overlay view provider.

func (*View) WithPageShadowsEnabled added in v0.17.0

func (v_ *View) WithPageShadowsEnabled(pageShadowsEnabled bool) *View

WithPageShadowsEnabled sets the page shadows enabled.

func (*View) WithScaleFactor added in v0.17.0

func (v_ *View) WithScaleFactor(scaleFactor float64) *View

WithScaleFactor sets the scale factor.

func (*View) WithShouldAntiAlias added in v0.17.0

func (v_ *View) WithShouldAntiAlias(shouldAntiAlias bool) *View

WithShouldAntiAlias sets the should anti alias.

func (*View) ZoomIn added in v0.17.0

func (v_ *View) ZoomIn(sender obj.Object)

ZoomIn wraps the corresponding Objective-C method.

func (*View) ZoomOut added in v0.17.0

func (v_ *View) ZoomOut(sender obj.Object)

ZoomOut wraps the corresponding Objective-C method.

type ViewDelegate added in v0.17.0

type ViewDelegate interface {
}

ViewDelegate receives the callbacks of the Objective-C protocol PDFViewDelegate. Pass an implementation to the matching With… setter; the wrapper builds the Objective-C delegate object for you. Every method listed here is required. The protocol's optional methods are separate one-method interfaces (ViewDelegate…Handler): implement the ones you need on the same value and the framework will call them too.

type ViewDelegatePDFViewOpenPDFForRemoteGoToActionHandler added in v0.17.0

type ViewDelegatePDFViewOpenPDFForRemoteGoToActionHandler interface {
	PDFViewOpenPDFForRemoteGoToAction(sender *View, action *ActionRemoteGoTo)
}

ViewDelegatePDFViewOpenPDFForRemoteGoToActionHandler is the optional PDFViewDelegate method PDFViewOpenPDF:forRemoteGoToAction:. Implement it on a ViewDelegate value to receive that callback; a value without it is simply never sent one.

type ViewDelegatePDFViewPerformFindHandler added in v0.17.0

type ViewDelegatePDFViewPerformFindHandler interface {
	PDFViewPerformFind(sender *View)
}

ViewDelegatePDFViewPerformFindHandler is the optional PDFViewDelegate method PDFViewPerformFind:. Implement it on a ViewDelegate value to receive that callback; a value without it is simply never sent one.

type ViewDelegatePDFViewPerformGoToPageHandler added in v0.17.0

type ViewDelegatePDFViewPerformGoToPageHandler interface {
	PDFViewPerformGoToPage(sender *View)
}

ViewDelegatePDFViewPerformGoToPageHandler is the optional PDFViewDelegate method PDFViewPerformGoToPage:. Implement it on a ViewDelegate value to receive that callback; a value without it is simply never sent one.

type ViewDelegatePDFViewPerformPrintHandler added in v0.17.0

type ViewDelegatePDFViewPerformPrintHandler interface {
	PDFViewPerformPrint(sender *View)
}

ViewDelegatePDFViewPerformPrintHandler is the optional PDFViewDelegate method PDFViewPerformPrint:. Implement it on a ViewDelegate value to receive that callback; a value without it is simply never sent one.

type ViewDelegatePDFViewPrintJobTitleHandler added in v0.17.0

type ViewDelegatePDFViewPrintJobTitleHandler interface {
	PDFViewPrintJobTitle(sender *View) string
}

ViewDelegatePDFViewPrintJobTitleHandler is the optional PDFViewDelegate method PDFViewPrintJobTitle:. Implement it on a ViewDelegate value to receive that callback; a value without it is simply never sent one.

type ViewDelegatePDFViewWillChangeScaleFactorToScaleHandler added in v0.17.0

type ViewDelegatePDFViewWillChangeScaleFactorToScaleHandler interface {
	PDFViewWillChangeScaleFactorToScale(sender *View, scaler float64) float64
}

ViewDelegatePDFViewWillChangeScaleFactorToScaleHandler is the optional PDFViewDelegate method PDFViewWillChangeScaleFactor:toScale:. Implement it on a ViewDelegate value to receive that callback; a value without it is simply never sent one.

type ViewDelegatePDFViewWillClickOnLinkWithURLHandler added in v0.17.0

type ViewDelegatePDFViewWillClickOnLinkWithURLHandler interface {
	PDFViewWillClickOnLinkWithURL(sender *View, url string)
}

ViewDelegatePDFViewWillClickOnLinkWithURLHandler is the optional PDFViewDelegate method PDFViewWillClickOnLink:withURL:. Implement it on a ViewDelegate value to receive that callback; a value without it is simply never sent one.

type VirtualMemoryGuardExceptionCode added in v0.17.0

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

func (VirtualMemoryGuardExceptionCode) String added in v0.17.0

String returns the VirtualMemoryGuardExceptionCode constant's name, or its numeric form when the value is not a known constant.

type WidgetCellState added in v0.17.0

type WidgetCellState 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 WidgetCellState = -1
	// The button widget is in an unselected state.
	KPDFWidgetOffState WidgetCellState = 0
	// The button widget is in a selected state.
	KPDFWidgetOnState WidgetCellState = 1
)

func (WidgetCellState) String added in v0.17.0

func (e WidgetCellState) String() string

String returns the WidgetCellState constant's name, or its numeric form when the value is not a known constant.

type WidgetControlType added in v0.17.0

type WidgetControlType int64

The types of annotation buttons.

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

func (WidgetControlType) String added in v0.17.0

func (e WidgetControlType) String() string

String returns the WidgetControlType constant's name, or its numeric form when the value is not a known constant.

type XpcListenerCreateFlags added in v0.17.0

type XpcListenerCreateFlags uint64

Bitmask — values may be combined with |.

const (
	XpcListenerCreateFlagsNone            XpcListenerCreateFlags = 0
	XpcListenerCreateFlagsInactive        XpcListenerCreateFlags = 1
	XpcListenerCreateFlagsForceMach       XpcListenerCreateFlags = 2
	XpcListenerCreateFlagsForceXpcservice XpcListenerCreateFlags = 4
)

func (XpcListenerCreateFlags) String added in v0.17.0

func (e XpcListenerCreateFlags) String() string

String returns the XpcListenerCreateFlags constant's name, or its numeric form when the value is not a known constant.

type XpcSessionCreateFlags added in v0.17.0

type XpcSessionCreateFlags uint64

Bitmask — values may be combined with |.

const (
	XpcSessionCreateFlagsNone           XpcSessionCreateFlags = 0
	XpcSessionCreateFlagsInactive       XpcSessionCreateFlags = 1
	XpcSessionCreateFlagsMachPrivileged XpcSessionCreateFlags = 2
)

func (XpcSessionCreateFlags) String added in v0.17.0

func (e XpcSessionCreateFlags) String() string

String returns the XpcSessionCreateFlags constant's name, or its numeric form when the value is not a known constant.

Jump to

Keyboard shortcuts

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