I've installed the library 'pyobjc-framework-Quartz'
pip install pyobjc-framework-Quartz
And in Python2, the following lines work perfectly:
provider = Quartz.CGDataProviderCreateWithFilename(input_file_path)
pdf = Quartz.CGPDFDocumentCreateWithProvider(provider)
But in Python3, I get the error message:
provider = Quartz.CGDataProviderCreateWithFilename(input_file_path)
ValueError: depythonifying 'char', got 'str' of 1
I've tried converting to char*
from ctypes import *
path = c_char_p(input_file_path)
but nothing seems to work. Can someone explain the error?
Thanks, Ryan