PDF page reader
Read a PDF file page by page: the reader emits exactly one record per page, with the full text of the page as content. A configurable amount of context from the surrounding pages is provided alongside each page. For example:
# Page 1
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
# Page 2
Quisque ac dolor massa.
Chunk size: 20
Page 1; Chunk 0
Content: Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Previous content: (empty)
Next content: Quisque ac dolor mas
Page 2; Chunk 0
Content: Quisque ac dolor massa.
Previous content: tur adipiscing elit.
Next content: (empty)
Parameters
The number of characters of surrounding context to provide with each page: the Previous content output carries the last Chunk size characters of the previous page, and the Next content output carries the first Chunk size characters of the next page. It does not split the page content itself. When unset, both context outputs are empty.
Output
The index of the current page being read from the PDF file (starting at 1).
Always 0: pages are not split into chunks.
The full text content of the current page.
The last Chunk size characters of the previous page's text. Empty on the first page or when no chunk size is set.
The first Chunk size characters of the next page's text. Empty on the last page or when no chunk size is set.
Metadata of the current file.
- author (optional)
- title (optional)
- subject (optional)
- keywords (optional)
- creator (optional)
- producer (optional)
- creation_date (optional)
- modification_date (optional)