gopdf

package module
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

README

go-pdf

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddKeywords

func AddKeywords(locations []*PDFSearchLocation, templateFile string, saveasFilepath string, useTempPageSize bool) (err error)

func AddKeywordsBytes added in v0.0.5

func AddKeywordsBytes(locations []*PDFSearchLocation, templateFile []byte, useTempPageSize bool) (bs []byte, err error)

func Exist

func Exist(localFile string) (bool, error)

Types

type BaseColor

type BaseColor struct {
	Red   uint8   `json:"red"`
	Green uint8   `json:"green"`
	Blue  uint8   `json:"blue"`
	Alpha float64 `json:"alpha"`
}

type Image added in v0.4.0

type Image struct {
	FilePath string  `json:"filePath,omitempty"`
	Url      string  `json:"url,omitempty"`
	Base64   string  `json:"base64,omitempty"`
	Width    float64 `json:"width,omitempty"`
	Height   float64 `json:"height,omitempty"`
}

type PDFSearchLocation

type PDFSearchLocation struct {
	AbsX      float64   `json:"absX"`
	AbsY      float64   `json:"absY"`
	Page      int       `json:"page"`
	AddText   string    `json:"addText"`
	RelativeX float64   `json:"relativeX"`
	RelativeY float64   `json:"relativeY"`
	FontSize  float64   `json:"fontSize"`
	BaseColor BaseColor `json:"baseColor"`
	Image     *Image    `json:"image"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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