New MIAMEX function MX_LASTPRTFIL (186) returns the file spec of the last file written by the PDFX printer driver.
xcall MIAMEX, MX_LASTPRTFIL, fspec
where
fspec (str) [out]
return the filespec
Currently this only works for PDFX5+, where it solves the problem of finding out the actual name of the PDF file which otherwise may be unknowable due to auto-numbering strategies in the driver, or due to the operator using the Save As dialog to rename the file. The feature may be expanded in the future to support other similar printing situations.