Now implements pasteboard protocol and supports PDF generation