Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(33)  |  Call(33)  |  Derive(0)  |  Import(0)
Takes a color object, allowing colors to be referred to by name

src/p/d/pdfgrid-0.2.0/samples/genpdf.py   pdfgrid(Download)
        text = u"%s" % i
        if i % 2 == 1:
            canv.setStrokeColor(black)
            canv.setFillColor(black)
            canv.rect(0, 0, size[0], size[1], fill=True)
        text = u"%s" % i
        if i % 2 == 0:
            canv.setStrokeColor(bgColor)
            canv.setFillColor(bgColor)
            canv.rect(0, 0, pageSize[0], pageSize[1], stroke=True, fill=True)
            canv.setFillColor(black)
        elif i % 2 == 1:
            canv.setStrokeColor(black)

src/p/d/pdfnup-0.4.1/samples/genpdf.py   pdfnup(Download)
        text = u"%s" % i
        if i % 2 == 1:
            canv.setStrokeColor(black)
            canv.setFillColor(black)
            canv.rect(0, 0, size[0], size[1], fill=True)
        text = u"%s" % i
        if i % 2 == 0:
            canv.setStrokeColor(bgColor)
            canv.setFillColor(bgColor)
            canv.rect(0, 0, pageSize[0], pageSize[1], stroke=True, fill=True)
            canv.setFillColor(black)
        elif i % 2 == 1:
            canv.setStrokeColor(black)

src/p/d/pdftools.pdfposter-0.6.0/examples/gen-examplepages.py   pdftools.pdfposter(Download)
    canv = Canvas(filename_tall, pagesize=size)
    canv.setFont("Helvetica", 72)
    canv.setStrokeColor(black)
 
    # draw the content
    canv = Canvas(filename_wide, pagesize=size)
    canv.setFont("Helvetica", 72)
    canv.setStrokeColor(black)
 
    # draw the contents

src/p/d/pdfgrid-0.2.0/pdfgrid.py   pdfgrid(Download)
        # apply styling
        step, lw, col = style
        canv.setStrokeColor(col)
        canv.setLineWidth(lw)
 

src/s/i/site-HEAD/api/balloter.py   site(Download)
 
    c.setLineWidth(0.1)
    c.setStrokeColor(black)
    c.setFont(FONT, FONT_SIZE)
 

src/s/t/stoq-1.7.0/stoqlib/reporting/boleto.py   stoq(Download)
 
        self.pdfCanvas = canvas.Canvas(self.file_descr, pagesize=pagesize)
        self.pdfCanvas.setStrokeColor(colors.black)
 
        self.boletos = []

src/s/t/stoq-HEAD/stoqlib/reporting/boleto.py   stoq(Download)
 
        self.pdfCanvas = canvas.Canvas(self.file_descr, pagesize=pagesize)
        self.pdfCanvas.setStrokeColor(colors.black)
 
        self.boletos = []

src/p/y/pyboleto-0.2.11/pyboleto/pdf.py   pyboleto(Download)
 
        self.pdfCanvas = canvas.Canvas(file_descr, pagesize=pagesize)
        self.pdfCanvas.setStrokeColor(black)
 
    def _load_image(self, logo_image):

src/p/y/pyboleto-HEAD/pyboleto/pdf.py   pyboleto(Download)
 
        self.pdfCanvas = canvas.Canvas(file_descr, pagesize=pagesize)
        self.pdfCanvas.setStrokeColor(black)
 
    def _load_image(self, logo_image):

src/r/e/reportlab-3.1.8/tests/test_pdfgen_general.py   reportlab(Download)
 
    #try out the decimal tabs high on the right.
    c.setStrokeColor(colors.silver)
    c.line(7*inch, 6*inch, 7*inch, 4.5*inch)
 
    def test2(self):
        c=canvas.Canvas('test_pdfgen_autocropmarks.pdf',cropMarks=True)
        c.saveState()
        c.setStrokeColor((1,0,0))
        c.rect(0,0,c._pagesize[0],c._pagesize[1],stroke=1)
        c.restoreState()
        c.drawString(72,c._pagesize[1]-72,'Auto Crop Marks')
        c.showPage()
        c.saveState()
        c.setStrokeColor((1,0,0))
 
        canv.setLineWidth(1)
        canv.setStrokeColor(colors.CMYKColor(0,0,0,1))
        x=10
        y=10

  1 | 2  Next