we try to use PDFNet SDK to create pdf packages. I followed your PDFPackage sample (http://www.pdftron.com/pdfnet/samplecode.html#PDFPackage) and it works as expected, but going through the Pdf specification today I have learned that the files in package are sorted alphabetically by default when opened in Adobe reader. However, we would like to have the files sorted in order of insertion (so the user can set their order). Is there any way to achieve this with PDFNet SDK, either by setting the custom sort rule or disabling the sorting completely (something like collection.PutName(“View”, “T”) used in your sample)? I have not been able to figure this out yet.
You can specify the sort order by adding a dictionary named “Sort” into the Collection dictionary, then adding a name with key “S” and value “Description”. See 8.2.4 Collections of the PDF reference for more information/options.
PDF Spec (seen via PDFTron WebViewer): http://xodo.com/view/#/573dd717-5eec-4dce-9476-7095179be37d