How can I get the page numbers only of a pattern in a pdf file, regardless if the pattern is multiline?
I find the page numbers of a multiline pattern in a pdf file, by How shall I grep a multi-line pattern in a pdf file and in a text file? and How can I search a string in a pdf file, and find the physical page number of each page where the string appears?