I had tried a bit on the Document of Record, but on author side,. i.e if I point a given form to an .xdp file in repository then on click of DOR, I can get the generated pdf. The option you have suggested in publish side will be very useful to me. However, the xdp I got was from a sample available ...