requests

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2022 License: MIT Imports: 3 Imported by: 9

Documentation

Index

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 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 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 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_CreateNewDocument added in v0.5.0

type FPDF_CreateNewDocument struct{}

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_GetPageAAction added in v0.5.0

type FPDF_GetPageAAction struct {
	Page   Page
	AAType enums.FPDF_PAGE_AACTION
}

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_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_GetPageWidth added in v0.5.0

type FPDF_GetPageWidth 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_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_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_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_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 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.
}

type RenderPageInPixels

type RenderPageInPixels struct {
	Page   Page
	Width  int // The maximum width of the image.
	Height int // The maximum height of the 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