<< Click to Display Table of Contents >> Navigation: PDF-XChange Lite Printer Settings > Save > %[Docname], %[Date] and %[Time] |
The getDocumentName function of the titrules.js JavaScript uses the document name at the time of printing to define this macro. This JavaScript is included to give PDF-XChange Lite priority over other applications when documents are saved. This is a necessary process because of the complicated manner in which Microsoft defines document names. Please note that modifying the titjules.js JavaScript is a complicated process that only experienced JavaScript programmers should perform. If assistance is required then please Contact Us.
The %[Date] macro can be expanded to include a date formatting string: %[Date:<date formatting string>]. This can be used to customize the manner in which dates are formatted. Available options are detailed below:
•dd - the day of the month displayed in digits. Single-digit dates feature a zero followed by the date.
•ddd - the day of the week displayed as a three-letter abbreviation.
•dddd - the day of the week displayed in full.
•M - the month displayed in digits.
•MM - the month displayed in digits. Single-digit months feature a zero followed by the month number.
•MMM - the month displayed as a three-letter abbreviation.
•MMMM - the month displayed in full.
•yy - the year displayed as the last two digits of the year. Single-digit years feature a zero followed by the year number.
•yyyy - the year displayed in full.
For example, the macro %[Date:<ddd, MMM, dd, yy>] creates the date formatting string: "Wed, Aug 31, 94".
The %[Time] macro can be expanded to include a time formatting string: %[Time:<time formatting string>]. This can be used to customize the manner in which times are formatted. Available options are detailed below:
•h - hours displayed in digits with a 12-hour clock.
•hh - hours displayed in digits with a 12-hour clock. Single-digit hours feature a zero followed by the hour.
•H - hours displayed in digits with a 24-hour clock.
•HH - hours displayed in digits with a 24-hour clock. Single-digit hours feature a zero followed by the hour.
•m - minutes displayed in digits.
•mm - minutes displayed in digits. Single-digit minutes feature a zero followed by the minute.
•s - seconds displayed in digits.
•ss - seconds displayed in digits. Single-digit seconds feature a zero followed by the second.
•t - displays a single time marker string, such as A or P (to represent a.m. and p.m.).
•tt - displays a double time marker string, such as a.m. or p.m.
For example, the macro %[Time:<"hh,mm, ss, tt">] creates the time formatting string: "11_29_40 PM".