Documentation
¶
Index ¶
- type ActionInfo
- type Attachment
- type AttachmentValue
- type CharPosition
- type DestInfo
- 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 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 FPDFDoc_GetPageModeMode
- 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_FlattenResult
- 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_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_CreateNewDocument
- type FPDF_GetDocPermissions
- type FPDF_GetFileIdentifier
- type FPDF_GetFileVersion
- type FPDF_GetLastError
- type FPDF_GetLastErrorError
- type FPDF_GetMetaText
- type FPDF_GetPageAAction
- type FPDF_GetPageCount
- type FPDF_GetPageHeight
- type FPDF_GetPageLabel
- type FPDF_GetPageSizeByIndex
- type FPDF_GetPageWidth
- type FPDF_GetSecurityHandlerRevision
- type FPDF_GetSignatureCount
- type FPDF_GetSignatureObject
- 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_SaveAsCopy
- type FPDF_SaveWithVersion
- type FPDF_SetSandBoxPolicy
- type FSDK_SetLocaltimeFunction
- type FSDK_SetTimeFunction
- type FSDK_SetUnSpObjProcessHandler
- type FontInformation
- type GetActionInfo
- type GetAttachments
- type GetBookmarks
- type GetBookmarksBookmark
- type GetDestInfo
- type GetJavaScriptActions
- type GetMetaData
- type GetMetaDataTag
- type GetPageSize
- type GetPageSizeInPixels
- type GetPageText
- type GetPageTextStructured
- type GetPageTextStructuredChar
- type GetPageTextStructuredRect
- type JavaScriptAction
- type NewPage
- type OpenDocument
- type RenderPage
- type RenderPageInDPI
- type RenderPageInPixels
- type RenderPages
- type RenderPagesInDPI
- type RenderPagesInPixels
- type RenderPagesPage
- type RenderToFile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionInfo ¶ added in v0.5.0
type ActionInfo struct {
Reference references.FPDF_ACTION
Type enums.FPDF_ACTION_ACTION
DestInfo *DestInfo // Is set when the action is GOTO. When the action is REMOTEGOTO, we will not fetch the destination.
FilePath *string // When action is LAUNCH or REMOTEGOTO.
URIPath *string // When action is URI.
}
type Attachment ¶ added in v0.5.0
type Attachment struct {
Name string
Content []byte
Values []AttachmentValue
}
type AttachmentValue ¶ added in v0.5.0
type AttachmentValue struct {
Key string
ValueType enums.FPDF_OBJECT_TYPE
StringValue string
}
type CharPosition ¶
type DestInfo ¶ added in v0.5.0
type DestInfo struct {
Reference references.FPDF_DEST
PageIndex int
}
type FPDFAction_GetDest ¶ added in v0.5.0
type FPDFAction_GetDest struct {
Dest *references.FPDF_DEST // Reference to the bookmark dest. nil if not found.
}
type FPDFAction_GetFilePath ¶ added in v0.5.0
type FPDFAction_GetFilePath struct {
FilePath *string // nil when not set
}
type FPDFAction_GetType ¶ added in v0.5.0
type FPDFAction_GetType struct {
Type enums.FPDF_ACTION_ACTION
}
type FPDFAction_GetURIPath ¶ added in v0.5.0
type FPDFAction_GetURIPath struct {
URIPath *string // nil when not set
}
type FPDFAttachment_GetFile ¶ added in v0.5.0
type FPDFAttachment_GetFile struct {
Contents []byte // nil when not found.
}
type FPDFAttachment_GetName ¶ added in v0.5.0
type FPDFAttachment_GetName struct {
Name string
}
type FPDFAttachment_GetStringValue ¶ added in v0.5.0
type FPDFAttachment_GetValueType ¶ added in v0.5.0
type FPDFAttachment_GetValueType struct {
Key string
ValueType enums.FPDF_OBJECT_TYPE
}
type FPDFAttachment_HasKey ¶ added in v0.5.0
type FPDFAttachment_SetFile ¶ added in v0.5.0
type FPDFAttachment_SetFile struct{}
type FPDFAttachment_SetStringValue ¶ added in v0.5.0
type FPDFBookmark_Find ¶ added in v0.5.0
type FPDFBookmark_Find struct {
Bookmark *references.FPDF_BOOKMARK // Reference to the found bookmark. nil if the title can't be found.
}
type FPDFBookmark_GetAction ¶ added in v0.5.0
type FPDFBookmark_GetAction struct {
Action *references.FPDF_ACTION // Reference to the bookmark action. nil if not found.
}
type FPDFBookmark_GetDest ¶ added in v0.5.0
type FPDFBookmark_GetDest struct {
Dest *references.FPDF_DEST // Reference to the bookmark dest. nil if not found.
}
type FPDFBookmark_GetFirstChild ¶ added in v0.5.0
type FPDFBookmark_GetFirstChild struct {
Bookmark *references.FPDF_BOOKMARK // Reference to the first child or top level bookmark item. nil if no child or top level bookmark found.
}
type FPDFBookmark_GetNextSibling ¶ added in v0.5.0
type FPDFBookmark_GetNextSibling struct {
Bookmark *references.FPDF_BOOKMARK // Reference to the next bookmark item at the same level. nil if this is the last bookmark at this level.
}
type FPDFBookmark_GetTitle ¶ added in v0.5.0
type FPDFBookmark_GetTitle struct {
Title string // The title of the bookmark.
}
type FPDFCatalog_IsTagged ¶ added in v0.5.0
type FPDFCatalog_IsTagged struct {
IsTagged bool
}
type FPDFDest_GetDestPageIndex ¶ added in v0.5.0
type FPDFDest_GetDestPageIndex struct {
Index int
}
type FPDFDest_GetLocationInPage ¶ added in v0.5.0
type FPDFDest_GetView ¶ added in v0.5.0
type FPDFDest_GetView struct {
DestView enums.FPDF_PDFDEST_VIEW
Params []float32
}
type FPDFDoc_AddAttachment ¶ added in v0.5.0
type FPDFDoc_AddAttachment struct {
Attachment references.FPDF_ATTACHMENT
}
type FPDFDoc_CloseJavaScriptAction ¶ added in v0.5.0
type FPDFDoc_CloseJavaScriptAction struct{}
type FPDFDoc_DeleteAttachment ¶ added in v0.5.0
type FPDFDoc_DeleteAttachment struct {
Index int
}
type FPDFDoc_GetAttachment ¶ added in v0.5.0
type FPDFDoc_GetAttachment struct {
Index int
Attachment references.FPDF_ATTACHMENT
}
type FPDFDoc_GetAttachmentCount ¶ added in v0.5.0
type FPDFDoc_GetAttachmentCount struct {
AttachmentCount int
}
type FPDFDoc_GetJavaScriptAction ¶ added in v0.5.0
type FPDFDoc_GetJavaScriptAction struct {
Index int
JavaScriptAction references.FPDF_JAVASCRIPT_ACTION
}
type FPDFDoc_GetJavaScriptActionCount ¶ added in v0.5.0
type FPDFDoc_GetJavaScriptActionCount struct {
JavaScriptActionCount int
}
type FPDFDoc_GetPageMode ¶ added in v0.5.0
type FPDFDoc_GetPageMode struct {
PageMode FPDFDoc_GetPageModeMode // The document's page mode, which describes how the document should be displayed when opened.
}
type FPDFDoc_GetPageModeMode ¶ added in v0.5.0
type FPDFDoc_GetPageModeMode int
const ( FPDFDoc_GetPageModeModeUnknown FPDFDoc_GetPageModeMode = -1 // Page mode: unknown. FPDFDoc_GetPageModeModeUseNone FPDFDoc_GetPageModeMode = 0 // Page mode: use none, which means neither document outline nor thumbnail images visible. FPDFDoc_GetPageModeModeUseOutlines FPDFDoc_GetPageModeMode = 1 // Page mode: document outline visible. FPDFDoc_GetPageModeModeUseThumbs FPDFDoc_GetPageModeMode = 2 // Page mode: thumbnail images visible. FPDFDoc_GetPageModeModeFullScreen FPDFDoc_GetPageModeMode = 3 // Page mode: full screen - with no menu bar, no windows controls and no any other windows visible. FPDFDoc_GetPageModeModeUseOC FPDFDoc_GetPageModeMode = 4 // Page mode: optional content group panel visible. FPDFDoc_GetPageModeModeUseAttachments FPDFDoc_GetPageModeMode = 5 // Page mode: attachments panel visible. )
type FPDFJavaScriptAction_GetName ¶ added in v0.5.0
type FPDFJavaScriptAction_GetName struct {
Name string
}
type FPDFJavaScriptAction_GetScript ¶ added in v0.5.0
type FPDFJavaScriptAction_GetScript struct {
Script string
}
type FPDFLink_CloseWebLinks ¶ added in v0.5.0
type FPDFLink_CloseWebLinks struct{}
type FPDFLink_CountQuadPoints ¶ added in v0.5.0
type FPDFLink_CountQuadPoints struct {
Count int
}
type FPDFLink_CountRects ¶ added in v0.5.0
type FPDFLink_CountWebLinks ¶ added in v0.5.0
type FPDFLink_CountWebLinks struct {
Count int
}
type FPDFLink_Enumerate ¶ added in v0.5.0
type FPDFLink_Enumerate struct {
NextStartPos *int
Link *references.FPDF_LINK
}
type FPDFLink_GetAction ¶ added in v0.5.0
type FPDFLink_GetAction struct {
// Action is a handle to the action associated to a link, or nil if no action.
Action *references.FPDF_ACTION
}
type FPDFLink_GetAnnot ¶ added in v0.5.0
type FPDFLink_GetAnnot struct {
Annotation *references.FPDF_ANNOTATION
}
type FPDFLink_GetAnnotRect ¶ added in v0.5.0
type FPDFLink_GetAnnotRect struct {
Rect *structs.FPDF_FS_RECTF // The rectangle for the link.
}
type FPDFLink_GetDest ¶ added in v0.5.0
type FPDFLink_GetDest struct {
// Dest is a handle to the destination, or nil if there is no destination
// associated with the link. In this case, you should call FPDFLink_GetAction()
// to retrieve the action associated with a link.
Dest *references.FPDF_DEST
}
type FPDFLink_GetLinkAtPoint ¶ added in v0.5.0
type FPDFLink_GetLinkAtPoint struct {
Link *references.FPDF_LINK // Reference to the found link. nil if not found.
}
type FPDFLink_GetLinkZOrderAtPoint ¶ added in v0.5.0
type FPDFLink_GetLinkZOrderAtPoint struct {
ZOrder int // the Z-order of the link, or -1 if no link found at the given point. Larger Z-order numbers are closer to the front.
}
type FPDFLink_GetQuadPoints ¶ added in v0.5.0
type FPDFLink_GetQuadPoints struct {
Points *structs.FPDF_FS_QUADPOINTSF
}
type FPDFLink_GetRect ¶ added in v0.5.0
type FPDFLink_GetTextRange ¶ added in v0.5.0
type FPDFLink_GetURL ¶ added in v0.5.0
type FPDFLink_LoadWebLinks ¶ added in v0.5.0
type FPDFLink_LoadWebLinks struct {
PageLink references.FPDF_PAGELINK
}
type FPDFPage_Flatten ¶ added in v0.5.0
type FPDFPage_Flatten struct {
Page int // The page number (0-index based).
Result FPDFPage_FlattenResult // The result of the flatten.
}
type FPDFPage_FlattenResult ¶ added in v0.5.0
type FPDFPage_FlattenResult int
const ( FPDFPage_FlattenResultFail FPDFPage_FlattenResult = 0 // Flatten operation failed. FPDFPage_FlattenResultSuccess FPDFPage_FlattenResult = 1 // Flatten operation succeed. FPDFPage_FlattenResultNothingToDo FPDFPage_FlattenResult = 2 // There is nothing can be flatten. )
type FPDFPage_GetDecodedThumbnailData ¶ added in v0.5.0
type FPDFPage_GetDecodedThumbnailData struct {
Thumbnail []byte // The thumbnail data, nil when it doesn't exist.
}
type FPDFPage_GetRawThumbnailData ¶ added in v0.5.0
type FPDFPage_GetRawThumbnailData struct {
RawThumbnail []byte // The raw thumbnail data, nil when it doesn't exist.
}
type FPDFPage_GetRotation ¶ added in v0.5.0
type FPDFPage_GetRotation struct {
Page int // The page number (0-index based).
PageRotation enums.FPDF_PAGE_ROTATION // The page rotation.
}
type FPDFPage_GetThumbnailAsBitmap ¶ added in v0.5.0
type FPDFPage_GetThumbnailAsBitmap struct {
Bitmap *references.FPDF_BITMAP // The thumbnail as bitmap, nil if it doesn't exist.
}
type FPDFPage_HasTransparency ¶ added in v0.5.0
type FPDFPage_SetRotation ¶ added in v0.5.0
type FPDFPage_SetRotation struct{}
type FPDFSignatureObj_GetByteRange ¶ added in v0.5.0
type FPDFSignatureObj_GetByteRange struct {
ByteRange []int // ByteRange is an array of pairs of integers (starting byte offset, length in bytes) that describes the exact byte range for the digest calculation. nil when no byte range.
}
type FPDFSignatureObj_GetContents ¶ added in v0.5.0
type FPDFSignatureObj_GetContents struct {
Contents []byte // For public-key signatures, Contents is either a DER-encoded PKCS#1 binary or a DER-encoded PKCS#7 binary. nil when no content.
}
type FPDFSignatureObj_GetDocMDPPermission ¶ added in v0.5.0
type FPDFSignatureObj_GetDocMDPPermission struct {
DocMDPPermission int
}
type FPDFSignatureObj_GetReason ¶ added in v0.5.0
type FPDFSignatureObj_GetReason struct {
Reason *string // The reason (comment) of the signature object. nil when no reason.
}
type FPDFSignatureObj_GetSubFilter ¶ added in v0.5.0
type FPDFSignatureObj_GetSubFilter struct {
SubFilter *string // The encoding of the value of a signature object. nil when no sub filter.
}
type FPDFSignatureObj_GetTime ¶ added in v0.5.0
type FPDFSignatureObj_GetTime struct {
Time *string // The time of signing of a signature object. The format of time is expected to be D:YYYYMMDDHHMMSS+XX'YY', i.e. it's precision is seconds, with timezone information. This value should be used only when the time of signing is not available in the (PKCS#7 binary) signature. nil when no time.
}
type FPDFText_ClosePage ¶ added in v0.5.0
type FPDFText_ClosePage struct{}
type FPDFText_CountChars ¶ added in v0.5.0
type FPDFText_CountChars struct {
Count int //Number of characters in the page. Generated characters, like additional space characters, new line characters, are also counted.
}
type FPDFText_CountRects ¶ added in v0.5.0
type FPDFText_CountRects struct {
Count int
}
type FPDFText_FindClose ¶ added in v0.5.0
type FPDFText_FindClose struct{}
type FPDFText_FindNext ¶ added in v0.5.0
type FPDFText_FindNext struct {
GotMatch bool
}
type FPDFText_FindPrev ¶ added in v0.5.0
type FPDFText_FindPrev struct {
GotMatch bool
}
type FPDFText_FindStart ¶ added in v0.5.0
type FPDFText_FindStart struct {
Search references.FPDF_SCHHANDLE
}
type FPDFText_GetBoundedText ¶ added in v0.5.0
type FPDFText_GetBoundedText struct {
Text string
}
type FPDFText_GetCharAngle ¶ added in v0.5.0
type FPDFText_GetCharBox ¶ added in v0.5.0
type FPDFText_GetCharIndexAtPos ¶ added in v0.5.0
type FPDFText_GetCharIndexAtPos struct {
CharIndex int // -1 when not found
}
type FPDFText_GetCharIndexFromTextIndex ¶ added in v0.6.0
type FPDFText_GetCharIndexFromTextIndex struct {
CharIndex int
}
type FPDFText_GetCharOrigin ¶ added in v0.5.0
type FPDFText_GetFillColor ¶ added in v0.5.0
type FPDFText_GetFontInfo ¶ added in v0.5.0
type FPDFText_GetFontSize ¶ added in v0.5.0
type FPDFText_GetFontWeight ¶ added in v0.5.0
type FPDFText_GetLooseCharBox ¶ added in v0.5.0
type FPDFText_GetLooseCharBox struct {
Index int
Rect structs.FPDF_FS_RECTF
}
type FPDFText_GetMatrix ¶ added in v0.5.0
type FPDFText_GetMatrix struct {
Index int
Matrix structs.FPDF_FS_MATRIX
}
type FPDFText_GetRect ¶ added in v0.5.0
type FPDFText_GetSchCount ¶ added in v0.5.0
type FPDFText_GetSchCount struct {
Count int
}
type FPDFText_GetSchResultIndex ¶ added in v0.5.0
type FPDFText_GetSchResultIndex struct {
Index int
}
type FPDFText_GetStrokeColor ¶ added in v0.5.0
type FPDFText_GetText ¶ added in v0.5.0
type FPDFText_GetText struct {
Text string
}
type FPDFText_GetTextIndexFromCharIndex ¶ added in v0.6.0
type FPDFText_GetTextIndexFromCharIndex struct {
TextIndex int
}
type FPDFText_GetTextRenderMode ¶ added in v0.5.0
type FPDFText_GetTextRenderMode struct {
Index int
TextRenderMode enums.FPDF_TEXT_RENDERMODE
}
type FPDFText_GetUnicode ¶ added in v0.5.0
type FPDFText_LoadPage ¶ added in v0.5.0
type FPDFText_LoadPage struct {
TextPage references.FPDF_TEXTPAGE
}
type FPDF_CloseDocument ¶ added in v0.6.0
type FPDF_CloseDocument struct{}
type FPDF_ClosePage ¶ added in v0.5.0
type FPDF_ClosePage struct{}
type FPDF_CloseXObject ¶ added in v0.5.0
type FPDF_CloseXObject struct{}
type FPDF_CopyViewerPreferences ¶ added in v0.5.0
type FPDF_CopyViewerPreferences struct{}
type FPDF_CreateNewDocument ¶ added in v0.5.0
type FPDF_CreateNewDocument struct {
Document references.FPDF_DOCUMENT
}
type FPDF_GetDocPermissions ¶ added in v0.5.0
type FPDF_GetDocPermissions struct {
DocPermissions uint32 // A 32-bit integer which indicates the permission flags. Please refer to "TABLE 3.20 User access permissions" in PDF Reference 1.7 P123 for detailed description. If the document is not protected, 0xffffffff (4294967295) will be returned.
PrintDocument bool // Bit position 3: (Security handlers of revision 2) Print the document, (Security handlers of revision 3 or greater) Print the document (possibly not at the highest quality level, depending on whether PrintDocumentAsFaithfulDigitalCopy (bit 12) is also set).
ModifyContents bool // Bit position 4: Modify the contents of the document by operations other than those controlled by AddOrModifyTextAnnotations (bit 6), FillInExistingInteractiveFormFields (bit 9), and AssembleDocument (bit 11).
CopyOrExtractText bool // Bit position 5: (Security handlers of revision 2) Copy or otherwise extract text and graphics from the document, including extracting text and graphics (in support of accessibility to users with disabilities or for other purposes). (Security handlers of revision 3 or greater) Copy or otherwise extract text and graphics from the document by operations other than that controlled by ExtractTextAndGraphics (bit 10).
AddOrModifyTextAnnotations bool // Bit position 6: Add or modify text annotations
FillInInteractiveFormFields bool // Bit position 6: fill in interactive form fields
CreateOrModifyInteractiveFormFields bool // Bit position 6 & 4: create or modify interactive form fields (including signature fields).
FillInExistingInteractiveFormFields bool // Bit position 9: (Security handlers of revision 3 or greater) Fill in existing interactive form fields (including signature fields), even if FillInInteractiveFormFields (bit 6) is clear.
ExtractTextAndGraphics bool // Bit position 10: (Security handlers of revision 3 or greater) Extract text and graphics (in support of accessibility to users with disabilities or for other purposes).
AssembleDocument bool // Bit position 11: (Security handlers of revision 3 or greater) Assemble the document (insert, rotate, or delete pages and create bookmarks or thumbnail images), even if ModifyContents (bit 4) is clear.
PrintDocumentAsFaithfulDigitalCopy bool // Bit position 12: (Security handlers of revision 3 or greater) Print the document to a representation from which a faithful digital copy of the PDF content could be generated. When this bit is clear (and PrintDocument (bit 3) is set), printing is limited to a low-level representation of the appearance, possibly of degraded quality.
}
type FPDF_GetFileIdentifier ¶ added in v0.5.0
type FPDF_GetFileIdentifier struct {
FileIdType enums.FPDF_FILEIDTYPE
Identifier []byte // Can be nil if no identifier was found
}
type FPDF_GetFileVersion ¶ added in v0.5.0
type FPDF_GetFileVersion struct {
FileVersion int // The numeric version of the file: 14 for 1.4, 15 for 1.5, ...
}
type FPDF_GetLastError ¶ added in v0.5.0
type FPDF_GetLastError struct {
Error FPDF_GetLastErrorError
}
type FPDF_GetLastErrorError ¶ added in v0.5.0
type FPDF_GetLastErrorError int
const ( FPDF_GetLastErrorErrorSuccess FPDF_GetLastErrorError = 0 // Error code: Success, which means no error. FPDF_GetLastErrorErrorUnknown FPDF_GetLastErrorError = 1 // Error code: Unknown error. FPDF_GetLastErrorErrorFile FPDF_GetLastErrorError = 2 // Error code: File access error, which means file cannot be found or be opened. FPDF_GetLastErrorErrorFormat FPDF_GetLastErrorError = 3 // Error code: Data format error. FPDF_GetLastErrorErrorPassword FPDF_GetLastErrorError = 4 // Error code: Incorrect password error. FPDF_GetLastErrorErrorSecurity FPDF_GetLastErrorError = 5 // Error code: Unsupported security scheme error. FPDF_GetLastErrorErrorInvalidLicense FPDF_GetLastErrorError = 6 // Error code: License authorization error. )
type FPDF_GetMetaText ¶ added in v0.5.0
type FPDF_GetPageAAction ¶ added in v0.5.0
type FPDF_GetPageAAction struct {
AAType *enums.FPDF_PAGE_AACTION
Action *references.FPDF_ACTION
}
type FPDF_GetPageCount ¶ added in v0.5.0
type FPDF_GetPageCount struct {
PageCount int // The amount of pages of the document.
}
type FPDF_GetPageHeight ¶ added in v0.5.0
type FPDF_GetPageLabel ¶ added in v0.5.0
type FPDF_GetPageSizeByIndex ¶ added in v0.5.0
type FPDF_GetPageWidth ¶ added in v0.5.0
type FPDF_GetSecurityHandlerRevision ¶ added in v0.5.0
type FPDF_GetSecurityHandlerRevision struct {
SecurityHandlerRevision int // The revision number of security handler. Please refer to key "R" in "TABLE 3.19 Additional encryption dictionary entries for the standard security handler" in PDF Reference 1.7 P122 for detailed description. If the document is not protected, -1 will be returned.
}
type FPDF_GetSignatureCount ¶ added in v0.5.0
type FPDF_GetSignatureCount struct {
Count int
}
type FPDF_GetSignatureObject ¶ added in v0.5.0
type FPDF_GetSignatureObject struct {
Index int
Signature references.FPDF_SIGNATURE
}
type FPDF_ImportNPagesToOne ¶ added in v0.5.0
type FPDF_ImportNPagesToOne struct {
Document references.FPDF_DOCUMENT
}
type FPDF_ImportPages ¶ added in v0.5.0
type FPDF_ImportPages struct{}
type FPDF_ImportPagesByIndex ¶ added in v0.5.0
type FPDF_ImportPagesByIndex struct{}
type FPDF_LoadCustomDocument ¶ added in v0.6.0
type FPDF_LoadCustomDocument struct {
Document references.FPDF_DOCUMENT
}
type FPDF_LoadDocument ¶ added in v0.6.0
type FPDF_LoadDocument struct {
Document references.FPDF_DOCUMENT
}
type FPDF_LoadMemDocument ¶ added in v0.6.0
type FPDF_LoadMemDocument struct {
Document references.FPDF_DOCUMENT
}
type FPDF_LoadMemDocument64 ¶ added in v0.6.0
type FPDF_LoadMemDocument64 struct {
Document references.FPDF_DOCUMENT
}
type FPDF_LoadPage ¶ added in v0.5.0
type FPDF_LoadPage struct {
Page references.FPDF_PAGE
}
type FPDF_NewFormObjectFromXObject ¶ added in v0.5.0
type FPDF_NewFormObjectFromXObject struct {
PageObject references.FPDF_PAGEOBJECT
}
type FPDF_NewXObjectFromPage ¶ added in v0.5.0
type FPDF_NewXObjectFromPage struct {
XObject references.FPDF_XOBJECT
}
type FPDF_SaveAsCopy ¶ added in v0.5.0
type FPDF_SaveWithVersion ¶ added in v0.5.0
type FPDF_SetSandBoxPolicy ¶ added in v0.5.0
type FPDF_SetSandBoxPolicy struct{}
type FSDK_SetLocaltimeFunction ¶ added in v0.5.0
type FSDK_SetLocaltimeFunction struct {
}
type FSDK_SetTimeFunction ¶ added in v0.5.0
type FSDK_SetTimeFunction struct {
}
type FSDK_SetUnSpObjProcessHandler ¶ added in v0.5.0
type FSDK_SetUnSpObjProcessHandler struct {
}
type FontInformation ¶
type FontInformation struct {
Size float64 // Font size in points (also known as em).
SizeInPixels *int // Font size in pixels, only available when PixelPositions is used.
Weight int // The weight of the font, can be negative for spaces and newlines.
Name string // The name of the font, can be empty for spaces and newlines.
Flags int // Font flags, should be interpreted per PDF spec 1.7, Section 5.7.1 Font Descriptor Flags.
}
type GetActionInfo ¶ added in v0.5.0
type GetActionInfo struct {
ActionInfo ActionInfo
}
type GetAttachments ¶ added in v0.5.0
type GetAttachments struct {
Attachments []Attachment
}
type GetBookmarks ¶ added in v0.5.0
type GetBookmarks struct {
Bookmarks []GetBookmarksBookmark
}
type GetBookmarksBookmark ¶ added in v0.5.0
type GetBookmarksBookmark struct {
Title string
Reference references.FPDF_BOOKMARK
ActionInfo *ActionInfo
DestInfo *DestInfo
Children []GetBookmarksBookmark
}
type GetDestInfo ¶ added in v0.5.0
type GetDestInfo struct {
DestInfo DestInfo
}
type GetJavaScriptActions ¶ added in v0.5.0
type GetJavaScriptActions struct {
JavaScriptActions []JavaScriptAction
}
type GetMetaData ¶ added in v0.5.0
type GetMetaData struct {
Tags []GetMetaDataTag
}
type GetMetaDataTag ¶ added in v0.5.0
type GetPageSize ¶
type GetPageSizeInPixels ¶
type GetPageSizeInPixels struct {
Page int // The page this size came from (0-index based).
Width int // The width of the page in pixels.
Height int // The height of the page in pixels.
PointToPixelRatio float64 // The point to pixel ratio for the rendered image. How many points is 1 pixel in this image.
}
type GetPageText ¶
type GetPageTextStructured ¶
type GetPageTextStructured struct {
Page int // The page structured this text came from (0-index based).
Chars []*GetPageTextStructuredChar // A list of chars in a page. When Mode is GetPageTextStructuredModeChars or GetPageTextStructuredModeBoth.
Rects []*GetPageTextStructuredRect // A list of rects in a page. When Mode is GetPageTextStructuredModeRects or GetPageTextStructuredModeBoth.
PointToPixelRatio float64 // The point to pixel ratio for the calculated positions.
}
type GetPageTextStructuredChar ¶
type GetPageTextStructuredChar struct {
Text string // The text of this char.
Angle float64 // The angle this char is in.
PointPosition CharPosition // The position of this char in points.
PixelPosition *CharPosition // The position of this char in pixels. When PixelPositions are requested.
FontInformation *FontInformation // The font information of this char. When CollectFontInformation is enabled.
}
type GetPageTextStructuredRect ¶
type GetPageTextStructuredRect struct {
Text string // The text of this rect.
PointPosition CharPosition // The position of this rect in points.
PixelPosition *CharPosition // The position of this rect in pixels. When PixelPositions are requested.
FontInformation *FontInformation // The font information of this rect. When CollectFontInformation is enabled.
}
type JavaScriptAction ¶ added in v0.5.0
type NewPage ¶ added in v0.5.0
type NewPage struct {
Page references.FPDF_PAGE
}
type OpenDocument ¶ added in v0.5.0
type OpenDocument struct {
Document references.FPDF_DOCUMENT
}
type RenderPage ¶
type RenderPage struct {
Page int // The rendered page number (0-index based).
PointToPixelRatio float64 // The point to pixel ratio for the rendered image. How many points is 1 pixel in this image.
Image *image.RGBA // The rendered image.
Width int // The width of the rendered image.
Height int // The height of the rendered image.
}
type RenderPageInDPI ¶ added in v0.6.0
type RenderPageInDPI struct {
Result RenderPage
}
type RenderPageInPixels ¶ added in v0.6.0
type RenderPageInPixels struct {
Result RenderPage
}
type RenderPages ¶
type RenderPages struct {
Pages []RenderPagesPage // Information about the rendered pages inside this image.
Image *image.RGBA // The rendered image.
Width int // The width of the rendered image.
Height int // The height of the rendered image.
}
type RenderPagesInDPI ¶ added in v0.6.0
type RenderPagesInDPI struct {
Result RenderPages
}
type RenderPagesInPixels ¶ added in v0.6.0
type RenderPagesInPixels struct {
Result RenderPages
}
type RenderPagesPage ¶
type RenderPagesPage struct {
Page int // The rendered page number (0-index based).
PointToPixelRatio float64 // The point to pixel ratio for the rendered image. How many points is 1 pixel for this page in this image.
Width int // The width of the rendered page inside the image.
Height int // The height of the rendered page inside the image.
X int // The X start position of this page inside the image.
Y int // The Y start position of this page inside the image.
}
type RenderToFile ¶
type RenderToFile struct {
Pages []RenderPagesPage // Information about the rendered pages inside this image.
ImageBytes *[]byte // The byte array of the rendered file when OutputTarget is RenderToFileOutputTargetBytes.
ImagePath string // The file path when OutputTarget is RenderToFileOutputTargetFile, is a tmp path when TargetFilePath was empty in the request.
Width int // The width of the rendered image.
Height int // The height of the rendered image.
PointToPixelRatio float64 // The point to pixel ratio for the rendered image. How many points is 1 pixel in this image. Only set when rendering one page.
}
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
- responses.go
- text.go
Click to show internal directories.
Click to hide internal directories.