123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- # -*- coding: utf-8 -*-
- import PIL
- from PIL import ImageFont
- from PIL import Image
- from PIL import ImageDraw
- font = ImageFont.truetype("/usr/share/fonts/TTF/DejaVuSans-Bold.ttf",120)
- #font1 = ImageFont.truetype("/usr/share/fonts/TTF/DejaVuSans.ttf",80)
- # 3,508x2,480
- height = 3508
- width = 2480
- #text=" Participou da 3° Conferência Potiguar de Software Livre, PotiCon,\nrealizado no dia 24 Novembro de 2018, no Sebrae - Natal/RN, com carga\nhorária total de 8 horas."
- def gerar (titulo):
- img = Image.open("Certificado.jpg") #Image.new("RGBA", (1684,1191),(9, 132, 227))
- draw = ImageDraw.Draw(img)
- w,h = draw.textsize(titulo,font=font)
- draw.text((0,(height-h)/3.3),titulo.center(69),(0,0,0),font=font)
- # draw.text(((width-h)/8,(height-h)/3),text,(6,6,6), font=font1)
- #draw = ImageDraw.Draw(img)
- img.save("certs/"+titulo+".pdf","PDF")
-
- nomes = ["Inacio Medeiros",
- "Bruno Luiz Santana de Araujo",
- "Leonidas S. Barbosa",
- "Artur Rodrigues",
- "Júlio César Silva Aprígio",
- "Alysson Oliveira",
- "Ana Eliza Trajano",
- "Philippi Sedir Grilo de Morais",
- "Lucas Castro",
- "Carlos Fran",
- "Elionai Moura",
- "Matheus Henrique de Souza",
- "Angélica Albano de Souza Silva",
- "Esther Aragão da Silva Santana ",
- "Diego Silva de Araujo",
- "Simei Thander de Assis Silva",
- "Helenita Maciel Gurgel",
- "Felipe Barbosa Nicolau Fernandes",
- "Tell Marcus de Souza Moitas",
- "Lukas Pol dos Santos Paes",
- "Francisco Bento da Silva Júnior",
- "Roberta Flaviane Soares Paixão",
- "josé lucas de morais soares",
- "Jessica Lohhayne ",
- "Felipe caridade Fernandes",
- "Tereza Cristina Martins",
- "jonas Arthur da silva Camara",
- "Danilo de Souza Braga Aciola",
- "Amós da Silva Gonçalves",
- "Maria Clara Carvalho Coutinho",
- "Ivana Vitória de Araújo Soares",
- "João Tiago Arruda de Oliveira",
- "Guilherme Egle",
- "Eduardo Santos",
- "Luís Vitor",
- "Mateus Silva",
- "Allythy Renan",
- "Pedro Baesse",
- "Ana Clara Nobre Mendes ",
- "Nathecia Cunha",
- "Allan Kardec Cunha",
- "Julio Lira",
- "Raquel Lopes",
- "Julio Cesar Neves ",
- "Rafael Gomes (Gomex) ",
- "Alex Aquino ",
- "Alysson Oliveira ",
- "Caldeira Silva ",
- "João Marcos ",
- "Leonidas Barbosa",
- "Lucas Oliveira ",
- "Matheus Oliveira ",
- "Pedro Arthur Duarte",
- "Thayron Arrais ",
- "Victor Torres ",
- "Igor Bezerra",
- "Marney Rocha",
- "Anny Confessor",
- "Damiano Alves de Lima",
- "Davison Silva",
- "Francisco Matheus Ricelly",
- "Izanderson Florencio",
- "Jailson Silva de Oliveira",
- "Jilcimar Fernandes",
- "Juarez Valério dos Santos Junior",
- "Juliana Barbosa",
- "Letícia Moura Pinheiro",
- "Marconi Alves",
- "Marcus Nunes",
- "Mariel Fonseca de Moura",
- "Mariaelena Silveira",
- "Noilson Caio Teixeira",
- "Pablo Erick",
- "Pablo Pierre Ferreira Terdulino da Silva",
- "Rodrigo Emereciano",
- "Rodrigo Honorio",
- "Rodrigo Xavier",
- "Thiago Galeno",
- "Vitor Blondin Pires",
- "Welligton Miguel Silva",
- "Wesllen Matias",
- "Zelani Paulino dos Santos",
- "Marcelo Victor de Lima",
- "Pedro Osvaldo Alencar Regis",
- "Wanderson Douglas Souza Vasconcelos"]
- for i in nomes:
- gerar(i)
- #map(gerar,nomes)
|