Documentation
¶
Index ¶
Constants ¶
const DefaultPage = 1
Default page index, namely the first page
const LastPage = -1
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.
const MaxMemoryBufferSize = int64(math.MaxInt64) - 1
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
const MinPage = 1
First page index
const MinValidFileSize = 64
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.