Ejemplo n.º 1
0
def createPDFDocumentFromPath(path):
    global verbose
    if verbose:
        print "Creating PDF document from file %s" % (path)
    return CG.CGPDFDocumentCreateWithURL(
        CG.CFURLCreateFromFileSystemRepresentation(kCFAllocatorDefault, path,
                                                   len(path), False))
Ejemplo n.º 2
0
def createPDFDocumentFromPath(path):
    return Quartz.CGPDFDocumentCreateWithURL(
        Quartz.CFURLCreateFromFileSystemRepresentation(kCFAllocatorDefault,
                                                       path, len(path), False))