I was wondering if there are some ways to extract title and pagenum of each page in a pdf file? Either by some applications, or by programming in some programming language with some pdf libraries?
The title of each page is supposed to be the first line of the page, for example, in slides/presentation files.
The output is supposed to be a text file, with following format:
title_of_first_page pagenum_of_first_page title_of_second_page pagenum_of_second_page ...