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.
I am using ColdFusion 11.
Has anyone else here experienced this issue or has any remedial suggestions?
The code I am using is:
<cfpdf action="merge"
directory="C:\temp" <!--- Directory contains multiple PDF files --->
destination="Packet.pdf"
order="name"
ascending="yes"
overwrite="yes"
keepbookmark="yes">

Try doing what the
directoryattribute in<cfpdf>is supposed to do:Does the order in
filesToMergereturn what you expect?Now try removing all meta data in case the PDF files had their page number stored: