             return [iconComponent]
         }
 
-        dragPromisedFiles(ofTypes: ["png"],
+        dragPromisedFiles(ofTypes: ["png", "pdf"],
                           from: CGRect(x: start.x - 26, y: start.y - 12, width: 32, height: 32),
                           source: self, slideBack: true, event: downEvent)
 

//

import Cocoa

extension NSImage {
    func pngData() -> Data {

        rep.size = self.size
        let data = rep.representation(using: .PNG, properties: [:])
        return data!
    }

    func pdfData() -> Data {
        let document = PDFDocument()
        let page = PDFPage(image: self)!
        document.insert(page, at: 0)
        return document.dataRepresentation()!
    }
}

