This post contains an example of a PlanetPress Talk calling a PDFMark function.

This web page points you to the PDFMark reference manual.

There could be some trial and error testing here to get everything right, but you should be able to get what you need from here.

Hope this helps.