page-number-functions
ai-research-agent / extractor/pdf-to-html/util/page-number-functions
Functions
findFirstPage()
function findFirstPage(pageIndexNumMap): object
Checks when the page number first begins and returns it
Parameters
Parameter | Type | Description |
---|---|---|
|
| object |
Returns
object
For example: pageIndex: 10, pageNum: 3
findPageNumbers()
function findPageNumbers(
pageIndexNumMap,
pageIndex,
items): object
Searches both top and bottom area and returns an object
Parameters
Parameter | Type | Description |
---|---|---|
|
| object |
|
| index of the page |
|
| textContent.items |
Returns
object
pageIndexNumMap object
removePageNumber()
function removePageNumber(textContent, pageNum): object
Return textContent with items that have pageNum removed
Parameters
Parameter | Type | Description |
---|---|---|
|
| object |
|
|
Returns
object
filteredContent - textContent without items that have pageNum