Testing the page order of a document created with PDFBox
I'm working on a kotlin application that needs to process a collection of PDFs and merge them into a single document. One of the features the users have requested is to have the pages within the merged document sorted based on the file names of the original documents.
The problem I am struggling with is how to write a unit test to verify that the pages of the merged document are in the correct order. I need some way to extract a unique identifier for each page of the merged document that I...