pkg

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2022 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrEmptyFileName = errors.New("EMPTY_FILE_NAME")

Functions

func ValidatePDFFile

func ValidatePDFFile(fileName string) error

Types

type PDFInfo

type PDFInfo struct {
	Pages []PageInfo `json:"pages"`
}

func GetInfoFromPDFFile

func GetInfoFromPDFFile(fileName string) (info PDFInfo, err error)

type PageInfo

type PageInfo struct {
	Rot         int     `json:"rotation"`
	Orientation string  `json:"orientation"`
	Height      float64 `json:"height"`
	Width       float64 `json:"width"`
}

Jump to

Keyboard shortcuts

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