File: RenderingSpreadsheetsAsPDFTables.md

package info (click to toggle)
fpdf2 2.8.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 53,828 kB
  • sloc: python: 39,486; sh: 133; makefile: 12
file content (26 lines) | stat: -rw-r--r-- 715 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Rendering spreadsheets as PDF tables

<img src="table-from-spreadsheet.png" style="max-width: 15rem">

All the details on tables and options to style them are detailed on the dedicated page: [Tables](Tables.md).

## From a .csv spreadsheet
Example input file: [color_srgb.csv](./color_srgb.csv)
```python
{% include "../tutorial/csv2table.py" %}
```

## From a .xlsx spreadsheet
Example input file: [color_srgb.xlsx](./color_srgb.xlsx)
```python
{% include "../tutorial/xlsx2table.py" %}
```

## From an .ods spreadsheet
Example input file: [color_srgb.ods](./color_srgb.ods)
```python
{% include "../tutorial/ods2table.py" %}
```

## From pandas DataFrame
_cf._ [Maths documentation page](Maths.md#using-pandas)