Skip to content

Chunk Information

Introduction

Chunk infos contains the information about the chunk.

Format

KeyTypeDescription
linesNumber[]The lines contained in the chunk.
pageNumberThe page of the chunk.
wordsWord Informations [ ]The words contained in the chunk.

Word Information

KeyTypeDescription
contentStringThe text content of the word.
bottomNumberBottom position of the word bounding box.
topNumberTop position of the word bounding box.
leftNumberLeft position of the word bounding box.
rightNumberRight position of the word bounding box.
widthNumberWidth of the word bounding box.
heightNumberHeight of the word bounding box.
fontStringDetected font of the word.
indexes[Number, Number]Bottom position of the word.

Example

{
	"lines": [1],
	"page": 0,
	"words": [
		{
			"bottom": 80.17329025944616,
			"content": "Num\u00e9ro",
			"font": "Inter-SemiBold",
			"height": 8.999999624999987,
			"indexes": [8, 14],
			"left": 29.99999875,
			"right": 64.39165491201426,
			"top": 71.17329063444618,
			"width": 34.39165616201426
		},
		{
			"bottom": 80.17329025944616,
			"content": "de",
			"font": "Inter-SemiBold",
			"height": 8.999999624999987,
			"indexes": [15, 17],
			"left": 66.625485448938,
			"right": 77.63243718531498,
			"top": 71.17329063444618,
			"width": 11.00695173637699
		},
		{
			"bottom": 80.17329025944616,
			"content": "facture",
			"font": "Inter-SemiBold",
			"height": 8.999999624999987,
			"indexes": [18, 25],
			"left": 79.86626472223885,
			"right": 111.05556966768441,
			"top": 71.17329063444618,
			"width": 31.189304945445556
		},
		{
			"bottom": 80.17329025944616,
			"content": "FACT\u0000192244",
			"font": "Inter-SemiBold",
			"height": 8.999999624999987,
			"indexes": [26, 37],
			"left": 117.74999509375,
			"right": 175.94178154909213,
			"top": 71.17329063444618,
			"width": 58.191786455342125
		}
	]
}

Next steps