Renamed pdf:rotate-pages() to pdf:rotate().
Changed datatype for PDF content to 'base64binary'.
Removed particle '-pages' from function names.
Added function names for dealing with attachments.