Improved scanning to PDF for CmdTwain

CmdTwain 2.12 has been released and it produces better PDFs for multipage documents.

CmdTwain 2.11 provides a scan to PDF option. It works great for single page scans and it does support multiple pages. But, the two don’t work together quite as intended. People were reporting that the first page scanned was getting placed as the last page in the PDF.

The cause is due to how filenames (for the pages) are sorted within the program. It uses the whole filename including the extension during the sort. For backward compatability reasons, page one is always named (something).jpg and pages two on are named (something)-00002.jpg etc. The character ‘.’ is stored internally with a value of 46. The character ‘-‘ has a value of 45. This always puts "(something).jpg" after "(something)-(anything)" which is not how it needs to be.

CmdTwain 2.12 comes with an improved sort routine that handles these cases properly.

Leave a Reply

Your email address will not be published. Required fields are marked *