Ejemplo n.º 1
0
def createOutputContextWithPath(path):
    global verbose
    if verbose:
        print "Setting %s as the destination." % (path)
    return CG.CGPDFContextCreateWithURL(
        CG.CFURLCreateFromFileSystemRepresentation(kCFAllocatorDefault, path,
                                                   len(path), False), None,
        None)
Ejemplo n.º 2
0
def createOutputContextWithPath(path, dictarray):
    return Quartz.CGPDFContextCreateWithURL(
        Quartz.CFURLCreateFromFileSystemRepresentation(kCFAllocatorDefault,
                                                       path, len(path), False),
        None, dictarray)