You should be looking at clgpdf40.app
since that's the CPCS Legacy demo app.
However, it's not set up for the User Defined Button handling in CPCS. That's easy to handle though.
- To the Data section, add swMakePdf as a BYTE.
- On the CPCS template, the second Advanced tab (next to last tab), set up the first User Defined Button to use swMakePdf and to use the MakePDF.ico icon file which should be in your 3rdparty\Images folder. Set the description to Generate PDF.
- On the PDF-Tools Report Extension template, on the Previewer tab, set the top item to IF <var> and set the VAR field after it to swMakePdf. I would also go to the bottom of that tab and set Hardcopy to No - Never.
That's all there is to it.