need help in IDS pre/post scripts

We are having IDS 7.3 and new to pre script implementation.
We have one requirement that a file XYZ.pdf Version 4.0 Effective in a source system needs to be published in target system as XYZ_4.0_EF.pdf and this can be achieved with the help of pre/post scripts execution in IDS.
Please help me in this by providing sample pre/post script and its configurations on IDS.

Thanks in Advance