requests

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2022 License: MIT Imports: 4 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FORM_CanRedo added in v1.0.0

type FORM_CanRedo struct {
	FormHandle references.FPDF_FORMHANDLE
	Page       Page
}

type FORM_CanUndo added in v1.0.0

type FORM_CanUndo struct {
	FormHandle references.FPDF_FORMHANDLE
	Page       Page
}

type FORM_DoDocumentAAction added in v1.0.0

type FORM_DoDocumentAAction struct {
	FormHandle references.FPDF_FORMHANDLE
	AAType     enums.FPDFDOC_AACTION
}

type FORM_DoDocumentJSAction added in v1.0.0

type FORM_DoDocumentJSAction struct {
	FormHandle references.FPDF_FORMHANDLE
}

type FORM_DoDocumentOpenAction added in v1.0.0

type FORM_DoDocumentOpenAction struct {
	FormHandle references.FPDF_FORMHANDLE
}

type FORM_DoPageAAction added in v1.0.0

type FORM_DoPageAAction struct {
	Page       Page
	FormHandle references.FPDF_FORMHANDLE
	AAType     enums.FPDFPAGE_AACTION
}

type FORM_ForceToKillFocus added in v1.0.0

type FORM_ForceToKillFocus struct {
	FormHandle references.FPDF_FORMHANDLE
}

type FORM_GetFocusedAnnot added in v1.0.0

type FORM_GetFocusedAnnot struct {
	FormHandle references.FPDF_FORMHANDLE
}

type FORM_GetFocusedText added in v1.0.0

type FORM_GetFocusedText struct {
	FormHandle references.FPDF_FORMHANDLE
	Page       Page
}

type FORM_GetSelectedText added in v1.0.0

type FORM_GetSelectedText struct {
	FormHandle references.FPDF_FORMHANDLE
	Page       Page
}

type FORM_IsIndexSelected added in v1.0.0

type FORM_IsIndexSelected struct {
	FormHandle references.FPDF_FORMHANDLE
	Page       Page
	Index      int
}

type FORM_OnAfterLoadPage added in v1.0.0

type FORM_OnAfterLoadPage struct {
	Page       Page
	FormHandle references.FPDF_FORMHANDLE
}

type FORM_OnBeforeClosePage added in v1.0.0

type FORM_OnBeforeClosePage struct {
	Page       Page
	FormHandle references.FPDF_FORMHANDLE
}

type FORM_OnChar added in v1.0.0

type FORM_OnChar struct {
	FormHandle references.FPDF_FORMHANDLE
	Page       Page
	NChar      int                 // The character code value itself.
	Modifier   enums.FWL_EVENTFLAG // Mask of key flags (see fpdf_fwlevent.h for key flag values).
}

type FORM_OnFocus added in v1.0.0

type FORM_OnFocus struct {
	FormHandle references.FPDF_FORMHANDLE
	Page       Page
	Modifier   int     // Indicates whether various virtual keys are down.
	PageX      float64 // Specifies the x-coordinate of the cursor in PDF user space.
	PageY      float64 // Specifies the y-coordinate of the cursor in PDF user space.
}

type FORM_OnKeyDown added in v1.0.0

type FORM_OnKeyDown struct {
	FormHandle references.FPDF_FORMHANDLE
	Page       Page
	NKeyCode   enums.FWL_VKEYCODE  // The virtual-key code of the given key (see fpdf_fwlevent.h for virtual key codes).
	Modifier   enums.FWL_EVENTFLAG // Mask of key flags (see fpdf_fwlevent.h for key flag values).
}

type FORM_OnKeyUp added in v1.0.0

type FORM_OnKeyUp struct {
	FormHandle references.FPDF_FORMHANDLE
	Page       Page
	NKeyCode   enums.FWL_VKEYCODE  // The virtual-key code of the given key (see fpdf_fwlevent.h for virtual key codes).
	Modifier   enums.FWL_EVENTFLAG // Mask of key flags (see fpdf_fwlevent.h for key flag values).
}

type FORM_OnLButtonDoubleClick added in v1.0.0

type FORM_OnLButtonDoubleClick struct {
	FormHandle references.FPDF_FORMHANDLE
	Page       Page
	Modifier   int     // Indicates whether various virtual keys are down.
	PageX      float64 // Specifies the x-coordinate of the cursor in PDF user space.
	PageY      float64 // Specifies the y-coordinate of the cursor in PDF user space.
}

type FORM_OnLButtonDown added in v1.0.0

type FORM_OnLButtonDown struct {
	FormHandle references.FPDF_FORMHANDLE
	Page       Page
	Modifier   int     // Indicates whether various virtual keys are down.
	PageX      float64 // Specifies the x-coordinate of the cursor in PDF user space.
	PageY      float64 // Specifies the y-coordinate of the cursor in PDF user space.
}

type FORM_OnLButtonUp added in v1.0.0

type FORM_OnLButtonUp struct {
	FormHandle references.FPDF_FORMHANDLE
	Page       Page
	Modifier   int     // Indicates whether various virtual keys are down.
	PageX      float64 // Specifies the x-coordinate of the cursor in PDF user space.
	PageY      float64 // Specifies the y-coordinate of the cursor in PDF user space.
}

type FORM_OnMouseMove added in v1.0.0

type FORM_OnMouseMove struct {
	FormHandle references.FPDF_FORMHANDLE
	Page       Page
	Modifier   int     // Indicates whether various virtual keys are down.
	PageX      float64 // Specifies the x-coordinate of the cursor in PDF user space.
	PageY      float64 // Specifies the y-coordinate of the cursor in PDF user space.
}

type FORM_OnMouseWheel added in v1.0.0

type FORM_OnMouseWheel struct {
	FormHandle references.FPDF_FORMHANDLE
	Page       Page
	Modifier   int                    // Indicates whether various virtual keys are down.
	PageCoord  structs.FPDF_FS_POINTF // Specifies the coordinates of the cursor in PDF user space.
	DeltaX     int                    // Specifies the amount of wheel movement on the x-axis, in units of platform-agnostic wheel deltas. Negative values mean left.
	DeltaY     int                    // Specifies the amount of wheel movement on the y-axis, in units of platform-agnostic wheel deltas. Negative values mean down.

}

type FORM_OnRButtonDown added in v1.0.0

type FORM_OnRButtonDown struct {
	FormHandle references.FPDF_FORMHANDLE
	Page       Page
	Modifier   int     // Indicates whether various virtual keys are down.
	PageX      float64 // Specifies the x-coordinate of the cursor in PDF user space.
	PageY      float64 // Specifies the y-coordinate of the cursor in PDF user space.
}

type FORM_OnRButtonUp added in v1.0.0

type FORM_OnRButtonUp struct {
	FormHandle references.FPDF_FORMHANDLE
	Page       Page
	Modifier   int     // Indicates whether various virtual keys are down.
	PageX      float64 // Specifies the x-coordinate of the cursor in PDF user space.
	PageY      float64 // Specifies the y-coordinate of the cursor in PDF user space.
}

type FORM_Redo added in v1.0.0

type FORM_Redo struct {
	FormHandle references.FPDF_FORMHANDLE
	Page       Page
}

type FORM_ReplaceSelection added in v1.0.0

type FORM_ReplaceSelection struct {
	FormHandle references.FPDF_FORMHANDLE
	Page       Page
	Text       string
}

type FORM_SelectAllText added in v1.0.0

type FORM_SelectAllText struct {
	FormHandle references.FPDF_FORMHANDLE
	Page       Page
}

type FORM_SetFocusedAnnot added in v1.0.0

type FORM_SetFocusedAnnot struct {
	FormHandle references.FPDF_FORMHANDLE
	Annotation references.FPDF_ANNOTATION
}

type FORM_SetIndexSelected added in v1.0.0

type FORM_SetIndexSelected struct {
	FormHandle references.FPDF_FORMHANDLE
	Page       Page
	Index      int
	Selected   bool
}

type FORM_Undo added in v1.0.0

type FORM_Undo struct {
	FormHandle references.FPDF_FORMHANDLE
	Page       Page
}

type FPDFAction_GetDest added in v0.5.0

type FPDFAction_GetDest struct {
	Document references.FPDF_DOCUMENT
	Action   references.FPDF_ACTION
}

type FPDFAction_GetFilePath added in v0.5.0

type FPDFAction_GetFilePath struct {
	Action references.FPDF_ACTION
}

type FPDFAction_GetType added in v0.5.0

type FPDFAction_GetType struct {
	Action references.FPDF_ACTION
}

type FPDFAction_GetURIPath added in v0.5.0

type FPDFAction_GetURIPath struct {
	Document references.FPDF_DOCUMENT
	Action   references.FPDF_ACTION
}

type FPDFAnnot_AddInkStroke added in v1.0.0

type FPDFAnnot_AddInkStroke struct {
	Annotation references.FPDF_ANNOTATION
	Points     []structs.FPDF_FS_POINTF
}

type FPDFAnnot_AppendAttachmentPoints added in v1.0.0

type FPDFAnnot_AppendAttachmentPoints struct {
	Annotation       references.FPDF_ANNOTATION
	AttachmentPoints structs.FPDF_FS_QUADPOINTSF
}

type FPDFAnnot_AppendObject added in v1.0.0

type FPDFAnnot_AppendObject struct {
	Annotation references.FPDF_ANNOTATION
	PageObject references.FPDF_PAGEOBJECT
}

type FPDFAnnot_CountAttachmentPoints added in v1.0.0

type FPDFAnnot_CountAttachmentPoints struct {
	Annotation references.FPDF_ANNOTATION
	Count      uint64
}

type FPDFAnnot_GetAP added in v1.0.0

type FPDFAnnot_GetAP struct {
	Annotation     references.FPDF_ANNOTATION
	AppearanceMode enums.FPDF_ANNOT_APPEARANCEMODE
}

type FPDFAnnot_GetAttachmentPoints added in v1.0.0

type FPDFAnnot_GetAttachmentPoints struct {
	Annotation references.FPDF_ANNOTATION
	Index      uint64
}

type FPDFAnnot_GetBorder added in v1.0.0

type FPDFAnnot_GetBorder struct {
	Annotation references.FPDF_ANNOTATION
}

type FPDFAnnot_GetColor added in v1.0.0

type FPDFAnnot_GetColor struct {
	Annotation references.FPDF_ANNOTATION
	ColorType  enums.FPDFANNOT_COLORTYPE
}

type FPDFAnnot_GetFlags added in v1.0.0

type FPDFAnnot_GetFlags struct {
	Annotation references.FPDF_ANNOTATION
}

type FPDFAnnot_GetFocusableSubtypes added in v1.0.0

type FPDFAnnot_GetFocusableSubtypes struct {
	FormHandle references.FPDF_FORMHANDLE
}

type FPDFAnnot_GetFocusableSubtypesCount added in v1.0.0

type FPDFAnnot_GetFocusableSubtypesCount struct {
	FormHandle references.FPDF_FORMHANDLE
}

type FPDFAnnot_GetFontSize added in v1.0.0

type FPDFAnnot_GetFontSize struct {
	FormHandle references.FPDF_FORMHANDLE
	Annotation references.FPDF_ANNOTATION
}

type FPDFAnnot_GetFormControlCount added in v1.0.0

type FPDFAnnot_GetFormControlCount struct {
	FormHandle references.FPDF_FORMHANDLE
	Annotation references.FPDF_ANNOTATION
}

type FPDFAnnot_GetFormControlIndex added in v1.0.0

type FPDFAnnot_GetFormControlIndex struct {
	FormHandle references.FPDF_FORMHANDLE
	Annotation references.FPDF_ANNOTATION
}

type FPDFAnnot_GetFormFieldAtPoint added in v1.0.0

type FPDFAnnot_GetFormFieldAtPoint struct {
	FormHandle references.FPDF_FORMHANDLE
	Page       Page
	Point      structs.FPDF_FS_POINTF
}

type FPDFAnnot_GetFormFieldExportValue added in v1.0.0

type FPDFAnnot_GetFormFieldExportValue struct {
	FormHandle references.FPDF_FORMHANDLE
	Annotation references.FPDF_ANNOTATION
}

type FPDFAnnot_GetFormFieldFlags added in v1.0.0

type FPDFAnnot_GetFormFieldFlags struct {
	FormHandle references.FPDF_FORMHANDLE
	Annotation references.FPDF_ANNOTATION
}

type FPDFAnnot_GetFormFieldName added in v1.0.0

type FPDFAnnot_GetFormFieldName struct {
	FormHandle references.FPDF_FORMHANDLE
	Annotation references.FPDF_ANNOTATION
}

type FPDFAnnot_GetFormFieldType added in v1.0.0

type FPDFAnnot_GetFormFieldType struct {
	FormHandle references.FPDF_FORMHANDLE
	Annotation references.FPDF_ANNOTATION
}

type FPDFAnnot_GetFormFieldValue added in v1.0.0

type FPDFAnnot_GetFormFieldValue struct {
	FormHandle references.FPDF_FORMHANDLE
	Annotation references.FPDF_ANNOTATION
}

type FPDFAnnot_GetInkListCount added in v1.0.0

type FPDFAnnot_GetInkListCount struct {
	Annotation references.FPDF_ANNOTATION
}

type FPDFAnnot_GetInkListPath added in v1.0.0

type FPDFAnnot_GetInkListPath struct {
	Annotation references.FPDF_ANNOTATION
	Index      uint64
}

type FPDFAnnot_GetLine added in v1.0.0

type FPDFAnnot_GetLine struct {
	Annotation references.FPDF_ANNOTATION
}
type FPDFAnnot_GetLink struct {
	Annotation references.FPDF_ANNOTATION
}

type FPDFAnnot_GetLinkedAnnot added in v1.0.0

type FPDFAnnot_GetLinkedAnnot struct {
	Annotation references.FPDF_ANNOTATION
	Key        string
}

type FPDFAnnot_GetNumberValue added in v1.0.0

type FPDFAnnot_GetNumberValue struct {
	Annotation references.FPDF_ANNOTATION
	Key        string
}

type FPDFAnnot_GetObject added in v1.0.0

type FPDFAnnot_GetObject struct {
	Annotation references.FPDF_ANNOTATION
	Index      int
}

type FPDFAnnot_GetObjectCount added in v1.0.0

type FPDFAnnot_GetObjectCount struct {
	Annotation references.FPDF_ANNOTATION
}

type FPDFAnnot_GetOptionCount added in v1.0.0

type FPDFAnnot_GetOptionCount struct {
	FormHandle references.FPDF_FORMHANDLE
	Annotation references.FPDF_ANNOTATION
}

type FPDFAnnot_GetOptionLabel added in v1.0.0

type FPDFAnnot_GetOptionLabel struct {
	FormHandle references.FPDF_FORMHANDLE
	Annotation references.FPDF_ANNOTATION
	Index      int
}

type FPDFAnnot_GetRect added in v1.0.0

type FPDFAnnot_GetRect struct {
	Annotation references.FPDF_ANNOTATION
}

type FPDFAnnot_GetStringValue added in v1.0.0

type FPDFAnnot_GetStringValue struct {
	Annotation references.FPDF_ANNOTATION
	Key        string
}

type FPDFAnnot_GetSubtype added in v1.0.0

type FPDFAnnot_GetSubtype struct {
	Annotation references.FPDF_ANNOTATION
}

type FPDFAnnot_GetValueType added in v1.0.0

type FPDFAnnot_GetValueType struct {
	Annotation references.FPDF_ANNOTATION
	Key        string
}

type FPDFAnnot_GetVertices added in v1.0.0

type FPDFAnnot_GetVertices struct {
	Annotation references.FPDF_ANNOTATION
}

type FPDFAnnot_HasAttachmentPoints added in v1.0.0

type FPDFAnnot_HasAttachmentPoints struct {
	Annotation references.FPDF_ANNOTATION
}

type FPDFAnnot_HasKey added in v1.0.0

type FPDFAnnot_HasKey struct {
	Annotation references.FPDF_ANNOTATION
	Key        string
}

type FPDFAnnot_IsChecked added in v1.0.0

type FPDFAnnot_IsChecked struct {
	FormHandle references.FPDF_FORMHANDLE
	Annotation references.FPDF_ANNOTATION
}

type FPDFAnnot_IsObjectSupportedSubtype added in v1.0.0

type FPDFAnnot_IsObjectSupportedSubtype struct {
	Subtype enums.FPDF_ANNOTATION_SUBTYPE
}

type FPDFAnnot_IsOptionSelected added in v1.0.0

type FPDFAnnot_IsOptionSelected struct {
	FormHandle references.FPDF_FORMHANDLE
	Annotation references.FPDF_ANNOTATION
	Index      int
}

type FPDFAnnot_IsSupportedSubtype added in v1.0.0

type FPDFAnnot_IsSupportedSubtype struct {
	Subtype enums.FPDF_ANNOTATION_SUBTYPE // The subtype to check.
}

type FPDFAnnot_RemoveInkList added in v1.0.0

type FPDFAnnot_RemoveInkList struct {
	Annotation references.FPDF_ANNOTATION
}

type FPDFAnnot_RemoveObject added in v1.0.0

type FPDFAnnot_RemoveObject struct {
	Annotation references.FPDF_ANNOTATION
	Index      int
}

type FPDFAnnot_SetAP added in v1.0.0

type FPDFAnnot_SetAP struct {
	Annotation     references.FPDF_ANNOTATION
	AppearanceMode enums.FPDF_ANNOT_APPEARANCEMODE
	Value          *string // If nil is passed, the AP is cleared for that mode. If the mode is Normal, APs for all modes are cleared.
}

type FPDFAnnot_SetAttachmentPoints added in v1.0.0

type FPDFAnnot_SetAttachmentPoints struct {
	Annotation       references.FPDF_ANNOTATION
	Index            uint64 // Index of the set of quadpoints.
	AttachmentPoints structs.FPDF_FS_QUADPOINTSF
}

type FPDFAnnot_SetBorder added in v1.0.0

type FPDFAnnot_SetBorder struct {
	Annotation       references.FPDF_ANNOTATION
	HorizontalRadius float32
	VerticalRadius   float32
	BorderWidth      float32
}

type FPDFAnnot_SetColor added in v1.0.0

type FPDFAnnot_SetColor struct {
	Annotation references.FPDF_ANNOTATION
	ColorType  enums.FPDFANNOT_COLORTYPE
	R          uint
	G          uint
	B          uint
	A          uint
}

type FPDFAnnot_SetFlags added in v1.0.0

type FPDFAnnot_SetFlags struct {
	Annotation references.FPDF_ANNOTATION
	Flags      enums.FPDF_ANNOT_FLAG
}

type FPDFAnnot_SetFocusableSubtypes added in v1.0.0

type FPDFAnnot_SetFocusableSubtypes struct {
	FormHandle references.FPDF_FORMHANDLE
	Subtypes   []enums.FPDF_ANNOTATION_SUBTYPE
}

type FPDFAnnot_SetRect added in v1.0.0

type FPDFAnnot_SetRect struct {
	Annotation references.FPDF_ANNOTATION
	Rect       structs.FPDF_FS_RECTF
}

type FPDFAnnot_SetStringValue added in v1.0.0

type FPDFAnnot_SetStringValue struct {
	Annotation references.FPDF_ANNOTATION
	Key        string
	Value      string
}

type FPDFAnnot_SetURI added in v1.0.0

type FPDFAnnot_SetURI struct {
	Annotation references.FPDF_ANNOTATION
	URI        string
}

type FPDFAnnot_UpdateObject added in v1.0.0

type FPDFAnnot_UpdateObject struct {
	Annotation references.FPDF_ANNOTATION
	PageObject references.FPDF_PAGEOBJECT
}

type FPDFAttachment_GetFile added in v0.5.0

type FPDFAttachment_GetFile struct {
	Attachment references.FPDF_ATTACHMENT
	Contents   []byte
}

type FPDFAttachment_GetName added in v0.5.0

type FPDFAttachment_GetName struct {
	Attachment references.FPDF_ATTACHMENT
}

type FPDFAttachment_GetStringValue added in v0.5.0

type FPDFAttachment_GetStringValue struct {
	Attachment references.FPDF_ATTACHMENT
	Key        string
}

type FPDFAttachment_GetValueType added in v0.5.0

type FPDFAttachment_GetValueType struct {
	Attachment references.FPDF_ATTACHMENT
	Key        string
}

type FPDFAttachment_HasKey added in v0.5.0

type FPDFAttachment_HasKey struct {
	Attachment references.FPDF_ATTACHMENT
	Key        string
}

type FPDFAttachment_SetFile added in v0.5.0

type FPDFAttachment_SetFile struct {
	Attachment references.FPDF_ATTACHMENT
	Contents   []byte
}

type FPDFAttachment_SetStringValue added in v0.5.0

type FPDFAttachment_SetStringValue struct {
	Attachment references.FPDF_ATTACHMENT
	Key        string
	Value      string
}

type FPDFAvail_Create added in v0.9.0

type FPDFAvail_Create struct {
	Reader                  io.ReadSeeker
	Size                    int64
	IsDataAvailableCallback func(offset, size uint64) bool // Reports if the specified data section is currently available. A section is available if all bytes in the section are available.
	AddSegmentCallback      func(offset, size uint64)      // Add a section to be downloaded. May be nil. The offset and size of the section may not be unique. Part of the section might be already available. The download manager must deal with overlapping sections.
}

type FPDFAvail_Destroy added in v0.9.0

type FPDFAvail_Destroy struct {
	AvailabilityProvider references.FPDF_AVAIL
}

type FPDFAvail_GetDocument added in v0.9.0

type FPDFAvail_GetDocument struct {
	AvailabilityProvider references.FPDF_AVAIL
	Password             *string
}

type FPDFAvail_GetFirstPageNum added in v0.9.0

type FPDFAvail_GetFirstPageNum struct {
	Document references.FPDF_DOCUMENT
}

type FPDFAvail_IsDocAvail added in v0.9.0

type FPDFAvail_IsDocAvail struct {
	AvailabilityProvider references.FPDF_AVAIL
}

type FPDFAvail_IsFormAvail added in v0.9.0

type FPDFAvail_IsFormAvail struct {
	AvailabilityProvider references.FPDF_AVAIL
}

type FPDFAvail_IsLinearized added in v0.9.0

type FPDFAvail_IsLinearized struct {
	AvailabilityProvider references.FPDF_AVAIL
}

type FPDFAvail_IsPageAvail added in v0.9.0

type FPDFAvail_IsPageAvail struct {
	AvailabilityProvider references.FPDF_AVAIL
	PageIndex            int
}

type FPDFBitmap_Create added in v0.7.0

type FPDFBitmap_Create struct {
	Width  int // The number of pixels in width for the bitmap. Must be greater than 0.
	Height int // The number of pixels in height for the bitmap. Must be greater than 0.
	Alpha  int // A flag indicating whether the alpha channel is used. Non-zero for using alpha, zero for not using.
}

type FPDFBitmap_CreateEx added in v0.7.0

type FPDFBitmap_CreateEx struct {
	Width  int // The number of pixels in width for the bitmap. Must be greater than 0.
	Height int // The number of pixels in height for the bitmap. Must be greater than 0.
	Format enums.FPDF_BITMAP_FORMAT
	Buffer []byte
	Stride int
}

type FPDFBitmap_Destroy added in v0.7.0

type FPDFBitmap_Destroy struct {
	Bitmap references.FPDF_BITMAP
}

type FPDFBitmap_FillRect added in v0.7.0

type FPDFBitmap_FillRect struct {
	Bitmap references.FPDF_BITMAP
	Left   int
	Top    int
	Width  int
	Height int
	Color  uint64
}

type FPDFBitmap_GetBuffer added in v0.7.0

type FPDFBitmap_GetBuffer struct {
	Bitmap references.FPDF_BITMAP
}

type FPDFBitmap_GetFormat added in v0.7.0

type FPDFBitmap_GetFormat struct {
	Bitmap references.FPDF_BITMAP
}

type FPDFBitmap_GetHeight added in v0.7.0

type FPDFBitmap_GetHeight struct {
	Bitmap references.FPDF_BITMAP
}

type FPDFBitmap_GetStride added in v0.7.0

type FPDFBitmap_GetStride struct {
	Bitmap references.FPDF_BITMAP
}

type FPDFBitmap_GetWidth added in v0.7.0

type FPDFBitmap_GetWidth struct {
	Bitmap references.FPDF_BITMAP
}

type FPDFBookmark_Find added in v0.5.0

type FPDFBookmark_Find struct {
	Document references.FPDF_DOCUMENT
	Title    string // The string for the bookmark title to be searched
}

type FPDFBookmark_GetAction added in v0.5.0

type FPDFBookmark_GetAction struct {
	Bookmark references.FPDF_BOOKMARK
}

type FPDFBookmark_GetCount added in v1.1.0

type FPDFBookmark_GetCount struct {
	Bookmark references.FPDF_BOOKMARK // Reference to the current bookmark.
}

type FPDFBookmark_GetDest added in v0.5.0

type FPDFBookmark_GetDest struct {
	Document references.FPDF_DOCUMENT
	Bookmark references.FPDF_BOOKMARK
}

type FPDFBookmark_GetFirstChild added in v0.5.0

type FPDFBookmark_GetFirstChild struct {
	Document references.FPDF_DOCUMENT
	Bookmark *references.FPDF_BOOKMARK // Reference to the current bookmark. Can be nil if you want to get the first top level item.
}

type FPDFBookmark_GetNextSibling added in v0.5.0

type FPDFBookmark_GetNextSibling struct {
	Document references.FPDF_DOCUMENT
	Bookmark references.FPDF_BOOKMARK // Reference to the current bookmark. Cannot be nil.
}

type FPDFBookmark_GetTitle added in v0.5.0

type FPDFBookmark_GetTitle struct {
	Bookmark references.FPDF_BOOKMARK // Reference to the current bookmark.
}

type FPDFCatalog_IsTagged added in v0.5.0

type FPDFCatalog_IsTagged struct {
	Document references.FPDF_DOCUMENT
}

type FPDFClipPath_CountPathSegments added in v0.9.0

type FPDFClipPath_CountPathSegments struct {
	ClipPath  references.FPDF_CLIPPATH
	PathIndex int
}

type FPDFClipPath_CountPaths added in v0.9.0

type FPDFClipPath_CountPaths struct {
	ClipPath references.FPDF_CLIPPATH
}

type FPDFClipPath_GetPathSegment added in v0.9.0

type FPDFClipPath_GetPathSegment struct {
	ClipPath     references.FPDF_CLIPPATH
	PathIndex    int
	SegmentIndex int
}

type FPDFDOC_ExitFormFillEnvironment added in v1.0.0

type FPDFDOC_ExitFormFillEnvironment struct {
	FormHandle references.FPDF_FORMHANDLE
}

type FPDFDOC_InitFormFillEnvironment added in v1.0.0

type FPDFDOC_InitFormFillEnvironment struct {
	Document     references.FPDF_DOCUMENT
	FormFillInfo structs.FPDF_FORMFILLINFO
}

type FPDFDest_GetDestPageIndex added in v0.5.0

type FPDFDest_GetDestPageIndex struct {
	Document references.FPDF_DOCUMENT
	Dest     references.FPDF_DEST
}

type FPDFDest_GetLocationInPage added in v0.5.0

type FPDFDest_GetLocationInPage struct {
	Dest references.FPDF_DEST
}

type FPDFDest_GetView added in v0.5.0

type FPDFDest_GetView struct {
	Dest references.FPDF_DEST
}

type FPDFDoc_AddAttachment added in v0.5.0

type FPDFDoc_AddAttachment struct {
	Document references.FPDF_DOCUMENT
	Name     string
}

type FPDFDoc_CloseJavaScriptAction added in v0.5.0

type FPDFDoc_CloseJavaScriptAction struct {
	JavaScriptAction references.FPDF_JAVASCRIPT_ACTION
}

type FPDFDoc_DeleteAttachment added in v0.5.0

type FPDFDoc_DeleteAttachment struct {
	Document references.FPDF_DOCUMENT
	Index    int
}

type FPDFDoc_GetAttachment added in v0.5.0

type FPDFDoc_GetAttachment struct {
	Document references.FPDF_DOCUMENT
	Index    int
}

type FPDFDoc_GetAttachmentCount added in v0.5.0

type FPDFDoc_GetAttachmentCount struct {
	Document references.FPDF_DOCUMENT
}

type FPDFDoc_GetJavaScriptAction added in v0.5.0

type FPDFDoc_GetJavaScriptAction struct {
	Document references.FPDF_DOCUMENT
	Index    int
}

type FPDFDoc_GetJavaScriptActionCount added in v0.5.0

type FPDFDoc_GetJavaScriptActionCount struct {
	Document references.FPDF_DOCUMENT
}

type FPDFDoc_GetPageMode added in v0.5.0

type FPDFDoc_GetPageMode struct {
	Document references.FPDF_DOCUMENT
}

type FPDFFont_Close added in v0.9.0

type FPDFFont_Close struct {
	Font references.FPDF_FONT
}

type FPDFFont_GetAscent added in v0.9.0

type FPDFFont_GetAscent struct {
	Font     references.FPDF_FONT
	FontSize float32
}

type FPDFFont_GetDescent added in v0.9.0

type FPDFFont_GetDescent struct {
	Font     references.FPDF_FONT
	FontSize float32
}

type FPDFFont_GetFlags added in v0.9.0

type FPDFFont_GetFlags struct {
	Font references.FPDF_FONT
}

type FPDFFont_GetFontData added in v1.1.0

type FPDFFont_GetFontData struct {
	Font references.FPDF_FONT
}

type FPDFFont_GetFontName added in v0.9.0

type FPDFFont_GetFontName struct {
	Font references.FPDF_FONT
}

type FPDFFont_GetGlyphPath added in v0.9.0

type FPDFFont_GetGlyphPath struct {
	Font     references.FPDF_FONT
	Glyph    uint32
	FontSize float32
}

type FPDFFont_GetGlyphWidth added in v0.9.0

type FPDFFont_GetGlyphWidth struct {
	Font     references.FPDF_FONT
	Glyph    uint32
	FontSize float32
}

type FPDFFont_GetIsEmbedded added in v1.1.0

type FPDFFont_GetIsEmbedded struct {
	Font references.FPDF_FONT
}

type FPDFFont_GetItalicAngle added in v0.9.0

type FPDFFont_GetItalicAngle struct {
	Font references.FPDF_FONT
}

type FPDFFont_GetWeight added in v0.9.0

type FPDFFont_GetWeight struct {
	Font references.FPDF_FONT
}

type FPDFFormObj_CountObjects added in v0.9.0

type FPDFFormObj_CountObjects struct {
	PageObject references.FPDF_PAGEOBJECT
}

type FPDFFormObj_GetObject added in v0.9.0

type FPDFFormObj_GetObject struct {
	PageObject references.FPDF_PAGEOBJECT
	Index      uint64
}

type FPDFGlyphPath_CountGlyphSegments added in v0.9.0

type FPDFGlyphPath_CountGlyphSegments struct {
	GlyphPath references.FPDF_GLYPHPATH
}

type FPDFGlyphPath_GetGlyphPathSegment added in v0.9.0

type FPDFGlyphPath_GetGlyphPathSegment struct {
	GlyphPath references.FPDF_GLYPHPATH
	Index     int
}

type FPDFImageObj_GetBitmap added in v0.9.0

type FPDFImageObj_GetBitmap struct {
	ImageObject references.FPDF_PAGEOBJECT
}

type FPDFImageObj_GetImageDataDecoded added in v0.9.0

type FPDFImageObj_GetImageDataDecoded struct {
	ImageObject references.FPDF_PAGEOBJECT
}

type FPDFImageObj_GetImageDataRaw added in v0.9.0

type FPDFImageObj_GetImageDataRaw struct {
	ImageObject references.FPDF_PAGEOBJECT
}

type FPDFImageObj_GetImageFilter added in v0.9.0

type FPDFImageObj_GetImageFilter struct {
	ImageObject references.FPDF_PAGEOBJECT
	Index       int
}

type FPDFImageObj_GetImageFilterCount added in v0.9.0

type FPDFImageObj_GetImageFilterCount struct {
	ImageObject references.FPDF_PAGEOBJECT
}

type FPDFImageObj_GetImageMetadata added in v0.9.0

type FPDFImageObj_GetImageMetadata struct {
	ImageObject references.FPDF_PAGEOBJECT
	Page        Page
}

type FPDFImageObj_GetRenderedBitmap added in v0.9.0

type FPDFImageObj_GetRenderedBitmap struct {
	Document    references.FPDF_DOCUMENT
	Page        Page
	ImageObject references.FPDF_PAGEOBJECT
}

type FPDFImageObj_LoadJpegFile added in v0.9.0

type FPDFImageObj_LoadJpegFile struct {
	Page           *Page // The start of all loaded pages, may be nil.
	Count          int   // Number of pages, may be 0.
	ImageObject    references.FPDF_PAGEOBJECT
	FileData       []byte
	FileReader     io.ReadSeeker
	FileReaderSize int64 // Size of the file when using a reader.
	FilePath       string
}

type FPDFImageObj_LoadJpegFileInline added in v0.9.0

type FPDFImageObj_LoadJpegFileInline struct {
	Page           *Page // The start of all loaded pages, may be nil.
	Count          int   // Number of pages, may be 0.
	ImageObject    references.FPDF_PAGEOBJECT
	FileData       []byte
	FileReader     io.ReadSeeker
	FileReaderSize int64 // Size of the file when using a reader.
	FilePath       string
}

type FPDFImageObj_SetBitmap added in v0.9.0

type FPDFImageObj_SetBitmap struct {
	Page        *Page
	Count       int
	ImageObject references.FPDF_PAGEOBJECT
	Bitmap      references.FPDF_BITMAP
}

type FPDFImageObj_SetMatrix added in v0.9.0

type FPDFImageObj_SetMatrix struct {
	ImageObject references.FPDF_PAGEOBJECT
	Transform   structs.FPDF_FS_MATRIX
}

type FPDFJavaScriptAction_GetName added in v0.5.0

type FPDFJavaScriptAction_GetName struct {
	JavaScriptAction references.FPDF_JAVASCRIPT_ACTION
}

type FPDFJavaScriptAction_GetScript added in v0.5.0

type FPDFJavaScriptAction_GetScript struct {
	JavaScriptAction references.FPDF_JAVASCRIPT_ACTION
}
type FPDFLink_CloseWebLinks struct {
	PageLink references.FPDF_PAGELINK
}
type FPDFLink_CountQuadPoints struct {
	Link references.FPDF_LINK
}
type FPDFLink_CountRects struct {
	PageLink references.FPDF_PAGELINK
	Index    int
}
type FPDFLink_CountWebLinks struct {
	PageLink references.FPDF_PAGELINK
}
type FPDFLink_Enumerate struct {
	Page     Page
	StartPos int
}
type FPDFLink_GetAction struct {
	Link references.FPDF_LINK
}
type FPDFLink_GetAnnot struct {
	Page Page
	Link references.FPDF_LINK
}
type FPDFLink_GetAnnotRect struct {
	Link references.FPDF_LINK
}
type FPDFLink_GetDest struct {
	Document references.FPDF_DOCUMENT
	Link     references.FPDF_LINK
}
type FPDFLink_GetLinkAtPoint struct {
	Page Page
	X    float64
	Y    float64
}
type FPDFLink_GetLinkZOrderAtPoint struct {
	Page Page
	X    float64
	Y    float64
}
type FPDFLink_GetQuadPoints struct {
	Link      references.FPDF_LINK
	QuadIndex int
}
type FPDFLink_GetRect struct {
	PageLink  references.FPDF_PAGELINK
	Index     int
	RectIndex int
}
type FPDFLink_GetTextRange struct {
	PageLink references.FPDF_PAGELINK
	Index    int
}
type FPDFLink_GetURL struct {
	PageLink references.FPDF_PAGELINK
	Index    int
}
type FPDFLink_LoadWebLinks struct {
	TextPage references.FPDF_TEXTPAGE
}

type FPDFPageObjMark_CountParams added in v0.9.0

type FPDFPageObjMark_CountParams struct {
	PageObjectMark references.FPDF_PAGEOBJECTMARK
}

type FPDFPageObjMark_GetName added in v0.9.0

type FPDFPageObjMark_GetName struct {
	PageObjectMark references.FPDF_PAGEOBJECTMARK
}

type FPDFPageObjMark_GetParamBlobValue added in v0.9.0

type FPDFPageObjMark_GetParamBlobValue struct {
	PageObjectMark references.FPDF_PAGEOBJECTMARK
	Key            string
}

type FPDFPageObjMark_GetParamIntValue added in v0.9.0

type FPDFPageObjMark_GetParamIntValue struct {
	PageObjectMark references.FPDF_PAGEOBJECTMARK
	Key            string
}

type FPDFPageObjMark_GetParamKey added in v0.9.0

type FPDFPageObjMark_GetParamKey struct {
	PageObjectMark references.FPDF_PAGEOBJECTMARK
	Index          uint64
}

type FPDFPageObjMark_GetParamStringValue added in v0.9.0

type FPDFPageObjMark_GetParamStringValue struct {
	PageObjectMark references.FPDF_PAGEOBJECTMARK
	Key            string
}

type FPDFPageObjMark_GetParamValueType added in v0.9.0

type FPDFPageObjMark_GetParamValueType struct {
	PageObjectMark references.FPDF_PAGEOBJECTMARK
	Key            string
}

type FPDFPageObjMark_RemoveParam added in v0.9.0

type FPDFPageObjMark_RemoveParam struct {
	PageObject     references.FPDF_PAGEOBJECT
	PageObjectMark references.FPDF_PAGEOBJECTMARK
	Key            string
}

type FPDFPageObjMark_SetBlobParam added in v0.9.0

type FPDFPageObjMark_SetBlobParam struct {
	Document       references.FPDF_DOCUMENT
	PageObject     references.FPDF_PAGEOBJECT
	PageObjectMark references.FPDF_PAGEOBJECTMARK
	Key            string
	Value          []byte
}

type FPDFPageObjMark_SetIntParam added in v0.9.0

type FPDFPageObjMark_SetIntParam struct {
	Document       references.FPDF_DOCUMENT
	PageObject     references.FPDF_PAGEOBJECT
	PageObjectMark references.FPDF_PAGEOBJECTMARK
	Key            string
	Value          int
}

type FPDFPageObjMark_SetStringParam added in v0.9.0

type FPDFPageObjMark_SetStringParam struct {
	Document       references.FPDF_DOCUMENT
	PageObject     references.FPDF_PAGEOBJECT
	PageObjectMark references.FPDF_PAGEOBJECTMARK
	Key            string
	Value          string
}

type FPDFPageObj_AddMark added in v0.9.0

type FPDFPageObj_AddMark struct {
	PageObject references.FPDF_PAGEOBJECT
	Name       string
}

type FPDFPageObj_CountMarks added in v0.9.0

type FPDFPageObj_CountMarks struct {
	PageObject references.FPDF_PAGEOBJECT
}

type FPDFPageObj_CreateNewPath added in v0.9.0

type FPDFPageObj_CreateNewPath struct {
	X float32
	Y float32
}

type FPDFPageObj_CreateNewRect added in v0.9.0

type FPDFPageObj_CreateNewRect struct {
	X float32
	Y float32
	W float32
	H float32
}

type FPDFPageObj_CreateTextObj added in v0.9.0

type FPDFPageObj_CreateTextObj struct {
	Document references.FPDF_DOCUMENT
	Font     references.FPDF_FONT
	FontSize float32
}

type FPDFPageObj_Destroy added in v0.9.0

type FPDFPageObj_Destroy struct {
	PageObject references.FPDF_PAGEOBJECT
}

type FPDFPageObj_GetBounds added in v0.9.0

type FPDFPageObj_GetBounds struct {
	PageObject references.FPDF_PAGEOBJECT
}

type FPDFPageObj_GetClipPath added in v0.9.0

type FPDFPageObj_GetClipPath struct {
	PageObject references.FPDF_PAGEOBJECT
}

type FPDFPageObj_GetDashArray added in v0.9.0

type FPDFPageObj_GetDashArray struct {
	PageObject references.FPDF_PAGEOBJECT
}

type FPDFPageObj_GetDashCount added in v0.9.0

type FPDFPageObj_GetDashCount struct {
	PageObject references.FPDF_PAGEOBJECT
}

type FPDFPageObj_GetDashPhase added in v0.9.0

type FPDFPageObj_GetDashPhase struct {
	PageObject references.FPDF_PAGEOBJECT
}

type FPDFPageObj_GetFillColor added in v0.9.0

type FPDFPageObj_GetFillColor struct {
	PageObject references.FPDF_PAGEOBJECT
}

type FPDFPageObj_GetLineCap added in v0.9.0

type FPDFPageObj_GetLineCap struct {
	PageObject references.FPDF_PAGEOBJECT
}

type FPDFPageObj_GetLineJoin added in v0.9.0

type FPDFPageObj_GetLineJoin struct {
	PageObject references.FPDF_PAGEOBJECT
}

type FPDFPageObj_GetMark added in v0.9.0

type FPDFPageObj_GetMark struct {
	PageObject references.FPDF_PAGEOBJECT
	Index      uint64
}

type FPDFPageObj_GetMatrix added in v0.9.0

type FPDFPageObj_GetMatrix struct {
	PageObject references.FPDF_PAGEOBJECT
}

type FPDFPageObj_GetStrokeColor added in v0.9.0

type FPDFPageObj_GetStrokeColor struct {
	PageObject references.FPDF_PAGEOBJECT
}

type FPDFPageObj_GetStrokeWidth added in v0.9.0

type FPDFPageObj_GetStrokeWidth struct {
	PageObject references.FPDF_PAGEOBJECT
}

type FPDFPageObj_GetType added in v0.9.0

type FPDFPageObj_GetType struct {
	PageObject references.FPDF_PAGEOBJECT
}

type FPDFPageObj_HasTransparency added in v0.9.0

type FPDFPageObj_HasTransparency struct {
	PageObject references.FPDF_PAGEOBJECT
}

type FPDFPageObj_NewImageObj added in v0.9.0

type FPDFPageObj_NewImageObj struct {
	Document references.FPDF_DOCUMENT
}

type FPDFPageObj_NewTextObj added in v0.9.0

type FPDFPageObj_NewTextObj struct {
	Document references.FPDF_DOCUMENT
	Font     string
	FontSize float32
}

type FPDFPageObj_RemoveMark added in v0.9.0

type FPDFPageObj_RemoveMark struct {
	PageObject     references.FPDF_PAGEOBJECT
	PageObjectMark references.FPDF_PAGEOBJECTMARK
}

type FPDFPageObj_SetBlendMode added in v0.9.0

type FPDFPageObj_SetBlendMode struct {
	PageObject references.FPDF_PAGEOBJECT
	BlendMode  enums.PDF_BLEND_MODE
}

type FPDFPageObj_SetDashArray added in v0.9.0

type FPDFPageObj_SetDashArray struct {
	PageObject references.FPDF_PAGEOBJECT
	DashArray  []float32
	DashPhase  float32
}

type FPDFPageObj_SetDashPhase added in v0.9.0

type FPDFPageObj_SetDashPhase struct {
	PageObject references.FPDF_PAGEOBJECT
	DashPhase  float32
}

type FPDFPageObj_SetFillColor added in v0.9.0

type FPDFPageObj_SetFillColor struct {
	PageObject references.FPDF_PAGEOBJECT
	FillColor  structs.FPDF_COLOR
}

type FPDFPageObj_SetLineCap added in v0.9.0

type FPDFPageObj_SetLineCap struct {
	PageObject references.FPDF_PAGEOBJECT
	LineCap    enums.FPDF_LINECAP
}

type FPDFPageObj_SetLineJoin added in v0.9.0

type FPDFPageObj_SetLineJoin struct {
	PageObject references.FPDF_PAGEOBJECT
	LineJoin   enums.FPDF_LINEJOIN
}

type FPDFPageObj_SetMatrix added in v0.9.0

type FPDFPageObj_SetMatrix struct {
	PageObject references.FPDF_PAGEOBJECT
	Transform  structs.FPDF_FS_MATRIX
}

type FPDFPageObj_SetStrokeColor added in v0.9.0

type FPDFPageObj_SetStrokeColor struct {
	PageObject  references.FPDF_PAGEOBJECT
	StrokeColor structs.FPDF_COLOR
}

type FPDFPageObj_SetStrokeWidth added in v0.9.0

type FPDFPageObj_SetStrokeWidth struct {
	PageObject  references.FPDF_PAGEOBJECT
	StrokeWidth float32
}

type FPDFPageObj_Transform added in v0.9.0

type FPDFPageObj_Transform struct {
	PageObject references.FPDF_PAGEOBJECT
	Transform  structs.FPDF_FS_MATRIX
}

type FPDFPageObj_TransformClipPath added in v0.9.0

type FPDFPageObj_TransformClipPath struct {
	PageObject references.FPDF_PAGEOBJECT
	A          float64
	B          float64
	C          float64
	D          float64
	E          float64
	F          float64
}

type FPDFPage_CloseAnnot added in v1.0.0

type FPDFPage_CloseAnnot struct {
	Annotation references.FPDF_ANNOTATION
}

type FPDFPage_CountObjects added in v0.9.0

type FPDFPage_CountObjects struct {
	Page Page
}

type FPDFPage_CreateAnnot added in v1.0.0

type FPDFPage_CreateAnnot struct {
	Page    Page
	Subtype enums.FPDF_ANNOTATION_SUBTYPE
}

type FPDFPage_Delete added in v0.9.0

type FPDFPage_Delete struct {
	Document  references.FPDF_DOCUMENT
	PageIndex int // The index of the page to delete.
}

type FPDFPage_Flatten added in v0.5.0

type FPDFPage_Flatten struct {
	Page  Page
	Usage FPDFPage_FlattenUsage // The usage flag for the flattening.
}

type FPDFPage_FlattenUsage added in v0.5.0

type FPDFPage_FlattenUsage int
const (
	FPDFPage_FlattenUsageNormalDisplay FPDFPage_FlattenUsage = 0
	FPDFPage_FlattenUsagePrint         FPDFPage_FlattenUsage = 1
)

type FPDFPage_FormFieldZOrderAtPoint added in v1.0.0

type FPDFPage_FormFieldZOrderAtPoint struct {
	FormHandle references.FPDF_FORMHANDLE
	Page       Page
	PageX      float64 // X position in PDF "user space".
	PageY      float64 // Y position in PDF "user space".
}

type FPDFPage_GenerateContent added in v0.9.0

type FPDFPage_GenerateContent struct {
	Page Page
}

type FPDFPage_GetAnnot added in v1.0.0

type FPDFPage_GetAnnot struct {
	Page  Page
	Index int
}

type FPDFPage_GetAnnotCount added in v1.0.0

type FPDFPage_GetAnnotCount struct {
	Page Page
}

type FPDFPage_GetAnnotIndex added in v1.0.0

type FPDFPage_GetAnnotIndex struct {
	Page       Page
	Annotation references.FPDF_ANNOTATION
}

type FPDFPage_GetArtBox added in v0.9.0

type FPDFPage_GetArtBox struct {
	Page Page
}

type FPDFPage_GetBleedBox added in v0.9.0

type FPDFPage_GetBleedBox struct {
	Page Page
}

type FPDFPage_GetCropBox added in v0.9.0

type FPDFPage_GetCropBox struct {
	Page Page
}

type FPDFPage_GetDecodedThumbnailData added in v0.5.0

type FPDFPage_GetDecodedThumbnailData struct {
	Page Page
}

type FPDFPage_GetMediaBox added in v0.9.0

type FPDFPage_GetMediaBox struct {
	Page Page
}

type FPDFPage_GetObject added in v0.9.0

type FPDFPage_GetObject struct {
	Page  Page
	Index int
}

type FPDFPage_GetRawThumbnailData added in v0.5.0

type FPDFPage_GetRawThumbnailData struct {
	Page Page
}

type FPDFPage_GetRotation added in v0.5.0

type FPDFPage_GetRotation struct {
	Page Page
}

type FPDFPage_GetThumbnailAsBitmap added in v0.5.0

type FPDFPage_GetThumbnailAsBitmap struct {
	Page Page
}

type FPDFPage_GetTrimBox added in v0.9.0

type FPDFPage_GetTrimBox struct {
	Page Page
}

type FPDFPage_HasFormFieldAtPoint added in v1.0.0

type FPDFPage_HasFormFieldAtPoint struct {
	FormHandle references.FPDF_FORMHANDLE
	Page       Page
	PageX      float64 // X position in PDF "user space".
	PageY      float64 // Y position in PDF "user space".
}

type FPDFPage_HasTransparency added in v0.5.0

type FPDFPage_HasTransparency struct {
	Page Page
}

type FPDFPage_InsertClipPath added in v0.9.0

type FPDFPage_InsertClipPath struct {
	Page     Page
	ClipPath references.FPDF_CLIPPATH
}

type FPDFPage_InsertObject added in v0.9.0

type FPDFPage_InsertObject struct {
	Page       Page
	PageObject references.FPDF_PAGEOBJECT
}

type FPDFPage_New added in v0.9.0

type FPDFPage_New struct {
	Document  references.FPDF_DOCUMENT
	PageIndex int     // Suggested 0-based index of the page to create. If it is larger than document's current last index(L), the created page index is the next available index -- L+1.
	Width     float64 // The page width in points.
	Height    float64 // The page height in points.
}

type FPDFPage_RemoveAnnot added in v1.0.0

type FPDFPage_RemoveAnnot struct {
	Page  Page
	Index int
}

type FPDFPage_RemoveObject added in v0.9.0

type FPDFPage_RemoveObject struct {
	Page       Page
	PageObject references.FPDF_PAGEOBJECT
}

type FPDFPage_SetArtBox added in v0.9.0

type FPDFPage_SetArtBox struct {
	Page   Page
	Left   float32
	Bottom float32
	Right  float32
	Top    float32
}

type FPDFPage_SetBleedBox added in v0.9.0

type FPDFPage_SetBleedBox struct {
	Page   Page
	Left   float32
	Bottom float32
	Right  float32
	Top    float32
}

type FPDFPage_SetCropBox added in v0.9.0

type FPDFPage_SetCropBox struct {
	Page   Page
	Left   float32
	Bottom float32
	Right  float32
	Top    float32
}

type FPDFPage_SetMediaBox added in v0.9.0

type FPDFPage_SetMediaBox struct {
	Page   Page
	Left   float32
	Bottom float32
	Right  float32
	Top    float32
}

type FPDFPage_SetRotation added in v0.5.0

type FPDFPage_SetRotation struct {
	Page   Page
	Rotate enums.FPDF_PAGE_ROTATION // New value of PDF page rotation.
}

type FPDFPage_SetTrimBox added in v0.9.0

type FPDFPage_SetTrimBox struct {
	Page   Page
	Left   float32
	Bottom float32
	Right  float32
	Top    float32
}

type FPDFPage_TransFormWithClip added in v0.9.0

type FPDFPage_TransFormWithClip struct {
	Page     Page
	Matrix   *structs.FPDF_FS_MATRIX
	ClipRect *structs.FPDF_FS_RECTF
}

type FPDFPage_TransformAnnots added in v0.9.0

type FPDFPage_TransformAnnots struct {
	Page      Page
	Transform structs.FPDF_FS_MATRIX
}

type FPDFPathSegment_GetClose added in v0.9.0

type FPDFPathSegment_GetClose struct {
	PathSegment references.FPDF_PATHSEGMENT
}

type FPDFPathSegment_GetPoint added in v0.9.0

type FPDFPathSegment_GetPoint struct {
	PathSegment references.FPDF_PATHSEGMENT
}

type FPDFPathSegment_GetType added in v0.9.0

type FPDFPathSegment_GetType struct {
	PathSegment references.FPDF_PATHSEGMENT
}

type FPDFPath_BezierTo added in v0.9.0

type FPDFPath_BezierTo struct {
	PageObject references.FPDF_PAGEOBJECT
	X1         float32
	Y1         float32
	X2         float32
	Y2         float32
	X3         float32
	Y3         float32
}

type FPDFPath_Close added in v0.9.0

type FPDFPath_Close struct {
	PageObject references.FPDF_PAGEOBJECT
}

type FPDFPath_CountSegments added in v0.9.0

type FPDFPath_CountSegments struct {
	PageObject references.FPDF_PAGEOBJECT
}

type FPDFPath_GetDrawMode added in v0.9.0

type FPDFPath_GetDrawMode struct {
	PageObject references.FPDF_PAGEOBJECT
}

type FPDFPath_GetPathSegment added in v0.9.0

type FPDFPath_GetPathSegment struct {
	PageObject references.FPDF_PAGEOBJECT
	Index      int
}

type FPDFPath_LineTo added in v0.9.0

type FPDFPath_LineTo struct {
	PageObject references.FPDF_PAGEOBJECT
	X          float32
	Y          float32
}

type FPDFPath_MoveTo added in v0.9.0

type FPDFPath_MoveTo struct {
	PageObject references.FPDF_PAGEOBJECT
	X          float32
	Y          float32
}

type FPDFPath_SetDrawMode added in v0.9.0

type FPDFPath_SetDrawMode struct {
	PageObject references.FPDF_PAGEOBJECT
	FillMode   enums.FPDF_FILLMODE
	Stroke     bool
}

type FPDFSignatureObj_GetByteRange added in v0.5.0

type FPDFSignatureObj_GetByteRange struct {
	Signature references.FPDF_SIGNATURE
}

type FPDFSignatureObj_GetContents added in v0.5.0

type FPDFSignatureObj_GetContents struct {
	Signature references.FPDF_SIGNATURE
}

type FPDFSignatureObj_GetDocMDPPermission added in v0.5.0

type FPDFSignatureObj_GetDocMDPPermission struct {
	Signature references.FPDF_SIGNATURE
}

type FPDFSignatureObj_GetReason added in v0.5.0

type FPDFSignatureObj_GetReason struct {
	Signature references.FPDF_SIGNATURE
}

type FPDFSignatureObj_GetSubFilter added in v0.5.0

type FPDFSignatureObj_GetSubFilter struct {
	Signature references.FPDF_SIGNATURE
}

type FPDFSignatureObj_GetTime added in v0.5.0

type FPDFSignatureObj_GetTime struct {
	Signature references.FPDF_SIGNATURE
}

type FPDFTextObj_GetFont added in v0.9.0

type FPDFTextObj_GetFont struct {
	PageObject references.FPDF_PAGEOBJECT
}

type FPDFTextObj_GetFontSize added in v0.9.0

type FPDFTextObj_GetFontSize struct {
	PageObject references.FPDF_PAGEOBJECT
}

type FPDFTextObj_GetText added in v0.9.0

type FPDFTextObj_GetText struct {
	PageObject references.FPDF_PAGEOBJECT
	TextPage   references.FPDF_TEXTPAGE
}

type FPDFTextObj_GetTextRenderMode added in v0.9.0

type FPDFTextObj_GetTextRenderMode struct {
	PageObject references.FPDF_PAGEOBJECT
}

type FPDFTextObj_SetTextRenderMode added in v0.9.0

type FPDFTextObj_SetTextRenderMode struct {
	PageObject     references.FPDF_PAGEOBJECT
	TextRenderMode enums.FPDF_TEXT_RENDERMODE
}

type FPDFText_ClosePage added in v0.5.0

type FPDFText_ClosePage struct {
	TextPage references.FPDF_TEXTPAGE
}

type FPDFText_CountChars added in v0.5.0

type FPDFText_CountChars struct {
	TextPage references.FPDF_TEXTPAGE
}

type FPDFText_CountRects added in v0.5.0

type FPDFText_CountRects struct {
	TextPage   references.FPDF_TEXTPAGE
	StartIndex int // Index for the start characters.
	Count      int // Number of characters to be extracted, or -1 for all remaining.
}

type FPDFText_FindClose added in v0.5.0

type FPDFText_FindClose struct {
	Search references.FPDF_SCHHANDLE
}

type FPDFText_FindNext added in v0.5.0

type FPDFText_FindNext struct {
	Search references.FPDF_SCHHANDLE
}

type FPDFText_FindPrev added in v0.5.0

type FPDFText_FindPrev struct {
	Search references.FPDF_SCHHANDLE
}

type FPDFText_FindStart added in v0.5.0

type FPDFText_FindStart struct {
	TextPage   references.FPDF_TEXTPAGE
	Find       string                 // A unicode match pattern.
	Flags      FPDFText_FindStartFlag // Option flags.
	StartIndex int                    // Start from this character. -1 for end of the page.
}

type FPDFText_FindStartFlag added in v0.5.0

type FPDFText_FindStartFlag uint64
const (
	FPDFText_FindStartFlag_MATCHCASE      FPDFText_FindStartFlag = 0x00000001 // If not set, it will not match case by default.
	FPDFText_FindStartFlag_MATCHWHOLEWORD FPDFText_FindStartFlag = 0x00000002 // If not set, it will not match the whole word by default.
	FPDFText_FindStartFlag_CONSECUTIVE    FPDFText_FindStartFlag = 0x00000004 // If not set, it will skip past the current match to look for the next match.
)

type FPDFText_GetBoundedText added in v0.5.0

type FPDFText_GetBoundedText struct {
	TextPage references.FPDF_TEXTPAGE
	Left     float32 // Left boundary.
	Top      float32 // Top boundary.
	Right    float32 // Right boundary.
	Bottom   float32 // Bottom boundary.
}

type FPDFText_GetCharAngle added in v0.5.0

type FPDFText_GetCharAngle struct {
	TextPage references.FPDF_TEXTPAGE
	Index    int
}

type FPDFText_GetCharBox added in v0.5.0

type FPDFText_GetCharBox struct {
	TextPage references.FPDF_TEXTPAGE
	Index    int
}

type FPDFText_GetCharIndexAtPos added in v0.5.0

type FPDFText_GetCharIndexAtPos struct {
	TextPage   references.FPDF_TEXTPAGE
	X          float64
	Y          float64
	XTolerance float64
	YTolerance float64
}

type FPDFText_GetCharIndexFromTextIndex added in v0.6.0

type FPDFText_GetCharIndexFromTextIndex struct {
	TextPage   references.FPDF_TEXTPAGE
	NTextIndex int
}

type FPDFText_GetCharOrigin added in v0.5.0

type FPDFText_GetCharOrigin struct {
	TextPage references.FPDF_TEXTPAGE
	Index    int
}

type FPDFText_GetFillColor added in v0.5.0

type FPDFText_GetFillColor struct {
	TextPage references.FPDF_TEXTPAGE
	Index    int
}

type FPDFText_GetFontInfo added in v0.5.0

type FPDFText_GetFontInfo struct {
	TextPage references.FPDF_TEXTPAGE
	Index    int
}

type FPDFText_GetFontSize added in v0.5.0

type FPDFText_GetFontSize struct {
	TextPage references.FPDF_TEXTPAGE
	Index    int
}

type FPDFText_GetFontWeight added in v0.5.0

type FPDFText_GetFontWeight struct {
	TextPage references.FPDF_TEXTPAGE
	Index    int
}

type FPDFText_GetLooseCharBox added in v0.5.0

type FPDFText_GetLooseCharBox struct {
	TextPage references.FPDF_TEXTPAGE
	Index    int
}

type FPDFText_GetMatrix added in v0.5.0

type FPDFText_GetMatrix struct {
	TextPage references.FPDF_TEXTPAGE
	Index    int
}

type FPDFText_GetRect added in v0.5.0

type FPDFText_GetRect struct {
	TextPage references.FPDF_TEXTPAGE
	Index    int // Zero-based index for the rectangle.
}

type FPDFText_GetSchCount added in v0.5.0

type FPDFText_GetSchCount struct {
	Search references.FPDF_SCHHANDLE
}

type FPDFText_GetSchResultIndex added in v0.5.0

type FPDFText_GetSchResultIndex struct {
	Search references.FPDF_SCHHANDLE
}

type FPDFText_GetStrokeColor added in v0.5.0

type FPDFText_GetStrokeColor struct {
	TextPage references.FPDF_TEXTPAGE
	Index    int
}

type FPDFText_GetText added in v0.5.0

type FPDFText_GetText struct {
	TextPage   references.FPDF_TEXTPAGE
	StartIndex int // Index for the start characters.
	Count      int // Number of characters to be extracted.
}

type FPDFText_GetTextIndexFromCharIndex added in v0.6.0

type FPDFText_GetTextIndexFromCharIndex struct {
	TextPage   references.FPDF_TEXTPAGE
	NCharIndex int
}

type FPDFText_GetTextRenderMode added in v0.5.0

type FPDFText_GetTextRenderMode struct {
	TextPage references.FPDF_TEXTPAGE
	Index    int
}

type FPDFText_GetUnicode added in v0.5.0

type FPDFText_GetUnicode struct {
	TextPage references.FPDF_TEXTPAGE
	Index    int
}

type FPDFText_LoadFont added in v0.9.0

type FPDFText_LoadFont struct {
	Document references.FPDF_DOCUMENT
	Data     []byte
	FontType enums.FPDF_FONT
	CID      bool // Whether the font is a CID font or not.
}

type FPDFText_LoadPage added in v0.5.0

type FPDFText_LoadPage struct {
	Page Page
}

type FPDFText_LoadStandardFont added in v0.9.0

type FPDFText_LoadStandardFont struct {
	Document references.FPDF_DOCUMENT
	Font     string
}

type FPDFText_SetCharcodes added in v0.9.0

type FPDFText_SetCharcodes struct {
	PageObject references.FPDF_PAGEOBJECT
	CharCodes  []uint32
}

type FPDFText_SetText added in v0.9.0

type FPDFText_SetText struct {
	PageObject references.FPDF_PAGEOBJECT
	Text       string
}

type FPDF_CloseDocument added in v0.5.0

type FPDF_CloseDocument struct {
	Document references.FPDF_DOCUMENT
}

type FPDF_ClosePage added in v0.5.0

type FPDF_ClosePage struct {
	Page references.FPDF_PAGE
}

type FPDF_CloseXObject added in v0.5.0

type FPDF_CloseXObject struct {
	XObject references.FPDF_XOBJECT
}

type FPDF_CopyViewerPreferences added in v0.5.0

type FPDF_CopyViewerPreferences struct {
	Source      references.FPDF_DOCUMENT
	Destination references.FPDF_DOCUMENT
}

type FPDF_CountNamedDests added in v0.7.0

type FPDF_CountNamedDests struct {
	Document references.FPDF_DOCUMENT
}

type FPDF_CreateClipPath added in v0.9.0

type FPDF_CreateClipPath struct {
	Left   float32
	Bottom float32
	Right  float32
	Top    float32
}

type FPDF_CreateNewDocument added in v0.5.0

type FPDF_CreateNewDocument struct{}

type FPDF_DestroyClipPath added in v0.9.0

type FPDF_DestroyClipPath struct {
	ClipPath references.FPDF_CLIPPATH
}

type FPDF_DeviceToPage added in v0.7.0

type FPDF_DeviceToPage struct {
	Page    Page
	StartX  int                      // Left pixel position of the display area in device coordinates.
	StartY  int                      // Top pixel position of the display area in device coordinates.
	SizeX   int                      // Horizontal size (in pixels) for displaying the page.
	SizeY   int                      // Vertical size (in pixels) for displaying the page.
	Rotate  enums.FPDF_PAGE_ROTATION // Page orientation.
	DeviceX int                      // X value in device coordinates to be converted.
	DeviceY int                      // Y value in device coordinates to be converted.
}

type FPDF_DocumentHasValidCrossReferenceTable added in v0.7.0

type FPDF_DocumentHasValidCrossReferenceTable struct {
	Document references.FPDF_DOCUMENT
}

type FPDF_FFLDraw added in v1.0.0

type FPDF_FFLDraw struct {
	FormHandle references.FPDF_FORMHANDLE
	Bitmap     references.FPDF_BITMAP
	Page       Page
	StartX     int
	StartY     int
	SizeX      int
	SizeY      int
	Rotate     enums.FPDF_PAGE_ROTATION
	Flags      enums.FPDF_RENDER_FLAG
}

type FPDF_GetDocPermissions added in v0.5.0

type FPDF_GetDocPermissions struct {
	Document references.FPDF_DOCUMENT
}

type FPDF_GetFileIdentifier added in v0.5.0

type FPDF_GetFileIdentifier struct {
	Document   references.FPDF_DOCUMENT
	FileIdType enums.FPDF_FILEIDTYPE
}

type FPDF_GetFileVersion added in v0.5.0

type FPDF_GetFileVersion struct {
	Document references.FPDF_DOCUMENT
}

type FPDF_GetFormType added in v1.0.0

type FPDF_GetFormType struct {
	Document references.FPDF_DOCUMENT
}

type FPDF_GetLastError added in v0.5.0

type FPDF_GetLastError struct{}

type FPDF_GetMetaText added in v0.5.0

type FPDF_GetMetaText struct {
	Document references.FPDF_DOCUMENT
	Tag      string // A metadata tag. Title, Author, Subject, Keywords, Creator, Producer, CreationDate, ModDate. For detailed explanation of these tags and their respective values, please refer to section 10.2.1 "Document Information Dictionary" in PDF Reference 1.7.
}

type FPDF_GetNamedDest added in v0.7.0

type FPDF_GetNamedDest struct {
	Document references.FPDF_DOCUMENT
	Index    int
}

type FPDF_GetNamedDestByName added in v0.7.0

type FPDF_GetNamedDestByName struct {
	Document references.FPDF_DOCUMENT
	Name     string
}

type FPDF_GetPageAAction added in v0.5.0

type FPDF_GetPageAAction struct {
	Page   Page
	AAType enums.FPDF_PAGE_AACTION
}

type FPDF_GetPageBoundingBox added in v0.7.0

type FPDF_GetPageBoundingBox struct {
	Page Page
}

type FPDF_GetPageCount added in v0.5.0

type FPDF_GetPageCount struct {
	Document references.FPDF_DOCUMENT
}

type FPDF_GetPageHeight added in v0.5.0

type FPDF_GetPageHeight struct {
	Page Page
}

type FPDF_GetPageHeightF added in v0.7.0

type FPDF_GetPageHeightF struct {
	Page Page
}

type FPDF_GetPageLabel added in v0.5.0

type FPDF_GetPageLabel struct {
	Document references.FPDF_DOCUMENT
	Page     int // The page number (0-index based).
}

type FPDF_GetPageSizeByIndex added in v0.5.0

type FPDF_GetPageSizeByIndex struct {
	Document references.FPDF_DOCUMENT
	Index    int
}

type FPDF_GetPageSizeByIndexF added in v0.7.0

type FPDF_GetPageSizeByIndexF struct {
	Document references.FPDF_DOCUMENT
	Index    int
}

type FPDF_GetPageWidth added in v0.5.0

type FPDF_GetPageWidth struct {
	Page Page
}

type FPDF_GetPageWidthF added in v0.7.0

type FPDF_GetPageWidthF struct {
	Page Page
}

type FPDF_GetSecurityHandlerRevision added in v0.5.0

type FPDF_GetSecurityHandlerRevision struct {
	Document references.FPDF_DOCUMENT
}

type FPDF_GetSignatureCount added in v0.5.0

type FPDF_GetSignatureCount struct {
	Document references.FPDF_DOCUMENT
}

type FPDF_GetSignatureObject added in v0.5.0

type FPDF_GetSignatureObject struct {
	Document references.FPDF_DOCUMENT
	Index    int
}

type FPDF_GetTrailerEnds added in v0.7.0

type FPDF_GetTrailerEnds struct {
	Document references.FPDF_DOCUMENT
}

type FPDF_GetXFAPacketContent added in v0.7.0

type FPDF_GetXFAPacketContent struct {
	Document references.FPDF_DOCUMENT
	Index    int
}

type FPDF_GetXFAPacketCount added in v0.7.0

type FPDF_GetXFAPacketCount struct {
	Document references.FPDF_DOCUMENT
}

type FPDF_GetXFAPacketName added in v0.7.0

type FPDF_GetXFAPacketName struct {
	Document references.FPDF_DOCUMENT
	Index    int
}

type FPDF_ImportNPagesToOne added in v0.5.0

type FPDF_ImportNPagesToOne struct {
	Source          references.FPDF_DOCUMENT // The document to be imported.
	OutputWidth     float32                  // The output page width in PDF "user space" units.
	OutputHeight    float32                  // The output page height in PDF "user space" units.
	NumPagesOnXAxis int                      // The number of pages on X Axis.
	NumPagesOnYAxis int                      // The number of pages on Y Axis.
}

type FPDF_ImportPages added in v0.5.0

type FPDF_ImportPages struct {
	Source      references.FPDF_DOCUMENT
	Destination references.FPDF_DOCUMENT
	PageRange   *string // The page ranges, such as "1,3,5-7". If it is nil, it means to import all pages from parameter Source to Destination.
	Index       int     // An integer value which specifies the page index in parameter Destination where the imported pages will be inserted.
}

type FPDF_ImportPagesByIndex added in v0.5.0

type FPDF_ImportPagesByIndex struct {
	Source      references.FPDF_DOCUMENT
	Destination references.FPDF_DOCUMENT
	PageIndices []int // An array of page indices to be imported. The first page is zero. If PageIndices is nil, all pages from Source are imported.
	Index       int   //  The page index at which to insert the first imported page into Destination. The first page is zero.
}

type FPDF_LoadCustomDocument added in v0.6.0

type FPDF_LoadCustomDocument struct {
	Reader   io.ReadSeeker
	Size     int64
	Password *string // The password of the document.
}

type FPDF_LoadDocument added in v0.6.0

type FPDF_LoadDocument struct {
	Path     *string // A path to a PDF file.
	Password *string // The password of the document.
}

type FPDF_LoadMemDocument added in v0.6.0

type FPDF_LoadMemDocument struct {
	Data     *[]byte // A reference to the file data.
	Password *string // The password of the document.
}

type FPDF_LoadMemDocument64 added in v0.6.0

type FPDF_LoadMemDocument64 struct {
	Data     *[]byte // A reference to the file data.
	Password *string // The password of the document.
}

type FPDF_LoadPage added in v0.5.0

type FPDF_LoadPage struct {
	Document references.FPDF_DOCUMENT
	Index    int // The page number (0-index based).
}

type FPDF_LoadXFA added in v1.0.0

type FPDF_LoadXFA struct {
	Document references.FPDF_DOCUMENT
}

type FPDF_NewFormObjectFromXObject added in v0.5.0

type FPDF_NewFormObjectFromXObject struct {
	XObject references.FPDF_XOBJECT
}

type FPDF_NewXObjectFromPage added in v0.5.0

type FPDF_NewXObjectFromPage struct {
	Source          references.FPDF_DOCUMENT
	Destination     references.FPDF_DOCUMENT
	SourcePageIndex int
}

type FPDF_PageToDevice added in v0.7.0

type FPDF_PageToDevice struct {
	Page   Page
	StartX int                      // Left pixel position of the display area in device coordinates.
	StartY int                      // Top pixel position of the display area in device coordinates.
	SizeX  int                      // Horizontal size (in pixels) for displaying the page.
	SizeY  int                      // Vertical size (in pixels) for displaying the page.
	Rotate enums.FPDF_PAGE_ROTATION // Page orientation.
	PageX  float64                  // X value in page coordinates to be converted.
	PageY  float64                  // Y value in page coordinates to be converted.
}

type FPDF_RemoveFormFieldHighlight added in v1.0.0

type FPDF_RemoveFormFieldHighlight struct {
	FormHandle references.FPDF_FORMHANDLE
}

type FPDF_RenderPage added in v0.8.0

type FPDF_RenderPage struct {
	DC     interface{} // Handle to the device context. This should be of type C.HDC, which is a device (screen, bitmap, or printer).
	Page   Page
	StartX int                      // Left pixel position of the display area in bitmap coordinates.
	StartY int                      // Top pixel position of the display area in bitmap coordinates.
	SizeX  int                      // Horizontal size (in pixels) for displaying the page.
	SizeY  int                      // Vertical size (in pixels) for displaying the page.
	Rotate enums.FPDF_PAGE_ROTATION // Page orientation.
	Flags  enums.FPDF_RENDER_FLAG   // 0 for normal display, or combination of enums.FPDF_RENDER_FLAG. With the enums.FPDF_RENDER_FLAG_ANNOT flag, it renders all annotations that do not require user-interaction, which are all annotations except widget and popup annotations.
}

type FPDF_RenderPageBitmap added in v0.7.0

type FPDF_RenderPageBitmap struct {
	Bitmap references.FPDF_BITMAP
	Page   Page
	StartX int                      // Left pixel position of the display area in bitmap coordinates.
	StartY int                      // Top pixel position of the display area in bitmap coordinates.
	SizeX  int                      // Horizontal size (in pixels) for displaying the page.
	SizeY  int                      // Vertical size (in pixels) for displaying the page.
	Rotate enums.FPDF_PAGE_ROTATION // Page orientation.
	Flags  enums.FPDF_RENDER_FLAG   // 0 for normal display, or combination of enums.FPDF_RENDER_FLAG. With the enums.FPDF_RENDER_FLAG_ANNOT flag, it renders all annotations that do not require user-interaction, which are all annotations except widget and popup annotations.
}

type FPDF_RenderPageBitmapWithColorScheme_Start added in v0.9.0

type FPDF_RenderPageBitmapWithColorScheme_Start struct {
	Bitmap                 references.FPDF_BITMAP
	Page                   Page
	StartX                 int
	StartY                 int
	SizeX                  int
	SizeY                  int
	Rotate                 enums.FPDF_PAGE_ROTATION
	Flags                  enums.FPDF_RENDER_FLAG
	ColorScheme            *structs.FPDF_COLORSCHEME
	NeedToPauseNowCallback func() bool
}

type FPDF_RenderPageBitmapWithMatrix added in v0.7.0

type FPDF_RenderPageBitmapWithMatrix struct {
	Bitmap   references.FPDF_BITMAP
	Page     Page
	Matrix   structs.FPDF_FS_MATRIX // The transform matrix, which must be invertible. See PDF Reference 1.7, 4.2.2 Common Transformations.
	Clipping structs.FPDF_FS_RECTF  // The rect to clip to in device coords.
	Flags    enums.FPDF_RENDER_FLAG // 0 for normal display, or combination of enums.FPDF_RENDER_FLAG. With the enums.FPDF_RENDER_FLAG_ANNOT flag, it renders all annotations that do not require user-interaction, which are all annotations except widget and popup annotations.
}

type FPDF_RenderPageBitmap_Start added in v0.9.0

type FPDF_RenderPageBitmap_Start struct {
	Bitmap                 references.FPDF_BITMAP
	Page                   Page
	StartX                 int
	StartY                 int
	SizeX                  int
	SizeY                  int
	Rotate                 enums.FPDF_PAGE_ROTATION
	Flags                  enums.FPDF_RENDER_FLAG
	NeedToPauseNowCallback func() bool // A callback mechanism allowing the page rendering process to pause.
}

type FPDF_RenderPage_Close added in v0.9.0

type FPDF_RenderPage_Close struct {
	Page Page
}

type FPDF_RenderPage_Continue added in v0.9.0

type FPDF_RenderPage_Continue struct {
	Page                   Page
	NeedToPauseNowCallback func() bool // A callback mechanism allowing the page rendering process to pause.This can be nil if you don't want to pause.
}

type FPDF_SaveAsCopy added in v0.5.0

type FPDF_SaveAsCopy struct {
	Flags      SaveFlags // The creating flags.
	Document   references.FPDF_DOCUMENT
	FilePath   *string   // A path to save the file to.
	FileWriter io.Writer // A writer to save the file to.
}

type FPDF_SaveWithVersion added in v0.5.0

type FPDF_SaveWithVersion struct {
	Document    references.FPDF_DOCUMENT
	Flags       SaveFlags // The creating flags.
	FileVersion int       // The PDF file version. File version: 14 for 1.4, 15 for 1.5, ...
	FilePath    *string   // A path to save the file to.
	FileWriter  io.Writer // A writer to save the file to.
}

type FPDF_SetFormFieldHighlightAlpha added in v1.0.0

type FPDF_SetFormFieldHighlightAlpha struct {
	FormHandle references.FPDF_FORMHANDLE
	Alpha      uint8
}

type FPDF_SetFormFieldHighlightColor added in v1.0.0

type FPDF_SetFormFieldHighlightColor struct {
	FormHandle references.FPDF_FORMHANDLE
	FieldType  enums.FPDF_FORMFIELD
	Color      uint64 // The highlight color of the form field. Constructed by 0xxxrrggbb
}

type FPDF_SetPrintMode added in v0.8.0

type FPDF_SetPrintMode struct {
	PrintMode enums.FPDF_PRINTMODE
}

type FPDF_SetSandBoxPolicy added in v0.5.0

type FPDF_SetSandBoxPolicy struct {
	Policy FPDF_SetSandBoxPolicyPolicy
	Enable bool
}

type FPDF_SetSandBoxPolicyPolicy added in v0.5.0

type FPDF_SetSandBoxPolicyPolicy uint32
const (
	FPDF_SetSandBoxPolicyPolicyMachinetimeAccess FPDF_SetSandBoxPolicyPolicy = 1 // Policy for accessing the local machine time.
)

type FPDF_StructElement_Attr_GetBlobValue added in v1.0.0

type FPDF_StructElement_Attr_GetBlobValue struct {
	StructElementAttribute references.FPDF_STRUCTELEMENT_ATTR
	Name                   string
}

type FPDF_StructElement_Attr_GetBooleanValue added in v1.0.0

type FPDF_StructElement_Attr_GetBooleanValue struct {
	StructElementAttribute references.FPDF_STRUCTELEMENT_ATTR
	Name                   string
}

type FPDF_StructElement_Attr_GetCount added in v1.0.0

type FPDF_StructElement_Attr_GetCount struct {
	StructElementAttribute references.FPDF_STRUCTELEMENT_ATTR
}

type FPDF_StructElement_Attr_GetName added in v1.0.0

type FPDF_StructElement_Attr_GetName struct {
	StructElementAttribute references.FPDF_STRUCTELEMENT_ATTR
	Index                  int
}

type FPDF_StructElement_Attr_GetNumberValue added in v1.0.0

type FPDF_StructElement_Attr_GetNumberValue struct {
	StructElementAttribute references.FPDF_STRUCTELEMENT_ATTR
	Name                   string
}

type FPDF_StructElement_Attr_GetStringValue added in v1.0.0

type FPDF_StructElement_Attr_GetStringValue struct {
	StructElementAttribute references.FPDF_STRUCTELEMENT_ATTR
	Name                   string
}

type FPDF_StructElement_Attr_GetType added in v1.0.0

type FPDF_StructElement_Attr_GetType struct {
	StructElementAttribute references.FPDF_STRUCTELEMENT_ATTR
	Name                   string
}

type FPDF_StructElement_CountChildren added in v0.9.0

type FPDF_StructElement_CountChildren struct {
	StructElement references.FPDF_STRUCTELEMENT
}

type FPDF_StructElement_GetActualText added in v1.0.0

type FPDF_StructElement_GetActualText struct {
	StructElement references.FPDF_STRUCTELEMENT
}

type FPDF_StructElement_GetAltText added in v0.9.0

type FPDF_StructElement_GetAltText struct {
	StructElement references.FPDF_STRUCTELEMENT
}

type FPDF_StructElement_GetAttributeAtIndex added in v1.0.0

type FPDF_StructElement_GetAttributeAtIndex struct {
	StructElement references.FPDF_STRUCTELEMENT
	Index         int
}

type FPDF_StructElement_GetAttributeCount added in v1.0.0

type FPDF_StructElement_GetAttributeCount struct {
	StructElement references.FPDF_STRUCTELEMENT
}

type FPDF_StructElement_GetChildAtIndex added in v0.9.0

type FPDF_StructElement_GetChildAtIndex struct {
	StructElement references.FPDF_STRUCTELEMENT
	Index         int // The index for the child, 0-based.
}

type FPDF_StructElement_GetID added in v0.9.0

type FPDF_StructElement_GetID struct {
	StructElement references.FPDF_STRUCTELEMENT
}

type FPDF_StructElement_GetLang added in v0.9.0

type FPDF_StructElement_GetLang struct {
	StructElement references.FPDF_STRUCTELEMENT
}

type FPDF_StructElement_GetMarkedContentID added in v0.9.0

type FPDF_StructElement_GetMarkedContentID struct {
	StructElement references.FPDF_STRUCTELEMENT
}

type FPDF_StructElement_GetMarkedContentIdAtIndex added in v1.0.0

type FPDF_StructElement_GetMarkedContentIdAtIndex struct {
	StructElement references.FPDF_STRUCTELEMENT
	Index         int
}

type FPDF_StructElement_GetMarkedContentIdCount added in v1.0.0

type FPDF_StructElement_GetMarkedContentIdCount struct {
	StructElement references.FPDF_STRUCTELEMENT
}

type FPDF_StructElement_GetObjType added in v1.0.0

type FPDF_StructElement_GetObjType struct {
	StructElement references.FPDF_STRUCTELEMENT
}

type FPDF_StructElement_GetParent added in v1.0.0

type FPDF_StructElement_GetParent struct {
	StructElement references.FPDF_STRUCTELEMENT
}

type FPDF_StructElement_GetStringAttribute added in v0.9.0

type FPDF_StructElement_GetStringAttribute struct {
	StructElement references.FPDF_STRUCTELEMENT
	AttributeName string // The name of the attribute to retrieve.
}

type FPDF_StructElement_GetTitle added in v0.9.0

type FPDF_StructElement_GetTitle struct {
	StructElement references.FPDF_STRUCTELEMENT
}

type FPDF_StructElement_GetType added in v0.9.0

type FPDF_StructElement_GetType struct {
	StructElement references.FPDF_STRUCTELEMENT
}

type FPDF_StructTree_Close added in v0.9.0

type FPDF_StructTree_Close struct {
	StructTree references.FPDF_STRUCTTREE
}

type FPDF_StructTree_CountChildren added in v0.9.0

type FPDF_StructTree_CountChildren struct {
	StructTree references.FPDF_STRUCTTREE
}

type FPDF_StructTree_GetChildAtIndex added in v0.9.0

type FPDF_StructTree_GetChildAtIndex struct {
	StructTree references.FPDF_STRUCTTREE
	Index      int
}

type FPDF_StructTree_GetForPage added in v0.9.0

type FPDF_StructTree_GetForPage struct {
	Page Page
}

type FPDF_VIEWERREF_GetDuplex added in v0.7.0

type FPDF_VIEWERREF_GetDuplex struct {
	Document references.FPDF_DOCUMENT
}

type FPDF_VIEWERREF_GetName added in v0.7.0

type FPDF_VIEWERREF_GetName struct {
	Document references.FPDF_DOCUMENT
	Key      string // Name of the key in the viewer pref dictionary.
}

type FPDF_VIEWERREF_GetNumCopies added in v0.7.0

type FPDF_VIEWERREF_GetNumCopies struct {
	Document references.FPDF_DOCUMENT
}

type FPDF_VIEWERREF_GetPrintPageRange added in v0.7.0

type FPDF_VIEWERREF_GetPrintPageRange struct {
	Document references.FPDF_DOCUMENT
}

type FPDF_VIEWERREF_GetPrintPageRangeCount added in v0.7.0

type FPDF_VIEWERREF_GetPrintPageRangeCount struct {
	PageRange references.FPDF_PAGERANGE
}

type FPDF_VIEWERREF_GetPrintPageRangeElement added in v0.7.0

type FPDF_VIEWERREF_GetPrintPageRangeElement struct {
	PageRange references.FPDF_PAGERANGE
	Index     uint64
}

type FPDF_VIEWERREF_GetPrintScaling added in v0.7.0

type FPDF_VIEWERREF_GetPrintScaling struct {
	Document references.FPDF_DOCUMENT
}

type FSDK_SetLocaltimeFunction added in v0.5.0

type FSDK_SetLocaltimeFunction struct {
	Function SetLocaltimeFunction // Alternate implementation of localtime(), or nil to restore to actual localtime() call itself.
}

type FSDK_SetTimeFunction added in v0.5.0

type FSDK_SetTimeFunction struct {
	Function SetTimeFunction // Alternate implementation of time(), or nil to restore to actual time() call itself.
}

type FSDK_SetUnSpObjProcessHandler added in v0.5.0

type FSDK_SetUnSpObjProcessHandler struct {
	UnSpObjProcessHandler func(enums.FPDF_UNSP)
}

type GetActionInfo added in v0.5.0

type GetActionInfo struct {
	Document references.FPDF_DOCUMENT
	Action   references.FPDF_ACTION
}

type GetAttachments added in v0.5.0

type GetAttachments struct {
	Document references.FPDF_DOCUMENT
}

type GetBookmarks added in v0.5.0

type GetBookmarks struct {
	Document references.FPDF_DOCUMENT
}

type GetDestInfo added in v0.5.0

type GetDestInfo struct {
	Document references.FPDF_DOCUMENT
	Dest     references.FPDF_DEST
}

type GetJavaScriptActions added in v0.5.0

type GetJavaScriptActions struct {
	Document references.FPDF_DOCUMENT
}

type GetMetaData added in v0.5.0

type GetMetaData struct {
	Document references.FPDF_DOCUMENT
	Tags     *[]string // A list of metadata tags. If nil, it will return: Title, Author, Subject, Keywords, Creator, Producer, CreationDate, ModDate. For detailed explanation of these tags and their respective values, please refer to section 10.2.1 "Document Information Dictionary" in PDF Reference 1.7.
}

type GetPageSize

type GetPageSize struct {
	Page Page
}

type GetPageSizeInPixels

type GetPageSizeInPixels struct {
	Page Page
	DPI  int // The DPI to calculate the size for.
}

type GetPageText

type GetPageText struct {
	Page Page
}

type GetPageTextStructured

type GetPageTextStructured struct {
	Page                   Page
	Mode                   GetPageTextStructuredMode           // The mode to get structured text for.
	CollectFontInformation bool                                // Whether to collect font information like name/size/weight.
	PixelPositions         GetPageTextStructuredPixelPositions // Pixel position calculation settings.
}

type GetPageTextStructuredMode

type GetPageTextStructuredMode string
const (
	GetPageTextStructuredModeChars GetPageTextStructuredMode = "char" // Only get every separate char
	GetPageTextStructuredModeRects GetPageTextStructuredMode = "rect" // Get char rects, strings on the same line with the same font settings.
	GetPageTextStructuredModeBoth  GetPageTextStructuredMode = "both" // Get both rects and chars.
)

type GetPageTextStructuredPixelPositions

type GetPageTextStructuredPixelPositions struct {
	Document  references.FPDF_DOCUMENT
	Calculate bool // Whether to calculate from points to pixel. Useful if you used RenderPageInDPI or RenderPageInPixels.
	DPI       int  // If rendered in a specific DPI, give the DPI. Useful if you used RenderPageInDPI.
	Width     int  // If rendered with a specific resolution, give the width resolution. Useful if you used RenderPageInPixels.
	Height    int  // If rendered with a specific resolution, give the height resolution. Useful if you used RenderPageInPixels.
}

type NewPage added in v0.5.0

type NewPage struct {
	Document references.FPDF_DOCUMENT
	Index    int     // A zero-based index which specifies the position of the created page in PDF document. Range: 0 to (pagecount-1). If this value is below 0, the new page will be inserted to the first. If this value is above (pagecount-1), the new page will be inserted to the last.
	Width    float64 // The page width in points.
	Height   float64 // The page height in points.
}

type OpenDocument

type OpenDocument struct {
	File           *[]byte // A reference to the file data.
	FilePath       *string // A path to a PDF file.
	FileReader     io.ReadSeeker
	FileReaderSize int64
	Password       *string // The password of the document.
}

type Page added in v0.5.0

type Page struct {
	ByIndex     *PageByIndex          // A page index + document reference.
	ByReference *references.FPDF_PAGE // A reference to a page. Received by GetPage()
}

Page can either be the index of a page or a page reference. When you use an index. The library will always cache the last opened page.

type PageByIndex added in v0.5.0

type PageByIndex struct {
	Document references.FPDF_DOCUMENT // A reference to a document.
	Index    int                      // The page number (0-index based).
}

type RenderPageInDPI

type RenderPageInDPI struct {
	Page        Page
	DPI         int                    // The DPI to render the page in.
	RenderFlags enums.FPDF_RENDER_FLAG // FPDF_RENDER_FLAG_REVERSE_BYTE_ORDER will always be set to render to Go image.
}

type RenderPageInPixels

type RenderPageInPixels struct {
	Page        Page
	Width       int                    // The maximum width of the image.
	Height      int                    // The maximum height of the image.
	RenderFlags enums.FPDF_RENDER_FLAG // FPDF_RENDER_FLAG_REVERSE_BYTE_ORDER will always be set to render to Go image.
}

type RenderPagesInDPI

type RenderPagesInDPI struct {
	Pages   []RenderPageInDPI // The pages
	Padding int               // The amount of padding (in pixels) between the images
}

type RenderPagesInPixels

type RenderPagesInPixels struct {
	Pages   []RenderPageInPixels // The pages
	Padding int                  // The amount of padding (in pixels) between the images
}

type RenderToFile

type RenderToFile struct {
	RenderPageInDPI     *RenderPageInDPI         // To execute the RenderPageInDPI request
	RenderPagesInDPI    *RenderPagesInDPI        // To execute the RenderPagesInDPI request
	RenderPageInPixels  *RenderPageInPixels      // To execute the RenderPageInPixels request
	RenderPagesInPixels *RenderPagesInPixels     // To execute the RenderPagesInPixels request
	OutputFormat        RenderToFileOutputFormat // The format to output the image as
	OutputTarget        RenderToFileOutputTarget // Where to output the image
	MaxFileSize         int64                    // The maximum filesize, if jpg is chosen as output format, it will try to compress it until it fits
	TargetFilePath      string                   // When OutputTarget is file, the path to write it to, if not given, a temp file is created
}

type RenderToFileOutputFormat

type RenderToFileOutputFormat string // The file format to render output as.
const (
	RenderToFileOutputFormatJPG RenderToFileOutputFormat = "jpg" // Render the file as a JPEG file.
	RenderToFileOutputFormatPNG RenderToFileOutputFormat = "png" // Render the file as a PNG file.
)

type RenderToFileOutputTarget

type RenderToFileOutputTarget string // The file target output.
const (
	RenderToFileOutputTargetBytes RenderToFileOutputTarget = "bytes" // Returns the file as a byte array in the response.
	RenderToFileOutputTargetFile  RenderToFileOutputTarget = "file"  // Writes away the file to a given path or a generated tmp file.
)

type SaveFlags added in v0.5.0

type SaveFlags uint32
const (
	SaveFlagIncremental    SaveFlags = 1 // Incremental.
	SaveFlagNoIncremental  SaveFlags = 2 // No Incremental.
	SaveFlagRemoveSecurity SaveFlags = 3 // Remove security.
)

type SetLocaltime added in v0.5.0

type SetLocaltime struct {
	TmSec   int /* seconds */
	TmMin   int /* minutes */
	TmHour  int /* hours */
	TmMday  int /* day of the month */
	TmMon   int /* month */
	TmYear  int /* year */
	TmWday  int /* day of the week */
	TmYday  int /* day in the year */
	TmIsdst int /* daylight saving time */
}

type SetLocaltimeFunction added in v0.5.0

type SetLocaltimeFunction func(int64) SetLocaltime

type SetTimeFunction added in v0.5.0

type SetTimeFunction func() int64

type UnSpObjProcessHandler added in v0.5.0

type UnSpObjProcessHandler func(enums.FPDF_UNSP)

Jump to

Keyboard shortcuts

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