title: Swift: PDFDocument write
body: <p>Swift seems to have changed again and I'm having trouble making this code work:</p>
  
  <pre><code>   let pdf_url = URL(fileURLWithPath: filename)
     let pdf_doc = PDFDocument.init(url: pdf_url)
     let value = "Bibbly"
     let diction = [kCGPDFContextCreator : value ] as Any
  
     pdf_doc!.write(toFile: filename, withOptions: (diction as [PDFDocumentWriteOption : Any]))
  </code></pre>
  
  <p>I get the following error: 'CFString' is not convertible to 'Any'.</p>
  
  <p>Anyone know what the problem is? The API reference is here:</p>
  
  <p><a href="https://developer.apple.com/documentation/pdfkit/pdfdocument/1436053-write" rel="nofollow noreferrer">https://developer.apple.com/documentation/pdfkit/pdfdocument/1436053-write</a></p>