How can we add support for the PDF Archive feature for a new/custom report selection usage?

To add support for the PDF Archive feature for a new report selection usage, please make sure your reports are printed via one of the dedicated "Report Selections".PrintWith... procedures.

Next to that, you should add event subscribers for the following event publishers:

WSB_DCAFileMgt.wlEvpOnSetPrimaryValues - Allows you to specify the primary key field values given a RecordRef of the source table record that the file should be linked to.
"Report Distribution Management".OnAfterGetFullDocumentTypeText - Allows you to specify the text which will be used for the document report PDF file name, given a (record-related) Variant of the source table record that the file will be linked to.
"Report Distribution Management".OnGetDocumentLanguageCodeCaseElse - Allows you to specify the language code to translate the document report PDF filename into different languages, given a RecordRef of the source table record that the file will be linked to.
"Electronic Document Format".OnGetDocumentNoCaseElse - Allows you to specify how to retrieve the document no. to use in the document report PDF filename, given a (record-related) Variant of the source table record that the file will be linked to..