title: Using pyobjc-framework-Quartz in Python 3
body: <p>I've installed the library '<a href="https://pypi.org/project/pyobjc-framework-Quartz/" rel="nofollow noreferrer">pyobjc-framework-Quartz</a>'</p>
  <pre><code>pip install pyobjc-framework-Quartz
  </code></pre>
  <p>And in Python2, the following lines work perfectly:</p>
  <pre><code>provider = Quartz.CGDataProviderCreateWithFilename(input_file_path)
  pdf = Quartz.CGPDFDocumentCreateWithProvider(provider)
  </code></pre>
  <p>But in Python3, I get the error message:</p>
  <blockquote>
  <p>provider = Quartz.CGDataProviderCreateWithFilename(input_file_path)</p>
  </blockquote>
  <blockquote>
  <p>ValueError: depythonifying 'char', got 'str' of 1</p>
  </blockquote>
  <p>I've tried converting to char*</p>
  <pre><code>from ctypes import *
  path = c_char_p(input_file_path)
  </code></pre>
  <p>but nothing seems to work. Can someone explain the error?</p>
  <p>Thanks,
  Ryan</p>