Advertisement
Guest User

Untitled

a guest
Jun 12th, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.38 KB | None | 0 0
  1. import fpdf
  2. from fpdf import *
  3. pdf = FPDF()
  4. out =  open('decomtext.txt','r')
  5.  
  6. a  =  pdf.add_page()
  7. pdf.set_font('Arial', '', 14)
  8.  
  9. # Then put a blue underlined link
  10. pdf.set_text_color(255, 0, 0)
  11. # pdf.set_font('', 'U')
  12.  
  13. # В кратце тут нужен цикл или еще что то . . .
  14.  
  15. #while(pdf._enddoc()):
  16. pdf.write(5,'1\n','1\n')
  17. pdf.output('demo1.pdf','F')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement