pdfs in django 1

pdfs in django

$ python -m pip install reportlab

Here is what the above code is Doing:
1. We import the FPDF class from the fpdf package.
2. We create a new object called pdf.
3. We add a page.
4. We set the font to Helvetica with a size of 15.
5. We draw the text “Hello World” at position x=100, y=100.
6. We save the PDF with the name “hello_world.pdf”.

Similar Posts