rest

package
v1.18.0-v20220529 Latest Latest
Warning

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

Go to latest
Published: May 29, 2022 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultPage = 1

Default page index, namely the first page

View Source
const LastPage = -1
View Source
const MaxImageDim = 65_500

Theoretical max dimensions according to its respective specs:

BMP (uint32 in go/x/image/bmp): 4,294,967,295

GIF: 65,535

JPEG: 65,535 (65,500 for the libjpeg-turbo based software)

PNG: 4,294,967,295

TIFF (uint32 in go/x/image/tiff): 4,294,967,295

libjpeg-turbo max of 65,500 pixels appears to be a good limit for the other image formats, since all known image viewers are getting problems with image dimensions higher than this value, or even at values far smaller than this.

View Source
const MaxMemoryBufferSize = int64(math.MaxInt64) - 1
View Source
const MaxPage = 8_388_606

Theoretical max number of pages presentable by a 32-bit PDF reader app https://community.adobe.com/t5/acrobat-discussions/is-there-a-pdf-size-limit/m-p/4387327#M12286

View Source
const MinPage = 1

First page index

View Source
const MinValidFileSize = 64

https://stackoverflow.com/q/17279712

Variables

This section is empty.

Functions

func Convert

func Convert(w http.ResponseWriter, r *http.Request)

func Index

func Index(w http.ResponseWriter, _ *http.Request)

func Live

func Live(w http.ResponseWriter, _ *http.Request)

func NumPage

func NumPage(w http.ResponseWriter, r *http.Request)

Types

This section is empty.

Jump to

Keyboard shortcuts

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