Bir Excel dosyasını PDF olarak kaydetmek için bu kodum var, ancak kaydettiğinde, elektronik tablonun ikiye bölünmesiyle birden çok sayfa olarak kaydediliyor. Python kullanarak yönlendirmeyi yatay olarak değiştirmenin herhangi bir yolu var mı?
def PDF():
# Open Microsoft Excel
excel = win32com.client.Dispatch("Excel.Application")
# Read Excel File
sheets = excel.Workbooks.Open('Logbook.xlsx')
work_sheets = sheets.Worksheets[0]
# Convert into PDF File
work_sheets.ExportAsFixedFormat(0, 'Logbook.pdf')
AttributeError: xlLandscape