python - Word wrap on report lab PDF table -


I am using a report lab labels table to print a table on a PDF report. I would like to know whether it is possible to configure table to automate the slot of the contents of a cell.

For example, I have a text that does not fit in any cell in any column. I would like the table to adjust the contents of the cells to fit the ramps automatically on the column width. Is this possible?

You can make a flow in a table element. Probably good practice is to keep all the table elements in the form of flows, so they can be styled only for your case, you will need to have the most paragraph flow. For example

  styles = getSampleStyleSheet () text = paragraph ("long line", styles ['normal'])  

By data feeding in the table and automatically wrap it.


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -