Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.
Fri Jan 31, 2025 3:14 am
No problem thankyou digital ocean currently supports only up to version 3.12.4 so will have to wait until they update there build packs to support 3.13 so i can try again
-

tylerbrannigan
-
- Posts: 8
- Joined: Wed Nov 20, 2024 1:14 pm
Tue Feb 04, 2025 8:50 am
Hello,
Thanks for your reply. If you encounter any other issues regarding our product in the future, please feel free to write to us.
Sincerely,
William
E-iceblue support team
-


William.Zhang
-
- Posts: 757
- Joined: Mon Dec 27, 2021 2:23 am
Mon Sep 08, 2025 3:13 am
Hello Tylerbrannigan,
We are pleased to inform you that our latest "
Spire. PDF for Python Version: 11.9.0" now supports drawing tables to PDF pages(SPIREPDF-7343). You can refer to the following example code for testing. If you have any other questions, please feel free to contact.
- Code: Select all
pdf = PdfDocument()
page = pdf.Pages.Add(PdfPageSize.A3())
pen = PdfPen(PdfRGBColor(Color.get_Black()), 0.1)
#Set line border location and size
x = 5.0
y = 5.0
width = page.Size.Width-(x*2)
height = page.Size.Height-(y*2)
page.Canvas.DrawRectangle(pen, x, y, width, height)
#Add table
grid = PdfGrid()
row = grid.Rows.Add()
grid.Columns.Add(2)
for i in range(grid.Columns.Count):
grid.Columns[i].Width = 50
row.Cells[i].Value = "add{0:d}".format(i + 1)
border = PdfBorders()
border.All = PdfPen(Color.get_Gray())
for j in range(grid.Rows.Count):
cells = grid.Rows.get_Item(j).Cells
for k in range(cells.Count):
cells.get_Item(k).Style.Borders = border
#Draw the grid table
grid.Draw(page, PointF(50.0,50.0))
pdf.SaveToFile(outputFile)
pdf.Close()
Sincerely,
lisa.li
E-iceblue support team
-


Lisa.Li
-
- Posts: 1533
- Joined: Wed Apr 25, 2018 3:20 am