Python Forum
fpdf orientation not working properly
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
fpdf orientation not working properly
#1
Hi

I have a csv file that I converted to a pdf file using fpdf.

If I set the orientation using Code 1 my page is converted into landscape, but the header and footer do not show up.

If I set the orientation using Code 2, my page stays at the default portrait orientation and
the header and footer are displayed.

Don't know what is wrong
Wall

from fpdf import FPDF

# Code 1
pdf =  FPDF("L", "mm", "Letter")

# Code 2
pdf =  PDF("L", "mm", "Letter")
Reply


Messages In This Thread
fpdf orientation not working properly - by KatMac - May-01-2021, 06:38 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  File Handling not working properly TheLummen 8 559 Feb-17-2024, 07:47 PM
Last Post: TheLummen
  Label Maker FPDF, Reportlab jamesaarr 1 2,601 Aug-09-2021, 11:57 PM
Last Post: Pedroski55
  fpdf star character issue KatMac 3 2,916 May-01-2021, 06:22 PM
Last Post: KatMac
  fpdf adding a new font to my report KatMac 0 2,122 Apr-23-2021, 02:19 PM
Last Post: KatMac
Lightbulb Jupyter is not working properly brunolelli 3 2,929 Apr-23-2021, 03:22 AM
Last Post: Larz60+
  ModuleNotFoundError: No module named 'fpdf' KatMac 4 11,006 Apr-19-2021, 01:23 PM
Last Post: KatMac
  FPDF question DPaul 2 2,691 Oct-27-2020, 08:26 AM
Last Post: DPaul
  Better Understanding Of Object Orientation In Python JoeDainton123 3 2,418 Aug-30-2020, 02:49 PM
Last Post: deanhystad
  file.write not working properly mnh001 11 4,335 Nov-09-2019, 10:20 PM
Last Post: mnh001
  hatching not working properly with matplotlib Staph 3 2,947 Jul-28-2019, 07:17 AM
Last Post: ThomasL

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020