ColdFusion cfpdf Thumbnail numbering is incorrect
I am using the cfpdf function in ColdFusion to create a document packet, i.e. merging a range of documents into one PDF file. The merge works correctly and the thumbnail images correctly link to their respective pages. However, the page numbers shown underneath the thumbnail images are incorrect. At some point in the process, the numbering is restarted as can be seen in the image below:
This issue only occurs when the cfpdf function is given a directory to work with, not when the files are specified individually. Due to the potentially large number of files which may be processed, specifying the files individually would be impractical.
The version of ColdFusion I am using is 11.
Has anyone else here experienced this issue or has any remedial suggestions?
Thank you in advance.
The code I am using is: