I convert the pdf to txt, open with emacs and look at
1348 0 obj <</Metadata 1302 0 R/PageLabels 1306 0 R/Pages 1308 0 R/Type/Catalog>> endobj
QUESTION: I want the first n pages to be numbered in roman, the following arabic: what is the string I need to put ? (the general idea is here How to change internal page numbers in the meta data of a PDF? , but the coding is slightly different)
BONUS question: is it possible to do this job via some command line tool, e.g. pdftk?