Answers for "how to save a pdf in python"

0

python save figure as pdf

import matplotlib.pyplot as plt

f = plt.figure()
plt.plot(range(10), range(10), "o")
plt.show()

f.savefig("foo.pdf", bbox_inches='tight')
Posted by: Guest on July-17-2020
0

create pdf in python

#Import the class FPDF from module fpdf.
#Add a page.
#Set the font.
#Insert a cell and provide the text.
#Save the pdf with “. pdf” extencsion.
Posted by: Guest on January-12-2022

Python Answers by Framework

Browse Popular Code Answers by Language