Documentation
¶
Index ¶
- type FPDFAction_GetDest
- type FPDFAction_GetFilePath
- type FPDFAction_GetType
- type FPDFAction_GetURIPath
- type FPDFAttachment_GetFile
- type FPDFAttachment_GetName
- type FPDFAttachment_GetStringValue
- type FPDFAttachment_GetValueType
- type FPDFAttachment_HasKey
- type FPDFAttachment_SetFile
- type FPDFAttachment_SetStringValue
- type FPDFBitmap_Create
- type FPDFBitmap_CreateEx
- type FPDFBitmap_Destroy
- type FPDFBitmap_FillRect
- type FPDFBitmap_GetBuffer
- type FPDFBitmap_GetFormat
- type FPDFBitmap_GetHeight
- type FPDFBitmap_GetStride
- type FPDFBitmap_GetWidth
- type FPDFBookmark_Find
- type FPDFBookmark_GetAction
- type FPDFBookmark_GetDest
- type FPDFBookmark_GetFirstChild
- type FPDFBookmark_GetNextSibling
- type FPDFBookmark_GetTitle
- type FPDFCatalog_IsTagged
- type FPDFDest_GetDestPageIndex
- type FPDFDest_GetLocationInPage
- type FPDFDest_GetView
- type FPDFDoc_AddAttachment
- type FPDFDoc_CloseJavaScriptAction
- type FPDFDoc_DeleteAttachment
- type FPDFDoc_GetAttachment
- type FPDFDoc_GetAttachmentCount
- type FPDFDoc_GetJavaScriptAction
- type FPDFDoc_GetJavaScriptActionCount
- type FPDFDoc_GetPageMode
- type FPDFJavaScriptAction_GetName
- type FPDFJavaScriptAction_GetScript
- type FPDFLink_CloseWebLinks
- type FPDFLink_CountQuadPoints
- type FPDFLink_CountRects
- type FPDFLink_CountWebLinks
- type FPDFLink_Enumerate
- type FPDFLink_GetAction
- type FPDFLink_GetAnnot
- type FPDFLink_GetAnnotRect
- type FPDFLink_GetDest
- type FPDFLink_GetLinkAtPoint
- type FPDFLink_GetLinkZOrderAtPoint
- type FPDFLink_GetQuadPoints
- type FPDFLink_GetRect
- type FPDFLink_GetTextRange
- type FPDFLink_GetURL
- type FPDFLink_LoadWebLinks
- type FPDFPage_Flatten
- type FPDFPage_FlattenUsage
- type FPDFPage_GetDecodedThumbnailData
- type FPDFPage_GetRawThumbnailData
- type FPDFPage_GetRotation
- type FPDFPage_GetThumbnailAsBitmap
- type FPDFPage_HasTransparency
- type FPDFPage_SetRotation
- type FPDFSignatureObj_GetByteRange
- type FPDFSignatureObj_GetContents
- type FPDFSignatureObj_GetDocMDPPermission
- type FPDFSignatureObj_GetReason
- type FPDFSignatureObj_GetSubFilter
- type FPDFSignatureObj_GetTime
- type FPDFText_ClosePage
- type FPDFText_CountChars
- type FPDFText_CountRects
- type FPDFText_FindClose
- type FPDFText_FindNext
- type FPDFText_FindPrev
- type FPDFText_FindStart
- type FPDFText_FindStartFlag
- type FPDFText_GetBoundedText
- type FPDFText_GetCharAngle
- type FPDFText_GetCharBox
- type FPDFText_GetCharIndexAtPos
- type FPDFText_GetCharIndexFromTextIndex
- type FPDFText_GetCharOrigin
- type FPDFText_GetFillColor
- type FPDFText_GetFontInfo
- type FPDFText_GetFontSize
- type FPDFText_GetFontWeight
- type FPDFText_GetLooseCharBox
- type FPDFText_GetMatrix
- type FPDFText_GetRect
- type FPDFText_GetSchCount
- type FPDFText_GetSchResultIndex
- type FPDFText_GetStrokeColor
- type FPDFText_GetText
- type FPDFText_GetTextIndexFromCharIndex
- type FPDFText_GetTextRenderMode
- type FPDFText_GetUnicode
- type FPDFText_LoadPage
- type FPDF_CloseDocument
- type FPDF_ClosePage
- type FPDF_CloseXObject
- type FPDF_CopyViewerPreferences
- type FPDF_CountNamedDests
- type FPDF_CreateNewDocument
- type FPDF_DeviceToPage
- type FPDF_DocumentHasValidCrossReferenceTable
- type FPDF_GetDocPermissions
- type FPDF_GetFileIdentifier
- type FPDF_GetFileVersion
- type FPDF_GetLastError
- type FPDF_GetMetaText
- type FPDF_GetNamedDest
- type FPDF_GetNamedDestByName
- type FPDF_GetPageAAction
- type FPDF_GetPageBoundingBox
- type FPDF_GetPageCount
- type FPDF_GetPageHeight
- type FPDF_GetPageHeightF
- type FPDF_GetPageLabel
- type FPDF_GetPageSizeByIndex
- type FPDF_GetPageSizeByIndexF
- type FPDF_GetPageWidth
- type FPDF_GetPageWidthF
- type FPDF_GetSecurityHandlerRevision
- type FPDF_GetSignatureCount
- type FPDF_GetSignatureObject
- type FPDF_GetTrailerEnds
- type FPDF_GetXFAPacketContent
- type FPDF_GetXFAPacketCount
- type FPDF_GetXFAPacketName
- type FPDF_ImportNPagesToOne
- type FPDF_ImportPages
- type FPDF_ImportPagesByIndex
- type FPDF_LoadCustomDocument
- type FPDF_LoadDocument
- type FPDF_LoadMemDocument
- type FPDF_LoadMemDocument64
- type FPDF_LoadPage
- type FPDF_NewFormObjectFromXObject
- type FPDF_NewXObjectFromPage
- type FPDF_PageToDevice
- type FPDF_RenderPage
- type FPDF_RenderPageBitmap
- type FPDF_RenderPageBitmapWithMatrix
- type FPDF_SaveAsCopy
- type FPDF_SaveWithVersion
- type FPDF_SetPrintMode
- type FPDF_SetSandBoxPolicy
- type FPDF_SetSandBoxPolicyPolicy
- type FPDF_VIEWERREF_GetDuplex
- type FPDF_VIEWERREF_GetName
- type FPDF_VIEWERREF_GetNumCopies
- type FPDF_VIEWERREF_GetPrintPageRange
- type FPDF_VIEWERREF_GetPrintPageRangeCount
- type FPDF_VIEWERREF_GetPrintPageRangeElement
- type FPDF_VIEWERREF_GetPrintScaling
- type FSDK_SetLocaltimeFunction
- type FSDK_SetTimeFunction
- type FSDK_SetUnSpObjProcessHandler
- type GetActionInfo
- type GetAttachments
- type GetBookmarks
- type GetDestInfo
- type GetJavaScriptActions
- type GetMetaData
- type GetPageSize
- type GetPageSizeInPixels
- type GetPageText
- type GetPageTextStructured
- type GetPageTextStructuredMode
- type GetPageTextStructuredPixelPositions
- type NewPage
- type OpenDocument
- type Page
- type PageByIndex
- type RenderPageInDPI
- type RenderPageInPixels
- type RenderPagesInDPI
- type RenderPagesInPixels
- type RenderToFile
- type RenderToFileOutputFormat
- type RenderToFileOutputTarget
- type SaveFlags
- type SetLocaltime
- type SetLocaltimeFunction
- type SetTimeFunction
- type UnSpObjProcessHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 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 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_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_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 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 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 ¶ added in v0.5.0
type FPDFLink_CloseWebLinks struct {
PageLink references.FPDF_PAGELINK
}
type FPDFLink_CountQuadPoints ¶ added in v0.5.0
type FPDFLink_CountQuadPoints struct {
Link references.FPDF_LINK
}
type FPDFLink_CountRects ¶ added in v0.5.0
type FPDFLink_CountRects struct {
PageLink references.FPDF_PAGELINK
Index int
}
type FPDFLink_CountWebLinks ¶ added in v0.5.0
type FPDFLink_CountWebLinks struct {
PageLink references.FPDF_PAGELINK
}
type FPDFLink_Enumerate ¶ added in v0.5.0
type FPDFLink_GetAction ¶ added in v0.5.0
type FPDFLink_GetAction struct {
Link references.FPDF_LINK
}
type FPDFLink_GetAnnot ¶ added in v0.5.0
type FPDFLink_GetAnnot struct {
Page Page
Link references.FPDF_LINK
}
type FPDFLink_GetAnnotRect ¶ added in v0.5.0
type FPDFLink_GetAnnotRect struct {
Link references.FPDF_LINK
}
type FPDFLink_GetDest ¶ added in v0.5.0
type FPDFLink_GetDest struct {
Document references.FPDF_DOCUMENT
Link references.FPDF_LINK
}
type FPDFLink_GetLinkAtPoint ¶ added in v0.5.0
type FPDFLink_GetLinkZOrderAtPoint ¶ added in v0.5.0
type FPDFLink_GetQuadPoints ¶ added in v0.5.0
type FPDFLink_GetQuadPoints struct {
Link references.FPDF_LINK
QuadIndex int
}
type FPDFLink_GetRect ¶ added in v0.5.0
type FPDFLink_GetRect struct {
PageLink references.FPDF_PAGELINK
Index int
RectIndex int
}
type FPDFLink_GetTextRange ¶ added in v0.5.0
type FPDFLink_GetTextRange struct {
PageLink references.FPDF_PAGELINK
Index int
}
type FPDFLink_GetURL ¶ added in v0.5.0
type FPDFLink_GetURL struct {
PageLink references.FPDF_PAGELINK
Index int
}
type FPDFLink_LoadWebLinks ¶ added in v0.5.0
type FPDFLink_LoadWebLinks struct {
TextPage references.FPDF_TEXTPAGE
}
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_GetDecodedThumbnailData ¶ added in v0.5.0
type FPDFPage_GetDecodedThumbnailData struct {
Page Page
}
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_HasTransparency ¶ added in v0.5.0
type FPDFPage_HasTransparency struct {
Page Page
}
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 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 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.
}
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_LoadPage ¶ added in v0.5.0
type FPDFText_LoadPage struct {
Page Page
}
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_CreateNewDocument ¶ added in v0.5.0
type FPDF_CreateNewDocument struct{}
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_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_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_LoadMemDocument ¶ added in v0.6.0
type FPDF_LoadMemDocument64 ¶ added in v0.6.0
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_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_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_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_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_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_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 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 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 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 SetLocaltime ¶ added in v0.5.0
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
Source Files
¶
- action.go
- attachment.go
- bookmark.go
- dest.go
- fpdf_annot.go
- fpdf_attachment.go
- fpdf_catalog.go
- fpdf_dataavail.go
- fpdf_doc.go
- fpdf_edit.go
- fpdf_ext.go
- fpdf_flatten.go
- fpdf_formfill.go
- fpdf_javascript.go
- fpdf_ppo.go
- fpdf_progressive.go
- fpdf_save.go
- fpdf_searchex.go
- fpdf_signature.go
- fpdf_structtree.go
- fpdf_text.go
- fpdf_thumbnail.go
- fpdf_transformpage.go
- fpdfview.go
- javascript_action.go
- metadata.go
- render.go
- requests.go
- text.go
Click to show internal directories.
Click to hide internal directories.