skip420

convert2pdf

Aug 27th, 2021
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.39 KB | None | 0 0
  1. #convert2font_pre_written_from_Script
  2.  
  3.  
  4.  
  5. #Importing the FPDF library.
  6. from fpdf import FPDF
  7. pdf = FPDF()  
  8. pdf.add_page()
  9. pdf.set_font("Arial", size = 15)
  10. pdf.cell(200, 10, txt = "Python Pool",  
  11.          ln = 1, align = 'C')
  12.  
  13. # add another cell
  14. pdf.cell(200, 10, txt = "This is where you fuck a specimen not from this world",
  15.          ln = 2, align = 'C')
  16.  
  17. pdf.output("PP.pdf")
Add Comment
Please, Sign In to add comment