Fix #948 "PDF URL sent after first time"

- add `beforeProcess`/`afterProcess`
- remove `pdf` action
- add `content` property for send to specify `xml` or `pdf-url`
- automatically create the PDF if `pdf-url` is specified
- clear the PDF URL at the beginning of a process